From: Richard M. Stallman Date: Mon, 22 Apr 2002 07:51:28 +0000 (+0000) Subject: (include-other-diary-files): Allow modifying X-Git-Tag: ttn-vms-21-2-B4~15493 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=73e19344cec9b74c1f59e5fa44902804b397221a;p=emacs.git (include-other-diary-files): Allow modifying included buffer, to turn off selective display. --- diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 9c49f17adfc..54d5dca80b8 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -385,7 +385,8 @@ changing the variable `diary-include-string'." (list-diary-entries original-date number))) (save-excursion (set-buffer (find-buffer-visiting diary-file)) - (subst-char-in-region (point-min) (point-max) ?\^M ?\n t) + (let ((inhibit-read-only t)) + (subst-char-in-region (point-min) (point-max) ?\^M ?\n t)) (setq selective-display nil) (set-buffer-modified-p diary-modified))) (beep)