summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 6b8ab0503f0..46402aa53b1 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -515,7 +515,8 @@ ENDFUN should return the end position (with or without moving point)."
,(if endfun `(,endfun)
`(re-search-forward ,re nil t 2)))
(point-max))))
- (unless (<= endpt (window-end)) (recenter))))))
+ (unless (<= endpt (window-end))
+ (recenter '(0)))))))
(defun ,prev-sym (&optional count)
,(format "Go to the previous COUNT'th %s" (or name base-name))
(interactive)