diff options
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
-rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 3 |
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) |