Commit 18715c33 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(recenter-top-bottom): Don't use `ecase'.

parent 369fc5a6
2007-12-03 Richard Stallman <rms@gnu.org>
* window.el (recenter-top-bottom): Don't use `ecase'.
2007-12-02 Karl Fogel <kfogel@red-bean.com>
* saveplace.el (save-place-alist-to-file): Set
......
......@@ -905,10 +905,15 @@ from true window top and bottom."
(recenter))
(t ;; repeat: loop through various options.
(setq recenter-last-op
(ecase recenter-last-op
(middle (recenter scroll-conservatively) 'top)
(top (recenter (1- (- scroll-conservatively))) 'bottom)
(bottom (recenter) 'middle))))))
(cond ((eq recenter-last-op 'middle)
(recenter scroll-conservatively)
'top)
((eq recenter-last-op 'top)
(recenter (1- (- scroll-conservatively)))
'bottom)
((eq recenter-last-op 'bottom)
(recenter)
'middle))))))
(define-key global-map [?\C-l] 'recenter-top-bottom)
......
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