mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix ffap-in-project to check file existence
* lisp/ffap.el (ffap-in-project): Check file existence before returning non-nil. (bug#78929)
This commit is contained in:
parent
a30aab8b25
commit
49d0342a00
1 changed files with 3 additions and 1 deletions
|
|
@ -807,7 +807,9 @@ to extract substrings.")
|
|||
(declare-function project-root "project" (project))
|
||||
(defun ffap-in-project (name)
|
||||
(when-let* ((project (project-current)))
|
||||
(file-name-concat (project-root project) name)))
|
||||
(ffap-file-exists-string
|
||||
(file-name-concat (project-root project) name)
|
||||
'nomodify)))
|
||||
|
||||
(defun ffap-home (name) (ffap-locate-file name t '("~")))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue