1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00

Remove duplication of find file pattern arguments

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-derive-find-filepatterns): Avoid including the same
pattern twice.
This commit is contained in:
Mattias Engdegård 2021-09-13 18:38:59 +02:00
parent 1b0fb8fc2e
commit 4cf6d03d04

View 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)