]> git.eshelyaron.com Git - emacs.git/commit
Fix xref elisp identifier namespace mistake
authorMattias Engdegård <mattiase@acm.org>
Mon, 18 Oct 2021 15:06:22 +0000 (17:06 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 18 Oct 2021 15:26:45 +0000 (17:26 +0200)
commitbb4209a5a5337f9c09c4ebb2a65415a41361d8da
treea0d45ec5a495f364663bfe389fdcae16a0dd7a62
parentc163fd9260317adbb85a2274dab795a6a7f3061f
Fix xref elisp identifier namespace mistake

Pressing `M-.` on ALPHA in

  (let ((ALPHA BETA)) ...)

would incorrectly search for ALPHA as a function rather than a variable.

* lisp/progmodes/elisp-mode.el (elisp--xref-infer-namespace): Fix logic.
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-mode-infer-namespace): Add test case.
lisp/progmodes/elisp-mode.el
test/lisp/progmodes/elisp-mode-tests.el