From: Glenn Morris Date: Wed, 6 Jun 2012 18:46:34 +0000 (-0400) Subject: Fix previous calendar-in-read-only-buffer change. X-Git-Tag: emacs-24.2.90~1199^2~474^2~106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b7014632a628bfb2a44fdb426e7ab145cc6a2eb5;p=emacs.git Fix previous calendar-in-read-only-buffer change. Otherwise all the mode-lines get clobbered. --- 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." (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