]> git.eshelyaron.com Git - emacs.git/commit
In end-of-defun, terminate early if no further defun exists
authorYuan Fu <casouri@gmail.com>
Thu, 10 Nov 2022 23:00:29 +0000 (15:00 -0800)
committerYuan Fu <casouri@gmail.com>
Thu, 10 Nov 2022 23:00:29 +0000 (15:00 -0800)
commit4489450f37deafb013b1f0fc00c89f0973fda14a
tree0c0e9a00a8003e3715c4e6ef906f70ffac8e0ac2
parent98ed6db34f76cfe37d70d8ad82d29fcfa2a56e24
In end-of-defun, terminate early if no further defun exists

Before this change, end-of-defun calls end-of-defun-function even if
point is not necessarily at the beginning of a defun (contrary to what
end-of-defun-function's docstring claims).  Now it terminates early
and doesn't call end-of-defun-function.

* lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Update docstring
clarifying the return value.
(end-of-defun): Terminate early if beginning-of-defun-raw returns nil.
lisp/emacs-lisp/lisp.el