all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Tino Calancha <tino.calancha@gmail.com>
Cc: 26272@debbugs.gnu.org, npostavs@users.sourceforge.net
Subject: bug#26272: default-directory: Remark that it must be a directory name
Date: Tue, 28 Mar 2017 12:13:19 +0200	[thread overview]
Message-ID: <mvm7f39pv40.fsf@suse.de> (raw)
In-Reply-To: <alpine.DEB.2.20.1703281727490.1894@calancha-pc> (Tino Calancha's message of "Tue, 28 Mar 2017 17:33:05 +0900 (JST)")

On Mär 28 2017, Tino Calancha <tino.calancha@gmail.com> wrote:

> On Tue, 28 Mar 2017, Eli Zaretskii wrote:
>
>>> From: Tino Calancha <tino.calancha@gmail.com>
>>> Date: Tue, 28 Mar 2017 10:54:36 +0900 (JST)
>>> cc: Eli Zaretskii <eliz@gnu.org>, Tino Calancha <tino.calancha@gmail.com>,
>>>     26272@debbugs.gnu.org
>>>
>>> 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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





  reply	other threads:[~2017-03-28 10:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-27 10:13 bug#26272: default-directory: Remark that it must be a directory name Tino Calancha
2017-03-27 14:43 ` Eli Zaretskii
2017-03-27 15:15   ` Tino Calancha
2017-03-27 15:32     ` Eli Zaretskii
2017-03-27 15:52       ` Noam Postavsky
2017-03-27 18:26         ` Eli Zaretskii
2017-03-27 19:23           ` Noam Postavsky
2017-03-28  1:54             ` Tino Calancha
2017-03-28  2:32               ` Eli Zaretskii
2017-03-28  8:33                 ` Tino Calancha
2017-03-28 10:13                   ` Andreas Schwab [this message]
2017-03-28 11:26                     ` Tino Calancha
2017-03-31  8:25   ` Tino Calancha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvm7f39pv40.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=26272@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    --cc=tino.calancha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.