emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/excorporate e343dc8 47/93: excorporate-diary: Fix read-


From: Stefan Monnier
Subject: [elpa] externals/excorporate e343dc8 47/93: excorporate-diary: Fix read-only diary buffer
Date: Sun, 29 Nov 2020 15:43:06 -0500 (EST)

branch: externals/excorporate
commit e343dc8df70750e14cd4b40ebcd9a131e414d4ed
Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Commit: Thomas Fitzsimmons <fitzsim@fitzsim.org>

    excorporate-diary: Fix read-only diary buffer
    
    * packages/excorporate/excorporate-diary.el
    (exco-diary--fix-percent-signs): Set inhibit-read-only.
---
 excorporate-diary.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/excorporate-diary.el b/excorporate-diary.el
index 9f28b18..181dc72 100644
--- a/excorporate-diary.el
+++ b/excorporate-diary.el
@@ -119,8 +119,9 @@ initialize for today's date, nil otherwise."
 (defun exco-diary--fix-percent-signs ()
   "Replace percent-sign placeholders with percent signs."
   (goto-char (point-min))
-  (while (re-search-forward "<EXCO_PERCENT_SIGN>" nil t)
-    (replace-match "%")))
+  (let ((inhibit-read-only t))
+    (while (re-search-forward "<EXCO_PERCENT_SIGN>" nil t)
+      (replace-match "%"))))
 
 (defun exco-diary-insert-meeting (finalize
                                  subject start _end _location



reply via email to

[Prev in Thread] Current Thread [Next in Thread]