branch: elpa/macrostep
commit a478a3a3ed1d279df54ce2d810e5d1a9b110a6cb
Author: joddie <[email protected]>
Commit: joddie <[email protected]>
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)))