[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute o

From: Eli Zaretskii
Subject: Re: [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute on remote file names.
Date: Wed, 05 Feb 2014 05:56:03 +0200

> From: Stefan Monnier <address@hidden>
> Cc: address@hidden
> Date: Tue, 04 Feb 2014 21:38:12 -0500
> So I guess the best we can do is:
>   (if (file-name-absolute-p file) <use file>
>     (let ((dir (file-name-directory file)))
>       (if (null dir) <use file>
>         (if (faccess dir) <use (expand-file-name file)>
>           <use file>))))

Yes, except that the primitives you use here only work on file names,
and might go bananas when presented with something else, e.g. a URL.
So using the above does not solve the basic problem, which is: do we
have a file name on our hands or something else?  The faccess test is
the only thing that provides us with some assurance.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]