|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute on remote file names. |
Date: | Tue, 04 Feb 2014 21:38:12 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> This API uses the "file association" infrastructure to find the > application registered to open a file. Perhaps that infrastructure > cannot cope with relative file names that have leading directories? Yuck! 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>)))) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |