all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: 21931@debbugs.gnu.org
Cc: youngfrog@members.fsf.org
Subject: bug#21931: 25.0.50; behaviour of read-directory-name with double slashes
Date: Mon, 23 Nov 2015 21:58:28 +0100	[thread overview]
Message-ID: <87y4doph57.fsf@gmx.de> (raw)
In-Reply-To: <86ziy4vm3g.fsf@members.fsf.org> (Nicolas Richard's message of "Mon, 23 Nov 2015 15:14:59 +0100")

Nicolas Richard <youngfrog@members.fsf.org> writes:

>> 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.

(expand-file-name bar foo) is your choice. If you dislike it, take
(concat (directory-file-name foo) "/" bar)

> Thanks for looking into it, I close it.
>
> Nico.

Best regards, Michael.





      reply	other threads:[~2015-11-23 20:58 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
2015-11-23 20:58     ` Michael Albinus [this message]

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=87y4doph57.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=21931@debbugs.gnu.org \
    --cc=youngfrog@members.fsf.org \
    /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.