+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
(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)
\f