[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Don't move to eol in end-of-defun?
From: |
Richard Stallman |
Subject: |
Re: Don't move to eol in end-of-defun? |
Date: |
Tue, 02 Aug 2022 23:46:14 -0400 |
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> In Java, it's a common style to have hanging parentheses:
> class C <1>{<2>
> void foo() {
> }<3>
> }<4>
> If we're at position <1> and press C-M-e, then it's logical to move to
> <4>,
I'm not convinced. I made end-of-defun move to the newline between defuns,
usually, because there are situations where it is useful to end up there.
One of them is in C-M-h (mark-defun), but it's not that alone.
I think these reasons apply to all languages, especially when there's
a blank line between the defuns.
If you want to end up at the closing delimiter, you can use C-M-a C-M-f.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
- Re: Don't move to eol in end-of-defun?, Alan Mackenzie, 2022/08/01
- Re: Don't move to eol in end-of-defun?,
Richard Stallman <=
- Re: Don't move to eol in end-of-defun?, Filipp Gunbin, 2022/08/03
- Re: Don't move to eol in end-of-defun?, Richard Stallman, 2022/08/04
- Re: Don't move to eol in end-of-defun?, Filipp Gunbin, 2022/08/04
- Re: Don't move to eol in end-of-defun?, Richard Stallman, 2022/08/05
- Re: Don't move to eol in end-of-defun?, Alan Mackenzie, 2022/08/06
- Re: Don't move to eol in end-of-defun?, Richard Stallman, 2022/08/07
- Re: Don't move to eol in end-of-defun?, Filipp Gunbin, 2022/08/08