summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2015-12-02 04:12:03 +0200
committerDmitry Gutov <dgutov@yandex.ru>2015-12-02 04:12:19 +0200
commitf651cd119908cb96607a892ca49e8b2958cb2937 (patch)
tree4a5c57a562b413eca8c39aec137f7dcfff3d09b5 /lisp/progmodes/xref.el
parentcef6c89175cd93be94a412ceb1b1e38381d209b8 (diff)
downloademacs-f651cd119908cb96607a892ca49e8b2958cb2937.tar.gz
APPEND etags--xref-backend to xref-backend-functions
* lisp/progmodes/xref.el (xref-backend-functions): Use APPEND when adding the default element (http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00061.html).
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 8a69b07132e..397f379d434 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -209,8 +209,9 @@ or an xref backend, which is a value to be used to dispatch the
generic functions.")
;; We make the etags backend the default for now, until something
-;; better comes along.
-(add-hook 'xref-backend-functions #'etags--xref-backend)
+;; better comes along. Use APPEND so that any `add-hook' calls made
+;; before this package is loaded put new items before this one.
+(add-hook 'xref-backend-functions #'etags--xref-backend t)
;;;###autoload
(defun xref-find-backend ()