aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2015-12-02 04:12:03 +0200
committerDmitry Gutov2015-12-02 04:12:19 +0200
commitf651cd119908cb96607a892ca49e8b2958cb2937 (patch)
tree4a5c57a562b413eca8c39aec137f7dcfff3d09b5
parentcef6c89175cd93be94a412ceb1b1e38381d209b8 (diff)
downloademacs-f651cd119908cb96607a892ca49e8b2958cb2937.tar.gz
emacs-f651cd119908cb96607a892ca49e8b2958cb2937.zip
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).
-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
209generic functions.") 209generic functions.")
210 210
211;; We make the etags backend the default for now, until something 211;; We make the etags backend the default for now, until something
212;; better comes along. 212;; better comes along. Use APPEND so that any `add-hook' calls made
213(add-hook 'xref-backend-functions #'etags--xref-backend) 213;; before this package is loaded put new items before this one.
214(add-hook 'xref-backend-functions #'etags--xref-backend t)
214 215
215;;;###autoload 216;;;###autoload
216(defun xref-find-backend () 217(defun xref-find-backend ()