emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 4d3a595: `load-path' should contain only direct


From: Dmitry Gutov
Subject: Re: [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names
Date: Mon, 26 Oct 2015 22:17:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0

On 10/26/2015 10:02 PM, Stephen Leake wrote:

You can't "fix" default-directory; you could change its definition, but
then you would have to fix (or at least verify)_every_ use of it, which
is impossible, since it could be used in everyone's private code.

All uses that take advantage of "requires trailing slash" are arguably bugs. This kind of uses:

(let ((default-directory "~/.emacs.d")) (shell-command-to-string "pwd"))

=> "/home/gutov\n"



reply via email to

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