|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names |
Date: | Tue, 27 Oct 2015 09:52:35 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>> Unless there's a real performance advantage (which I fail to see), I'd >> rather go the other way and be more permissive and fix default-directory >> so it also works correctly when it doesn't have a trailing slash. > Yes. I don't remember how exactly much, but I've spent an inordinate amount > of time finding out that default-directory needs a trailing slash, when > working on xref. I encourage you to fix it. AFAIK the process.c code is the only one that relies on the trailing slash. I think the current handling of default-directory in process.c (where anything after the last slash is ignored) is just a bug since it's inconsistent with other uses (e.g. (let ((default-directory "/a/b")) (expand-file-name "c")) returns "/a/b/c" as you'd expect and not "/a/c" as process.c understands it). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |