summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-02-19 20:43:16 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-02-19 20:43:16 +0100
commit50fdb708074e91bc3d465fbc86c68cbda353b319 (patch)
tree869c5df144e412f9e020d76a7af8094b75f4ee6a
parent118db73710466ab03708e7511f4bff7827057000 (diff)
cape-file: Use substitute-in-file-name when checking for existing directory
-rw-r--r--cape.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/cape.el b/cape.el
index 383b2ed..1554be1 100644
--- a/cape.el
+++ b/cape.el
@@ -414,7 +414,8 @@ If INTERACTIVE is nil the function acts like a Capf."
(when (or prefix
(not cape-file-directory-must-exist)
(and (string-search "/" file)
- (file-exists-p (file-name-directory file))))
+ (file-exists-p (file-name-directory
+ (substitute-in-file-name file)))))
(unless (boundp 'comint-unquote-function)
(require 'comint))
`( ,beg ,end