From: Dmitry Gutov Date: Thu, 2 May 2019 23:48:44 +0000 (+0300) Subject: xref--find-ignores-arguments: Return "" if IGNORES is nil X-Git-Tag: emacs-27.0.90~3011 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d17ae7f5afb851a26a957bd7d1765aae6d08fe1d;p=emacs.git xref--find-ignores-arguments: Return "" if IGNORES is nil --- 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 "