]> git.eshelyaron.com Git - emacs.git/commit
Xref: support lexical variables in Emacs Lisp
authorEshel Yaron <me@eshelyaron.com>
Thu, 8 Aug 2024 11:55:34 +0000 (13:55 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Aug 2024 07:19:07 +0000 (09:19 +0200)
commit7fe833498bfd14c6a8c38d60381c1fc6b2cae834
treef24138b65383fc4fd1caea7f69fadd5b273214e2
parent230f3423d027b8a7aa52194576fa42ffd900d0ad
Xref: support lexical variables in Emacs Lisp

* lisp/emacs-lisp/scope.el
* test/lisp/emacs-lisp/scope-tests.el: New files.
* lisp/progmodes/elisp-mode.el (xref-backend-definitions)
Use new 'scope' function to find bindings of lexical vars.
(xref-backend-references): Implement method.
* lisp/progmodes/xref.el (xref-location-line): Implement for
'xref-buffer-location' locations.
lisp/emacs-lisp/scope.el [new file with mode: 0644]
lisp/progmodes/elisp-mode.el
lisp/progmodes/xref.el
test/lisp/emacs-lisp/scope-tests.el [new file with mode: 0644]