]> git.eshelyaron.com Git - emacs.git/commitdiff
; Load xref when needed (not all functions are autoloaded)
authorMattias Engdegård <mattiase@acm.org>
Sat, 21 Aug 2021 18:16:41 +0000 (20:16 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 21 Aug 2021 18:27:28 +0000 (20:27 +0200)
lisp/progmodes/prog-mode.el

index 3babbdc6b42166ae77b2f3842d99db01e9c46a13..f75a3039d3e9bfa8046e2c62bcdb849778d28692 100644 (file)
@@ -44,6 +44,7 @@
                                 prettify-symbols-mode))
 
 (defun prog-context-menu (menu)
+  (require 'xref)
   (define-key-after menu [prog-separator] menu-bar-separator
     'mark-whole-buffer)
   (define-key-after menu [xref-find-def]