]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-dir.el (vc-dir-search): Avoid `eval`.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 20 Jun 2019 21:45:52 +0000 (17:45 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 20 Jun 2019 21:45:52 +0000 (17:45 -0400)
lisp/vc/vc-dir.el

index 7af1e0db4ff50525beebce8c6ba391b63c8ffb7a..41b1087ee59e561f5c2b5b2a75fbf0dc12d630d5 100644 (file)
@@ -804,7 +804,9 @@ For marked directories, use the files displayed from those directories.
 Stops when a match is found.
 To continue searching for next match, use command \\[tags-loop-continue]."
   (interactive "sSearch marked files (regexp): ")
-  (tags-search regexp '(mapcar 'car (vc-dir-marked-only-files-and-states))))
+  (tags-search regexp
+               (lambda ()
+                 (mapcar #'car (vc-dir-marked-only-files-and-states)))))
 
 (defun vc-dir-query-replace-regexp (from to &optional delimited)
   "Do `query-replace-regexp' of FROM with TO, on all marked files.