]> git.eshelyaron.com Git - emacs.git/commit
Use help-fns-short-filename in other describe- commands
authorŠtěpán Němec <stepnem@gmail.com>
Sat, 29 Feb 2020 18:43:53 +0000 (19:43 +0100)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 3 Mar 2020 15:52:27 +0000 (10:52 -0500)
commit0f94f698aa7ade7bad73ccae95dee69175460504
tree5f2200c899398d43e1f0ce0a000069fc0bc5719a
parent8518b14a76ba7531a71df97994fe8a197a429d4a
Use help-fns-short-filename in other describe- commands

The commit

2015-01-16T22:52:15-05:00!monnier@iro.umontreal.ca
24b7f77581
(Improve handling of doc-strings and describe-function for cl-generic)

added 'help-fns-short-filename', which provides file name shortening
smarter than a simple 'file-name-nondirectory' call, but besides the
generic/eieio functions ('cl--generic-describe', 'cl--describe-class',
'eieio-help-constructor'), it is currently only used by
'describe-function' (via 'help-fns-function-description-header').

Make the other help commands use it, too.

(Other than the obvious consistency/maintenance argument, my immediate
motivation for this change is the possibility to customize the file
name abbreviation by advising the function.)

* lisp/help.el (describe-mode): Move to help-fns.el.  The command was
already depending on 'find-lisp-object-file-name' defined there.
* lisp/help-fns.el (describe-variable) (describe-face) (describe-keymap)
(describe-mode): Use 'help-fns-short-filename'.
lisp/help-fns.el
lisp/help.el