From 3924730200ccb79361ceac176e22731e862dbdd7 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 18 Sep 2024 19:59:35 +0300 Subject: [PATCH] ; 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'. --- lisp/progmodes/grep.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 54006560224..b453ac60ed2 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -1122,7 +1122,8 @@ The only editable texts in a Grep-Edit buffer are the match results." (setq buffer-undo-list nil) (add-hook 'after-change-functions #'occur-after-change-function nil t) (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 () "Switch back to Grep mode."