changeset 44732:a3338547dad4

(include-other-diary-files): Allow modifying included buffer, to turn off selective display.
author Richard M. Stallman <rms@gnu.org>
date Mon, 22 Apr 2002 07:51:28 +0000
parents 5d3c147b760a
children d49f5ed1a977
files lisp/calendar/diary-lib.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/diary-lib.el	Mon Apr 22 07:50:50 2002 +0000
+++ b/lisp/calendar/diary-lib.el	Mon Apr 22 07:51:28 2002 +0000
@@ -385,7 +385,8 @@
                                 (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)