]> git.eshelyaron.com Git - emacs.git/commit
Use Emacs Lisp xref backend in Lisp Help buffers
authorDmitry Gutov <dmitry@gutov.dev>
Thu, 3 Oct 2024 00:04:46 +0000 (03:04 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Oct 2024 06:47:21 +0000 (08:47 +0200)
commit3f634b0e45fa1f7aa82b61ce4c6741a7f92c38d6
treef719e1f6e3f45e2508896edd2b76d55e56dd1889
parenta716a768839ceae67e9a82791f661c6bce5ba06b
Use Emacs Lisp xref backend in Lisp Help buffers

* lisp/help-fns.el (help-fns--setup-xref-backend):
New function (bug#69462).
(describe-function, describe-variable): Use it here.

* lisp/emacs-lisp/cl-extra.el (cl-describe-type): And here.

* lisp/progmodes/elisp-mode.el (xref-backend-definitions):
Only infer namespace in emacs-lisp-mode (use 'any' otherwise).

(cherry picked from commit c8ecd7fa0da8a597250989430ac2b2465419f18e)
lisp/emacs-lisp/cl-extra.el
lisp/help-fns.el
lisp/progmodes/elisp-mode.el