GNU bug report logs -
#25015
26.0.50; beginning-of-defun-raw goes too far
Previous Next
Reported by: Marcin Borkowski <mbork <at> mbork.pl>
Date: Thu, 24 Nov 2016 13:05:01 UTC
Severity: normal
Found in version 26.0.50
Done: Marcin Borkowski <mbork <at> mbork.pl>
Bug is archived. No further changes may be made.
Full log
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
On 24.11.2016 17:59, Eli Zaretskii wrote:
>> From: Marcin Borkowski <mbork <at> mbork.pl>
>> Date: Thu, 24 Nov 2016 14:03:30 +0100
>>
>> consider this in an Elisp-mode buffer:
>>
>> --8<---------------cut here---------------start------------->8---
>> ;; Comment header
>>
>> -!-(defun func-1 (arg)
>> "docstring"
>> body)
>> --8<---------------cut here---------------end--------------->8---
>>
>> (-!- means the point).
> This means point is actually _before_ the function, right?
Assume the drawing was meant to say: at start position.
>
>> Type M-x beginning-of-defun-raw. The point moves to the beginning
>> of buffer instead of staying where it is.
> Do you still think it's a problem?
>
>
>
IMHO it's a design question. Which might be answered with the current
state. OTOH seen from the editors point, just returning nil of no
further from is available seems convenient - that way the current
position isn't lost.
This bug report was last modified 8 years and 178 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.