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

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

[nongnu] elpa/macrostep a478a3a 054/110: Bind inhibit-read-only instead


From: ELPA Syncer
Subject: [nongnu] elpa/macrostep a478a3a 054/110: Bind inhibit-read-only instead of buffer-read-only
Date: Sat, 7 Aug 2021 09:18:01 -0400 (EDT)

branch: elpa/macrostep
commit a478a3a3ed1d279df54ce2d810e5d1a9b110a6cb
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    Bind inhibit-read-only instead of buffer-read-only
---
 macrostep.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/macrostep.el b/macrostep.el
index 293bef5..7d239e2 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -482,7 +482,7 @@ If no more macro expansions are visible after this, exit
   (interactive)
   (let ((overlay (macrostep-overlay-at-point)))
     (when (not overlay) (error "No macro expansion at point"))
-    (let ((buffer-read-only nil))
+    (let ((inhibit-read-only t))
       (with-silent-modifications
         (atomic-change-group
           (macrostep-collapse-overlay overlay)))))
@@ -492,7 +492,7 @@ If no more macro expansions are visible after this, exit
 (defun macrostep-collapse-all ()
   "Collapse all visible macro expansions and exit `macrostep-mode'."
   (interactive)
-  (let ((buffer-read-only nil))
+  (let ((inhibit-read-only t))
     (with-silent-modifications
       (dolist (overlay macrostep-overlays)
         (let ((outermost (= (overlay-get overlay 'priority) 1)))



reply via email to

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