(recenter-top-bottom): Don't use `ecase'.
authorRichard M. Stallman <rms@gnu.org>
Mon, 3 Dec 2007 00:27:14 +0000 (00:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 3 Dec 2007 00:27:14 +0000 (00:27 +0000)
lisp/ChangeLog
lisp/window.el

index bec72cc..373eead 100644 (file)
@@ -1,3 +1,7 @@
+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
index fea89e8..025a7c5 100644 (file)
@@ -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)
 \f