* lisp/dired-aux.el (dired-query):
* lisp/emacs-lisp/helper.el (Helper-help-map):
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Use 'help-key'.
* lisp/net/tramp-cmds.el (tramp-rename-files):
* lisp/which-key.el (which-key--next-page-hint): Prefer 'help-key'
when available.
* lisp/help.el (help-key): Simplify.
* etc/symbol-releases.eld: Add 'help-key'.
(cherry picked from commit
69210eb84e7c3074c339b8aa2f380f66a80ae61b)
(
("29.1" fun plistp)
+ ("29.1" fun help-key)
("28.1" fun always)
("27.1" fun project-files)
("26.1" fun flymake--diag-region)
"%s(\\`y', \\`n', \\`!', \\`.', \\`q', %sor \\`%s') "
minibuffer-prompt-properties)
prompt user-keys
- (key-description (vector help-char)))))
+ (help-key))))
(if minibuffer-auto-raise
(raise-frame (window-frame (minibuffer-window))))
(unwind-protect
(format
"%s(\\`y', \\`n', \\`!', \\`.', \\`q', %sor \\`%s') %s"
prompt user-keys
- (key-description (vector help-char))
+ (help-key)
(if (equal char -1)
"[end-of-keyboard-macro]"
(single-key-description char))))))
(message (substitute-command-keys
(format
"Type \\`%s' for help"
- (key-description (vector help-char)))))
+ (help-key))))
(beep)
(sit-for 1)
(funcall try-again))))
(defun help-key ()
"Return `help-char' in a format suitable for the `keymap-set' KEY argument."
- (key-description (char-to-string help-char)))
+ (key-description (vector help-char)))
(declare-function cl-describe-type "cl-extra")
(new-bfn (and (stringp bfn) (string-replace source target bfn)))
(prompt (format-message
"Set visited file name to `%s' [Type yn!eq or %s] "
- new-bfn (key-description (vector help-char)))))
+ new-bfn (if (fboundp 'help-key) (help-key) ; 29.1
+ (key-description (vector help-char))))))
(when (and (buffer-live-p buffer) (stringp bfn)
(string-prefix-p source bfn)
;; Skip, and don't ask again.
(let* ((paging-key (concat prefix-keys " " which-key-paging-key))
(paging-key-bound (eq 'which-key-C-h-dispatch
(key-binding (kbd paging-key))))
- (key (key-description (vector help-char)))
+ (key (if (fboundp 'help-key) (help-key) ; 29.1
+ (key-description (vector help-char))))
(key (if paging-key-bound
(concat key " or " which-key-paging-key)
key)))