From 76cbbccbceea488c1876af4095beff164c71262e Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 16 Dec 2024 21:43:29 +0100 Subject: [PATCH] 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) --- lisp/help.el | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5