Commit aa0c3dca authored by Miles Bader's avatar Miles Bader
Browse files

(easy-mmode-define-navigation):

  Call `recenter' with an arg to prevent redrawing the display.
parent 6a0b0752
2000-10-01 Miles Bader <miles@gnu.org>
* emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): Call
`recenter' with an arg to prevent redrawing the display.
2000-09-30 Stefan Monnier <monnier@cs.yale.edu> 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
* emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name): Prettier. * emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name): Prettier.
......
...@@ -515,7 +515,8 @@ ENDFUN should return the end position (with or without moving point)." ...@@ -515,7 +515,8 @@ ENDFUN should return the end position (with or without moving point)."
,(if endfun `(,endfun) ,(if endfun `(,endfun)
`(re-search-forward ,re nil t 2))) `(re-search-forward ,re nil t 2)))
(point-max)))) (point-max))))
(unless (<= endpt (window-end)) (recenter)))))) (unless (<= endpt (window-end))
(recenter '(0)))))))
(defun ,prev-sym (&optional count) (defun ,prev-sym (&optional count)
,(format "Go to the previous COUNT'th %s" (or name base-name)) ,(format "Go to the previous COUNT'th %s" (or name base-name))
(interactive) (interactive)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment