[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cape ab2f4ec9ec 2/2: cape-file: Fix
From: |
ELPA Syncer |
Subject: |
[elpa] externals/cape ab2f4ec9ec 2/2: cape-file: Fix |
Date: |
Thu, 4 Aug 2022 18:57:20 -0400 (EDT) |
branch: externals/cape
commit ab2f4ec9ec778d256c7e4b3490ecd50269c422f0
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
cape-file: Fix
---
cape.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cape.el b/cape.el
index be5df83aba..e10615160a 100644
--- a/cape.el
+++ b/cape.el
@@ -259,7 +259,8 @@ If INTERACTIVE is nil the function acts like a Capf."
(when org (setf (car bounds) (+ 5 (car bounds))))
(when (or org
(not cape-file-directory-must-exist)
- (string-match-p "/" file))
+ (and (string-match-p "/" file)
+ (file-exists-p (file-name-directory file))))
`(,(car bounds) ,(cdr bounds)
,(cape--nonessential-table #'read-file-name-internal)
,@(when (or org (string-match-p "./" file))