emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d17ae7f: xref--find-ignores-arguments: Return "" if


From: Dmitry Gutov
Subject: [Emacs-diffs] master d17ae7f: xref--find-ignores-arguments: Return "" if IGNORES is nil
Date: Thu, 2 May 2019 19:48:51 -0400 (EDT)

branch: master
commit d17ae7f5afb851a26a957bd7d1765aae6d08fe1d
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    xref--find-ignores-arguments: Return "" if IGNORES is nil
---
 lisp/progmodes/xref.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index c7f015b..bf999ae 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 "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]