]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind inhibit-read-only to t in substitute-command-keys
authorStefan Kangas <stefankangas@gmail.com>
Mon, 16 Dec 2024 20:43:29 +0000 (21:43 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:06:20 +0000 (16:06 +0100)
* 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.

(cherry picked from commit 826b11ddc6c69a06fbed09519b78896085647af0)

lisp/help.el

index 52bc2101926f4a8f469906c870992eaab8ef2f42..0b6fd3c229027c803a91f073cf5cb1c35ee3cb9a 100644 (file)
@@ -1548,6 +1548,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)