From 50fdb708074e91bc3d465fbc86c68cbda353b319 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Wed, 19 Feb 2025 20:43:16 +0100 Subject: cape-file: Use substitute-in-file-name when checking for existing directory --- cape.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.0