summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2019-05-03 02:48:44 +0300
committerDmitry Gutov <dgutov@yandex.ru>2019-05-03 02:48:44 +0300
commitd17ae7f5afb851a26a957bd7d1765aae6d08fe1d (patch)
tree949e242aac9f98b1efd6aa5cd8aed1d07eba7bc0
parent1cd4a5e5e5db5dc26e279002f3a718e190bcec0c (diff)
downloademacs-d17ae7f5afb851a26a957bd7d1765aae6d08fe1d.tar.gz
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."
IGNORES is a list of glob patterns. DIR is an absolute
directory, used as the root of the ignore globs."
(cl-assert (not (string-match-p "\\`~" dir)))
- (when ignores
+ (if (not ignores)
+ ""
(concat
(shell-quote-argument "(")
" -path "