emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/setup f86d9f4 07/10: Add support for xref jump-to-defin


From: Stefan Monnier
Subject: [elpa] externals/setup f86d9f4 07/10: Add support for xref jump-to-definition for local macros
Date: Wed, 12 May 2021 18:45:55 -0400 (EDT)

branch: externals/setup
commit f86d9f4adcda41fc31bf4d3d2ed7aa0d66474c76
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Add support for xref jump-to-definition for local macros
---
 setup.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/setup.el b/setup.el
index f0fb7e9..f3d4255 100644
--- a/setup.el
+++ b/setup.el
@@ -199,6 +199,12 @@ If not given, it is assumed nothing is evaluated."
                  (cons '&rest spec))
                 (t spec)))))
 
+(add-to-list 'elisp-xref-find-def-functions
+             (defun setup-xref-def-function (symbol)
+               "Return an elisp xref location for SYMBOL."
+               (require 'elisp-mode)
+               (list (elisp--xref-make-xref nil symbol "setup"))))
+
 
 ;;; definitions of `setup' keywords
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]