all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <youngfrog@members.fsf.org>
To: John Wiegley <jwiegley@gmail.com>
Cc: 21931-done@debbugs.gnu.org
Subject: bug#21931: 25.0.50; behaviour of read-directory-name with double slashes
Date: Mon, 23 Nov 2015 15:14:59 +0100	[thread overview]
Message-ID: <86ziy4vm3g.fsf@members.fsf.org> (raw)
In-Reply-To: <m2si40v5q8.fsf@newartisans.com>

John Wiegley writes:
>>>>>> Nicolas Richard <youngfrog@members.fsf.org> writes:
>
>> ("/tmp/src/" "/" "src/" "/" "/src/" "/")
>> Is this intended ?
>
> What list were you expecting to see? "//" has always meant "start at root" to
> mean, ignoring whatever comes prior. This is how C-x C-f works, and it means
> you don't have to delete any existing default text in order to begin at root.

Indeed, but when constructing a path via (concat foo "/" bar), it can
happen that the result contains //. If this is then used as arg to
read-directory-name, this leads to an unexpected default.

OTOH (info "(elisp) Directory Names") explicitly says that using concat
for constructing paths in this way is wrong, so I guess that this bug
report is void.

Thanks for looking into it, I close it.

Nico.





  reply	other threads:[~2015-11-23 14:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-16  6:27 bug#21931: 25.0.50; behaviour of read-directory-name with double slashes Nicolas Richard
2015-11-20 19:19 ` John Wiegley
2015-11-23 14:14   ` Nicolas Richard [this message]
2015-11-23 20:58     ` Michael Albinus

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=86ziy4vm3g.fsf@members.fsf.org \
    --to=youngfrog@members.fsf.org \
    --cc=21931-done@debbugs.gnu.org \
    --cc=jwiegley@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.