1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00

Fix previous calendar-in-read-only-buffer change.

Otherwise all the mode-lines get clobbered.
This commit is contained in:
Glenn Morris 2012-06-06 14:46:34 -04:00
parent 2b48d7219e
commit b7014632a6

View File

@ -1112,6 +1112,7 @@ with disabled undo. Leaves point at point-min, displays BUFFER."
(declare (indent 1) (debug t))
`(progn
(set-buffer (get-buffer-create ,buffer))
(special-mode)
(setq buffer-read-only nil
buffer-undo-list t)
(erase-buffer)
@ -1119,7 +1120,6 @@ with disabled undo. Leaves point at point-min, displays BUFFER."
(goto-char (point-min))
(set-buffer-modified-p nil)
(setq buffer-read-only t)
(special-mode)
(display-buffer ,buffer)))
;; The following are in-line for speed; they can be called thousands of times