From: Stefan Kangas Date: Mon, 16 Dec 2024 20:43:29 +0000 (+0100) Subject: Bind inhibit-read-only to t in substitute-command-keys X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=76cbbccbceea488c1876af4095beff164c71262e;p=emacs.git 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. (cherry picked from commit 826b11ddc6c69a06fbed09519b78896085647af0) --- diff --git a/lisp/help.el b/lisp/help.el index 52bc2101926..0b6fd3c2290 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -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)