summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-03-03 16:12:02 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-03-03 16:12:02 +0000
commit7bbab3e051d1d5911332ba4314aa2830c8d7af55 (patch)
tree7d99fbce942a5f3f29b69105a7ada955a2f76db5 /lisp/emacs-lisp/lisp.el
parent9b2c84d6456f5c800718114c730fbbb883972abc (diff)
downloademacs-7bbab3e051d1d5911332ba4314aa2830c8d7af55.tar.gz
(end-of-defun-function): Make it more clear that
the function takes no argument.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
-rw-r--r--lisp/emacs-lisp/lisp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
index f11c99100a1..6de82b43c3d 100644
--- a/lisp/emacs-lisp/lisp.el
+++ b/lisp/emacs-lisp/lisp.el
@@ -313,7 +313,8 @@ is called as a function to find the defun's beginning."
(goto-char (if arg-+ve floor ceiling))
nil))))))))
-(defvar end-of-defun-function #'forward-sexp
+(defvar end-of-defun-function
+ (lambda () (forward-sexp 1))
"Function for `end-of-defun' to call.
This is used to find the end of the defun at point.
It is called with no argument, right after calling `beginning-of-defun-raw'.