; Small fix for 'grep-change-to-grep-edit-mode'

* lisp/progmodes/grep.el (grep-change-to-grep-edit-mode):
Use 'substitute-command-keys' like in 'occur-edit-mode'.
This commit is contained in:
Juri Linkov 2024-09-18 19:59:35 +03:00
parent 5e377f4fcc
commit 3924730200

View file

@ -1122,7 +1122,8 @@ The only editable texts in a Grep-Edit buffer are the match results."
(setq buffer-undo-list nil) (setq buffer-undo-list nil)
(add-hook 'after-change-functions #'occur-after-change-function nil t) (add-hook 'after-change-functions #'occur-after-change-function nil t)
(run-mode-hooks 'grep-edit-mode-hook) (run-mode-hooks 'grep-edit-mode-hook)
(message "Editing: \\[grep-edit-save-changes] to return to Grep mode")) (message (substitute-command-keys
"Editing: Type \\[grep-edit-save-changes] to return to Grep mode")))
(defun grep-edit-save-changes () (defun grep-edit-save-changes ()
"Switch back to Grep mode." "Switch back to Grep mode."