]> git.eshelyaron.com Git - emacs.git/commitdiff
(momentary-string-display): Avoid modifying the undo list.
authorRichard M. Stallman <rms@gnu.org>
Mon, 28 Mar 1994 06:08:35 +0000 (06:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 28 Mar 1994 06:08:35 +0000 (06:08 +0000)
lisp/subr.el

index 5a08278241fdf24104ad4a6399b6ac5412d91e20..50321c3d666b1657198ab4d1ad0b15222ebf394d 100644 (file)
@@ -600,6 +600,8 @@ 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 ?\ ))
   (let ((buffer-read-only nil)
+       ;; Don't modify the undo list at all.
+       (buffer-undo-list t)
        (modified (buffer-modified-p))
        (name buffer-file-name)
        insert-end)