Bind inhibit-read-only to t in substitute-command-keys

* lisp/help.el (substitute-command-keys): Bind inhibit-read-only to t,
to allow modifying strings that are intended for the minibuffer, and
therefore already use minibuffer-prompt-properties.
This commit is contained in:
Stefan Kangas 2024-12-16 21:43:29 +01:00
parent 78b50603a2
commit 826b11ddc6

View file

@ -1397,6 +1397,7 @@ Otherwise, return a new string."
;; itself.
(let ((keymap overriding-local-map)
(inhibit-modification-hooks t)
(inhibit-read-only t)
(orig-buf (current-buffer)))
(with-temp-buffer
(insert string)