aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2019-05-03 02:48:44 +0300
committerDmitry Gutov2019-05-03 02:48:44 +0300
commitd17ae7f5afb851a26a957bd7d1765aae6d08fe1d (patch)
tree949e242aac9f98b1efd6aa5cd8aed1d07eba7bc0
parent1cd4a5e5e5db5dc26e279002f3a718e190bcec0c (diff)
downloademacs-d17ae7f5afb851a26a957bd7d1765aae6d08fe1d.tar.gz
emacs-d17ae7f5afb851a26a957bd7d1765aae6d08fe1d.zip
xref--find-ignores-arguments: Return "" if IGNORES is nil
-rw-r--r--lisp/progmodes/xref.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index c7f015b94f0..bf999aeb0d1 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -1064,7 +1064,8 @@ IGNORES is a list of glob patterns."
1064IGNORES is a list of glob patterns. DIR is an absolute 1064IGNORES is a list of glob patterns. DIR is an absolute
1065directory, used as the root of the ignore globs." 1065directory, used as the root of the ignore globs."
1066 (cl-assert (not (string-match-p "\\`~" dir))) 1066 (cl-assert (not (string-match-p "\\`~" dir)))
1067 (when ignores 1067 (if (not ignores)
1068 ""
1068 (concat 1069 (concat
1069 (shell-quote-argument "(") 1070 (shell-quote-argument "(")
1070 " -path " 1071 " -path "