From: Tino Calancha <tino.calancha@gmail.com>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: 26272@debbugs.gnu.org, Tino Calancha <tino.calancha@gmail.com>
Subject: bug#26272: default-directory: Remark that it must be a directory name
Date: Tue, 28 Mar 2017 10:54:36 +0900 (JST) [thread overview]
Message-ID: <alpine.DEB.2.20.1703281045120.29313@calancha-pc> (raw)
In-Reply-To: <CAM-tV--x=-Xv5+Ex_TxJOT3p+-SK7zj-+hveS+GtD+vdXN19ew@mail.gmail.com>
On Mon, 27 Mar 2017, Noam Postavsky wrote:
> On Mon, Mar 27, 2017 at 2:26 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>>> From: Noam Postavsky <npostavs@users.sourceforge.net>
>>> Date: Mon, 27 Mar 2017 11:52:21 -0400
>>> Cc: Tino Calancha <tino.calancha@gmail.com>, 26272@debbugs.gnu.org
>>>
>>>>>> Didn't we discuss that at some point in the past?
>>>>> I don't remember it. Maybe with another person.
>>>>
>>>> No, I meant on emacs-devel, not with you personally.
>>>
>>> This one maybe? (it's about load-path though)
>>> https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02060.html
>>
>> Yes, but AFAIR it also touched default-directory.
>
> Ah, it seems that code was fixed to be more tolerant: the trailing
> slash in default-directory used to matter for executing processes, but
> not any more: https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02367.html
Following is not the same but slightly related:
emacs -Q /tmp
I) OK
M-x cd RET /tmp/ RET
M-: (default-directory) RET
=> "/tmp/"
II) OK
M-x cd RET /tmp RET
M-: (default-directory) RET
=> "/tmp/"
III) Wrong
M-x cd RET /tmp// RET
M-: (default-directory) RET
=> "/"
;; Just an issue on interactive calls, as you can see:
M-: (mapcar
(lambda (x)
(progn (cd x) default-directory))
'("/tmp/" "/tmp" "/tmp//")) RET
=> ("/tmp/" "/tmp/" "/tmp/")
next prev parent reply other threads:[~2017-03-28 1:54 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 [this message]
2017-03-28 2:32 ` Eli Zaretskii
2017-03-28 8:33 ` Tino Calancha
2017-03-28 10:13 ` Andreas Schwab
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1703281045120.29313@calancha-pc \
--to=tino.calancha@gmail.com \
--cc=26272@debbugs.gnu.org \
--cc=npostavs@users.sourceforge.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).