branch: externals/cape commit ab2f4ec9ec778d256c7e4b3490ecd50269c422f0 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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))