[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17247: 24.4.50; end-of-defun bug in elisp
From: |
Andreas Röhler |
Subject: |
bug#17247: 24.4.50; end-of-defun bug in elisp |
Date: |
Tue, 20 May 2014 18:33:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
On 20.05.2014 16:18, Stefan Monnier wrote:
This seems broken internally by (funcall end-of-defun-function), which
doesn't care for arguments.
Of course it doesn't. It just jumps from the beginning of a defun to
its end. There can be no other direction and it can't be repeated since
after the first call, there's no reason to think we're at the beginning
of another defun.
Stefan
Docstring says:
"If variable `end-of-defun-function' is non-nil, its value
is called as a function to find the defun's end."
That's okay. However, if a move-action is taken, it should count WRT
repeat-arguments.
Also would consider it as an alternative, excluding the forms run otherwise.
Sadly the common way is followed afterwards nonetheless.
That's an ill-design already mentioned WRT forward-paragraph and others.
While always enjoying Emacs,
Andreas