[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Don't move to eol in end-of-defun?
From: |
Filipp Gunbin |
Subject: |
Re: Don't move to eol in end-of-defun? |
Date: |
Mon, 01 Aug 2022 01:31:28 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) |
On 31/07/2022 01:40 +0200, Daniel Martín wrote:
> Filipp Gunbin <fgunbin@fastmail.fm> writes:
>
>> 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>, and that's what I implement in javaimp package, by defining my own
>> beginning-of-defun-function / end-of-defun-function.
>
> If I yank your sample program in a buffer in Java mode, with point at
> <1>, C-M-e goes to <4>, as expected. So I don´t know why you need to
> implement your own end-of-defun-function in your package.
I'd like to not rely on java-mode (part of cc-mode).
Thanks.