]> git.eshelyaron.com Git - emacs.git/commitdiff
Close bug#5670 with patch from Å tÄ\9bpán NÄ\9bmec <stepnem at gmail.com>.
authorŠtěpán Němec <stepnem@gmail.com>
Wed, 3 Mar 2010 03:58:26 +0000 (19:58 -0800)
committerGlenn Morris <rgm@gnu.org>
Wed, 3 Mar 2010 03:58:26 +0000 (19:58 -0800)
* subr.el (momentary-string-display): Don't overwrite the MESSAGE
argument with a local variable.  (Bug#5670)

lisp/ChangeLog
lisp/subr.el

index 607154f9c3c5807959bd311d33417b0bb79bee8b..016ab7b431f07c88c822cc97cf6cb9be6e0f2c95 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-03  Štěpán Němec  <stepnem@gmail.com>
+
+       * subr.el (momentary-string-display): Don't overwrite the MESSAGE
+       argument with a local variable.  (Bug#5670)
+
 2010-03-02  Juri Linkov  <juri@jurta.org>
 
        * info.el (Info-index-next): Decrement line number by 2.  (Bug#5652)
index 977d5a53f3597108df182c52fc10dcf7332047a8..be06a558e5a4d6c2cff742570b339e7a00ff21c9 100644 (file)
@@ -2196,15 +2196,15 @@ Display MESSAGE (optional fourth arg) in the echo area.
 If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
   (or exit-char (setq exit-char ?\s))
   (let ((ol (make-overlay pos pos))
-        (message (copy-sequence string)))
+        (str (copy-sequence string)))
     (unwind-protect
         (progn
           (save-excursion
-            (overlay-put ol 'after-string message)
+            (overlay-put ol 'after-string str)
             (goto-char pos)
             ;; To avoid trouble with out-of-bounds position
             (setq pos (point))
-            ;; If the message end is off screen, recenter now.
+            ;; If the string end is off screen, recenter now.
             (if (<= (window-end nil t) pos)
                 (recenter (/ (window-height) 2))))
           (message (or message "Type %s to continue editing.")