mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(momentary-string-display): Use save-excursion.
This commit is contained in:
parent
247bc2725b
commit
eb486e20b0
@ -1,5 +1,7 @@
|
||||
2007-01-10 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* subr.el (momentary-string-display): Use save-excursion.
|
||||
|
||||
* emacs-lisp/pp.el (pp-eval-expression): Once again eval the
|
||||
argument, but read it as `X' does.
|
||||
|
||||
|
@ -1905,11 +1905,11 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
|
||||
(recenter (/ (window-height) 2)))
|
||||
;; If that pushed message start off the screen,
|
||||
;; scroll to start it at the top of the screen.
|
||||
(move-to-window-line 0)
|
||||
(if (> (point) pos)
|
||||
(progn
|
||||
(save-excursion
|
||||
(move-to-window-line 0)
|
||||
(if (> (point) pos)
|
||||
(goto-char pos)
|
||||
(recenter 0)))
|
||||
(recenter 0)))
|
||||
(message (or message "Type %s to continue editing.")
|
||||
(single-key-description exit-char))
|
||||
(let (char)
|
||||
|
Loading…
Reference in New Issue
Block a user