mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
Don't show both feature and function with the same name
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location): Don't show both feature and function with the same name.
This commit is contained in:
parent
35be45bbc9
commit
3ec1047b57
1 changed files with 7 additions and 3 deletions
|
|
@ -606,9 +606,13 @@ It can be quoted, or be inside a quoted form."
|
|||
(not (fboundp sym))
|
||||
(or (symbol-file sym 'defvar)
|
||||
(help-C-file-name sym 'var))))
|
||||
(`feature (when (featurep sym)
|
||||
(ignore-errors
|
||||
(find-library-name (symbol-name sym)))))
|
||||
(`feature (and (featurep sym)
|
||||
;; Skip when a function with the same name
|
||||
;; is defined, because it's probably in the
|
||||
;; same file.
|
||||
(not (fboundp sym))
|
||||
(ignore-errors
|
||||
(find-library-name (symbol-name sym)))))
|
||||
(`defface (when (facep sym)
|
||||
(symbol-file sym 'defface))))))
|
||||
(when file
|
||||
|
|
|
|||
Loading…
Reference in a new issue