emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/project-files-pipe-grep 446bcae 2/3: Remove the fi


From: Dmitry Gutov
Subject: [Emacs-diffs] scratch/project-files-pipe-grep 446bcae 2/3: Remove the first arg (detect the project)
Date: Thu, 27 Dec 2018 19:30:52 -0500 (EST)

branch: scratch/project-files-pipe-grep
commit 446bcaed37b66ec112aaec7a7960e20b969c8012
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Remove the first arg (detect the project)
---
 lisp/progmodes/project.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index c8ac0a9..c7f8e99 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -362,9 +362,9 @@ pattern to search for."
       (user-error "No matches for: %s" regexp))
     (xref--show-xrefs xrefs nil)))
 
-(defun project-files-pipe-grep (project regexp)
+(defun project-files-pipe-grep (regexp)
   (pcase-let*
-      ((files (project-files project))
+      ((files (project-files (project-current t)))
        (infile (make-temp-file "pftg"))
        (output (get-buffer-create " *project grep output*"))
        (`(,grep-re ,file-group ,line-group . ,_) (car grep-regexp-alist))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]