[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17247: 24.4.50; end-of-defun bug in elisp

From: Dmitry Gutov
Subject: bug#17247: 24.4.50; end-of-defun bug in elisp
Date: Tue, 20 May 2014 19:39:20 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 20.05.2014 18:59, Andreas Röhler wrote:

Maybe, but is this sane? IMO these commands shoulds always move in one
Why not behave like forward/backward-word for example?

Check out the docstring of `end-of-defun-function'. It has a very specific calling conditions.

`forward-word' doesn't really need to know where the current word began (if we're within a word), whereas `end-of-defun-function' often does need to know that. So knowing that it's only ever called from a beginning of defun (or beginning of buffer, I guess) can simplify its implementation.

reply via email to

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