aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-06-06 14:46:34 -0400
committerGlenn Morris2012-06-06 14:46:34 -0400
commitb7014632a628bfb2a44fdb426e7ab145cc6a2eb5 (patch)
treee2f67b8401cd22d73fe42111b89b639cdb1102ed
parent2b48d7219e98a3faf5adba60a531eee84d2d8c7c (diff)
downloademacs-b7014632a628bfb2a44fdb426e7ab145cc6a2eb5.tar.gz
emacs-b7014632a628bfb2a44fdb426e7ab145cc6a2eb5.zip
Fix previous calendar-in-read-only-buffer change.
Otherwise all the mode-lines get clobbered.
-rw-r--r--lisp/calendar/calendar.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 33cb57b352d..0d6ea8e7f4c 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1112,6 +1112,7 @@ with disabled undo. Leaves point at point-min, displays BUFFER."
1112 (declare (indent 1) (debug t)) 1112 (declare (indent 1) (debug t))
1113 `(progn 1113 `(progn
1114 (set-buffer (get-buffer-create ,buffer)) 1114 (set-buffer (get-buffer-create ,buffer))
1115 (special-mode)
1115 (setq buffer-read-only nil 1116 (setq buffer-read-only nil
1116 buffer-undo-list t) 1117 buffer-undo-list t)
1117 (erase-buffer) 1118 (erase-buffer)
@@ -1119,7 +1120,6 @@ with disabled undo. Leaves point at point-min, displays BUFFER."
1119 (goto-char (point-min)) 1120 (goto-char (point-min))
1120 (set-buffer-modified-p nil) 1121 (set-buffer-modified-p nil)
1121 (setq buffer-read-only t) 1122 (setq buffer-read-only t)
1122 (special-mode)
1123 (display-buffer ,buffer))) 1123 (display-buffer ,buffer)))
1124 1124
1125;; The following are in-line for speed; they can be called thousands of times 1125;; The following are in-line for speed; they can be called thousands of times