Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
18715c33
Commit
18715c33
authored
Dec 03, 2007
by
Richard M. Stallman
Browse files
(recenter-top-bottom): Don't use `ecase'.
parent
369fc5a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/window.el
lisp/window.el
+9
-4
No files found.
lisp/ChangeLog
View file @
18715c33
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
...
...
lisp/window.el
View file @
18715c33
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment