Commit b7014632 authored by Glenn Morris's avatar Glenn Morris
Browse files

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

Otherwise all the mode-lines get clobbered.
parent 2b48d721
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment