aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-04-22 07:51:28 +0000
committerRichard M. Stallman <[email protected]>2002-04-22 07:51:28 +0000
commit73e19344cec9b74c1f59e5fa44902804b397221a (patch)
treee7174d07de08d77286f6d2b25f8b964351a2d39b
parentc9787897df86906ff853f9d09525d6b0adb995aa (diff)
(include-other-diary-files): Allow modifying
included buffer, to turn off selective display.
-rw-r--r--lisp/calendar/diary-lib.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 9c49f17adf..54d5dca80b 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)