diff options
author | Yuan Fu <casouri@gmail.com> | 2022-11-10 15:00:29 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-11-10 15:00:29 -0800 |
commit | 4489450f37deafb013b1f0fc00c89f0973fda14a (patch) | |
tree | 0c0e9a00a8003e3715c4e6ef906f70ffac8e0ac2 /test/lisp/emacs-lisp/bytecomp-resources/warn-variable-setq-nonvariable.el | |
parent | 98ed6db34f76cfe37d70d8ad82d29fcfa2a56e24 (diff) | |
download | emacs-4489450f37deafb013b1f0fc00c89f0973fda14a.tar.gz emacs-4489450f37deafb013b1f0fc00c89f0973fda14a.tar.bz2 emacs-4489450f37deafb013b1f0fc00c89f0973fda14a.zip |
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.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-variable-setq-nonvariable.el')
0 files changed, 0 insertions, 0 deletions