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).
This commit is contained in:
Dmitry Gutov 2015-12-02 04:12:03 +02:00
parent cef6c89175
commit f651cd1199

View file

@ -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 ()