diff options
| author | Dmitry Gutov | 2019-05-03 02:48:44 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2019-05-03 02:48:44 +0300 |
| commit | d17ae7f5afb851a26a957bd7d1765aae6d08fe1d (patch) | |
| tree | 949e242aac9f98b1efd6aa5cd8aed1d07eba7bc0 | |
| parent | 1cd4a5e5e5db5dc26e279002f3a718e190bcec0c (diff) | |
| download | emacs-d17ae7f5afb851a26a957bd7d1765aae6d08fe1d.tar.gz emacs-d17ae7f5afb851a26a957bd7d1765aae6d08fe1d.zip | |
xref--find-ignores-arguments: Return "" if IGNORES is nil
| -rw-r--r-- | lisp/progmodes/xref.el | 3 |
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." | |||
| 1064 | IGNORES is a list of glob patterns. DIR is an absolute | 1064 | IGNORES is a list of glob patterns. DIR is an absolute |
| 1065 | directory, used as the root of the ignore globs." | 1065 | directory, 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 " |