From: Stephen Leake Date: Mon, 20 May 2019 22:24:47 +0000 (-0700) Subject: Revert recent project-find-file change X-Git-Tag: emacs-27.0.90~2805^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fb3b78f7b0a1391a5c20c8f795a3c514c7545d64;p=emacs.git Revert recent project-find-file change * lisp/progmodes/project.el (project-find-file): Delete recently added 'filename' arg; just use project-find-file-in. --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index e44cee2133f..ec7df78efc7 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -443,14 +443,14 @@ pattern to search for." (read-regexp "Find regexp" (and id (regexp-quote id))))) ;;;###autoload -(defun project-find-file (&optional filename) +(defun project-find-file () "Visit a file (with completion) in the current project's roots. The completion default is the filename at point, if one is recognized." (interactive) (let* ((pr (project-current t)) (dirs (project-roots pr))) - (project-find-file-in (or filename (thing-at-point 'filename)) dirs pr))) + (project-find-file-in (thing-at-point 'filename) dirs pr))) ;;;###autoload (defun project-or-external-find-file ()