]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove duplication of `find` file pattern arguments
authorMattias Engdegård <mattiase@acm.org>
Mon, 13 Sep 2021 16:38:59 +0000 (18:38 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 13 Sep 2021 16:41:58 +0000 (18:41 +0200)
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-derive-find-filepatterns): Avoid including the same
pattern twice.

lisp/cedet/semantic/symref/grep.el

index 180d779a780f2f56e15a0c5981e11fb5e401888e..cee54d78185801207352b0e0276a7df1eae07bcd 100644 (file)
@@ -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)