aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-01-10 01:15:19 +0000
committerRichard M. Stallman2007-01-10 01:15:19 +0000
commiteb486e20b02b7382efc8fbd2ec1315a510d69ad3 (patch)
tree09e880517ab20ba70075ee82d08b863269f70ac4
parent247bc2725b463c492d1990106584a683e00cb464 (diff)
downloademacs-eb486e20b02b7382efc8fbd2ec1315a510d69ad3.tar.gz
emacs-eb486e20b02b7382efc8fbd2ec1315a510d69ad3.zip
(momentary-string-display): Use save-excursion.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/subr.el8
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 809f6510b9c..997ead93bc8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12007-01-10 Richard Stallman <rms@gnu.org> 12007-01-10 Richard Stallman <rms@gnu.org>
2 2
3 * subr.el (momentary-string-display): Use save-excursion.
4
3 * emacs-lisp/pp.el (pp-eval-expression): Once again eval the 5 * emacs-lisp/pp.el (pp-eval-expression): Once again eval the
4 argument, but read it as `X' does. 6 argument, but read it as `X' does.
5 7
diff --git a/lisp/subr.el b/lisp/subr.el
index c5c12137e55..e7e9867b13e 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1905,11 +1905,11 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
1905 (recenter (/ (window-height) 2))) 1905 (recenter (/ (window-height) 2)))
1906 ;; If that pushed message start off the screen, 1906 ;; If that pushed message start off the screen,
1907 ;; scroll to start it at the top of the screen. 1907 ;; scroll to start it at the top of the screen.
1908 (move-to-window-line 0) 1908 (save-excursion
1909 (if (> (point) pos) 1909 (move-to-window-line 0)
1910 (progn 1910 (if (> (point) pos)
1911 (goto-char pos) 1911 (goto-char pos)
1912 (recenter 0))) 1912 (recenter 0)))
1913 (message (or message "Type %s to continue editing.") 1913 (message (or message "Type %s to continue editing.")
1914 (single-key-description exit-char)) 1914 (single-key-description exit-char))
1915 (let (char) 1915 (let (char)