(momentary-string-display): Avoid modifying the undo list.

This commit is contained in:
Richard M. Stallman 1994-03-28 06:08:35 +00:00
parent 7015aca452
commit ca2ec1c584

View 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)