mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 22:07:36 +00:00
(elisp--xref-identifier-location): Skip variable, if it's also a functiong
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location): Avoid returning both the variable and the function for the same minor mode.
This commit is contained in:
parent
4841a2d8aa
commit
35be45bbc9
1 changed files with 7 additions and 3 deletions
|
|
@ -599,9 +599,13 @@ It can be quoted, or be inside a quoted form."
|
|||
(find-function-library sym)))
|
||||
(setq sym (car fun-lib))
|
||||
(cdr fun-lib))))
|
||||
(`defvar (when (boundp sym)
|
||||
(or (symbol-file sym 'defvar)
|
||||
(help-C-file-name sym 'var))))
|
||||
(`defvar (and (boundp sym)
|
||||
;; Don't show minor modes twice.
|
||||
;; TODO: If TYPE ever becomes dependent on the
|
||||
;; context, move this check outside.
|
||||
(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)))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue