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:
parent
78b50603a2
commit
826b11ddc6
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue