emacs-devel
[Top][All Lists]
Advanced

[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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]