diff options
| author | Andreas Schwab <schwab@linux-m68k.org> | 2015-08-23 13:42:04 +0200 |
|---|---|---|
| committer | Andreas Schwab <schwab@linux-m68k.org> | 2015-08-23 16:33:39 +0200 |
| commit | 0b0c9565d050bfecc581b342c40b719917395896 (patch) | |
| tree | 66db74031501dff2cd612095c62a6d065a25b023 /lisp/help.el | |
| parent | 70ff62413a17cbe5a4f218202a6a91c38d86c8c8 (diff) | |
| download | emacs-0b0c9565d050bfecc581b342c40b719917395896.tar.gz | |
Revert "Prefer ‘format’ to ‘substitute-command-keys’"
This reverts commit 6af5aad26411ffe21c3fe4bc5438347110910111.
Diffstat (limited to 'lisp/help.el')
| -rw-r--r-- | lisp/help.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/help.el b/lisp/help.el index a8991b5f82b..db87d5852b6 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -964,12 +964,14 @@ documentation for the major and minor modes of that buffer." (let* ((mode major-mode) (file-name (find-lisp-object-file-name mode nil))) (when file-name - (princ (format " defined in ‘%s’" - (file-name-nondirectory file-name))) + (princ (concat (substitute-command-keys " defined in ‘") + (file-name-nondirectory file-name) + (substitute-command-keys "’"))) ;; Make a hyperlink to the library. (with-current-buffer standard-output (save-excursion - (re-search-backward (format "‘\\([^‘’]+\\)’") nil t) + (re-search-backward (substitute-command-keys "‘\\([^‘’]+\\)’") + nil t) (help-xref-button 1 'help-function-def mode file-name))))) (princ ":\n") (princ (documentation major-mode))))) |
