aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFritz Stelzer2019-06-25 13:09:41 +0200
committerLars Ingebrigtsen2019-06-25 13:10:07 +0200
commit235ca1b4dbfd42380117d58801de6b8f6b48a4f9 (patch)
tree55d482e1df000ab3dbe0ecd5d3c800453057e850
parentba476dc975aa2a592a5246877d25e9dc2528cdc4 (diff)
downloademacs-235ca1b4dbfd42380117d58801de6b8f6b48a4f9.tar.gz
emacs-235ca1b4dbfd42380117d58801de6b8f6b48a4f9.zip
Make xref-show-xrefs-function a defcustom
* lisp/progmodes/xref.el (xref-show-xrefs-function): Make into a defcustome (bug#29206). * lisp/progmodes/xref.el (xref-show-definitions-function): Ditto. Copyright-paperwork-exempt: yes
-rw-r--r--lisp/progmodes/xref.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 8769641b084..44934d44ebd 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -875,7 +875,7 @@ local keymap that binds `RET' to `xref-quit-and-goto-xref'."
875 (current-buffer)))))) 875 (current-buffer))))))
876 876
877 877
878(defvar xref-show-xrefs-function 'xref--show-xref-buffer 878(defcustom xref-show-xrefs-function 'xref--show-xref-buffer
879 "Function to display a list of search results. 879 "Function to display a list of search results.
880 880
881It should accept two arguments: FETCHER and ALIST. 881It should accept two arguments: FETCHER and ALIST.
@@ -891,12 +891,14 @@ command was called.
891 891
892DISPLAY-ACTION indicates where the target location should be 892DISPLAY-ACTION indicates where the target location should be
893displayed. The possible values are nil, `window' meaning the 893displayed. The possible values are nil, `window' meaning the
894other window, or `frame' meaning the other frame.") 894other window, or `frame' meaning the other frame."
895 :type 'function)
895 896
896(defvar xref-show-definitions-function 'xref--show-defs-buffer 897(defcustom xref-show-definitions-function 'xref--show-defs-buffer
897 "Function to display a list of definitions. 898 "Function to display a list of definitions.
898 899
899Accepts the same arguments as `xref-show-xrefs-function'.") 900Accepts the same arguments as `xref-show-xrefs-function'."
901 :type 'function)
900 902
901(defvar xref--read-identifier-history nil) 903(defvar xref--read-identifier-history nil)
902 904