[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 4cf6d03: Remove duplication of `find` file pattern arguments
From: |
Mattias Engdegård |
Subject: |
master 4cf6d03: Remove duplication of `find` file pattern arguments |
Date: |
Mon, 13 Sep 2021 12:42:08 -0400 (EDT) |
branch: master
commit 4cf6d03d04ecadfd74fa4998fde14dcc79fd6daf
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Remove duplication of `find` file pattern arguments
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-derive-find-filepatterns): Avoid including the same
pattern twice.
---
lisp/cedet/semantic/symref/grep.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/cedet/semantic/symref/grep.el
b/lisp/cedet/semantic/symref/grep.el
index 180d779..cee54d7 100644
--- a/lisp/cedet/semantic/symref/grep.el
+++ b/lisp/cedet/semantic/symref/grep.el
@@ -87,7 +87,7 @@ Optional argument MODE specifies the `major-mode' to test."
(if (null (cdr pat))
args
`("(" ,@args
- ,@(mapcan (lambda (s) `("-o" "-name" ,s)) pat)
+ ,@(mapcan (lambda (s) `("-o" "-name" ,s)) (cdr pat))
")"))))))
(defvar semantic-symref-grep-flags)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 4cf6d03: Remove duplication of `find` file pattern arguments,
Mattias Engdegård <=