Make debug' reset inhibit-read-only' while running

* lisp/emacs-lisp/debug.el (debug): Bind `inhibit-read-only' to
nil in case we're in a context that has bound it to t (bug#26947).
This commit is contained in:
Lars Ingebrigtsen 2021-08-13 15:50:14 +02:00
parent e30c7f314b
commit 8fbb870083

View file

@ -182,7 +182,11 @@ the debugger will not be entered."
(equal "initial_terminal" (terminal-name)))))
;; Don't let `inhibit-message' get in our way (especially important if
;; `non-interactive-frame' evaluated to a non-nil value.
(inhibit-message nil))
(inhibit-message nil)
;; We may be entering the debugger from a context that has
;; let-bound `inhibit-read-only', which means that all
;; buffers would be read/write while the debugger is running.
(inhibit-read-only nil))
(unless non-interactive-frame
(message "Entering debugger..."))
(let (debugger-value