From: Dmitry Gutov Date: Thu, 4 Feb 2021 23:17:09 +0000 (+0200) Subject: Fix the previous change X-Git-Tag: emacs-27.2-rc1~37 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fc37dc298f;p=emacs.git Fix the previous change * lisp/progmodes/project.el (project-find-regexp): Fix the previous change (project-root is not defined in this version). (project-or-external-find-regexp): Same. --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 2b35ea412f7..ca0755cf8cd 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -441,7 +441,7 @@ requires quoting, e.g. `\\[quoted-insert]'." (require 'xref) (require 'grep) (let* ((pr (project-current t)) - (default-directory (project-root pr)) + (default-directory (car (project-roots pr))) (files (if (not current-prefix-arg) (project-files pr (project-roots pr)) @@ -474,7 +474,7 @@ pattern to search for." (interactive (list (project--read-regexp))) (require 'xref) (let* ((pr (project-current t)) - (default-directory (project-root pr)) + (default-directory (car (project-roots pr))) (files (project-files pr (append (project-roots pr)