# HG changeset patch # User Richard M. Stallman # Date 1168391707 0 # Node ID c6f5de1b0b6ee48b43d0bc55aaac2405512446de # Parent 5fb06d3ea025a2288ecb586328f00dc09984552f (momentary-string-display): Use save-excursion. diff -r 5fb06d3ea025 -r c6f5de1b0b6e lisp/subr.el --- a/lisp/subr.el Wed Jan 10 01:14:26 2007 +0000 +++ b/lisp/subr.el Wed Jan 10 01:15:07 2007 +0000 @@ -1905,11 +1905,11 @@ (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)