Skip to content

Commit

Permalink
Use command substitution for exit-recursive-edit
Browse files Browse the repository at this point in the history
* lisp/bindings.el (mode-line-modes):
* lisp/emacs-lisp/checkdoc.el (checkdoc-recursive-edit): Use command
substitution for 'exit-recursive-edit'.
  • Loading branch information
skangas committed Sep 18, 2021
1 parent 4b3dc7a commit ec0527d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lisp/bindings.el
Expand Up @@ -381,7 +381,9 @@ Keymap to display on major mode.")
Keymap to display on minor modes.")

(defvar mode-line-modes
(let ((recursive-edit-help-echo "Recursive edit, type C-M-c to get out"))
(let ((recursive-edit-help-echo
(substitute-command-keys
"Recursive edit, type \\[exit-recursive-edit] to get out")))
(list (propertize "%[" 'help-echo recursive-edit-help-echo)
"("
`(:propertize ("" mode-name)
Expand Down
3 changes: 2 additions & 1 deletion lisp/emacs-lisp/checkdoc.el
Expand Up @@ -828,7 +828,8 @@ MSG is the error that was found, which is displayed in a help buffer."
"\n\nEdit to fix this problem, and press C-M-c to continue.")))
(shrink-window-if-larger-than-buffer
(get-buffer-window "*Checkdoc Help*"))
(message "When you're done editing press C-M-c to continue.")
(message (substitute-command-keys
"When you're done editing press \\[exit-recursive-edit] to continue."))
(unwind-protect
(recursive-edit)
(if (get-buffer-window "*Checkdoc Help*")
Expand Down

0 comments on commit ec0527d

Please sign in to comment.