emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 826b11ddc6c 1/2: Bind inhibit-read-only to t in substitute-comman


From: Stefan Kangas
Subject: master 826b11ddc6c 1/2: Bind inhibit-read-only to t in substitute-command-keys
Date: Mon, 16 Dec 2024 15:46:25 -0500 (EST)

branch: master
commit 826b11ddc6c69a06fbed09519b78896085647af0
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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.
---
 lisp/help.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/help.el b/lisp/help.el
index ef0b7ffc01d..9f692e1d042 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]