bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#26272: default-directory: Remark that it must be a directory name


From: Andreas Schwab
Subject: bug#26272: default-directory: Remark that it must be a directory name
Date: Tue, 28 Mar 2017 12:13:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

On Mär 28 2017, Tino Calancha <address@hidden> wrote:

> On Tue, 28 Mar 2017, Eli Zaretskii wrote:
>
>>> From: Tino Calancha <address@hidden>
>>> Date: Tue, 28 Mar 2017 10:54:36 +0900 (JST)
>>> cc: Eli Zaretskii <address@hidden>, Tino Calancha <address@hidden>,
>>>     address@hidden
>>>
>>> III) Wrong
>>> M-x cd RET /tmp// RET
>>> M-: (default-directory) RET
>>> => "/"
>>
>> Why is this wrong?  It's a standard Emacs feature.
> I don't think is wrong, indeed is consistent with the behaviour
> in Bug#21454.
> I was just a bit sorprise that the result is different in
> interactive calls compared with:
> M-: (cd "/tmp//") RET
> M-: (default-directory) RET
> => "/tmp/"

substitute-in-file-name is a feature of reading the argument
interactively, before the argument is passed to the command.

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

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