1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Don't eagerly load xref

Fixes: debbugs:19554

* lisp/menu-bar.el (menu-bar-goto-menu): Before calling
`xref-marker-stack-empty-p', first check that `xref' is loaded.
This commit is contained in:
Dmitry Gutov 2015-01-13 06:06:15 +03:00
parent 52afe0cfa2
commit 329b902141
2 changed files with 8 additions and 1 deletions

View file

@ -381,7 +381,8 @@
(bindings--define-key menu [xref-pop]
'(menu-item "Back" xref-pop-marker-stack
:visible (not (xref-marker-stack-empty-p))
:visible (and (featurep 'xref)
(not (xref-marker-stack-empty-p)))
:help "Back to the position of the last search"))
(bindings--define-key menu [xref-apropos]