From: MON KEY <monkey@sandpframing.com>
To: 6273@debbugs.gnu.org
Subject: bug#6273: dired-current-directory with `t' arg returns empty string in top-level mount-point "/"
Date: Tue, 25 May 2010 17:18:40 -0400 [thread overview]
Message-ID: <AANLkTilsGk_KuhsUkclf9npZvoqg_6VKsaY13HKmJvxS@mail.gmail.com> (raw)
(dired-current-directory t) returns the empty string
when in a `top-level' mount point, e.g. "/"
(progn
(dired "/" )
(dired-current-directory t))
=> ""
,---- (documentation 'dired-current-directory)
| {...}
| This returns a string with trailing slash, like `default-directory'.
| Optional argument means return a file name relative to `default-directory'.
`----
In the case at hand it does not return a string with trailing slash...
and appears in contrast to the return value of following forms:
(progn
(dired "/")
(file-relative-name default-directory))
=> "./"
(progn
(dired "/")
(file-relative-name (dired-default-directory)))
=> "./"
which are likewise at odds with each of the following:
(progn
(dired "/")
(dired-make-relative (dired-default-directory)))
=> ""
(progn
(dired "/")
(dired-make-relative (dired-make-absolute default-directory)))
=> "/"
So which is the correct return value? Relatively speaking...
GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-05-10
--
/s_P\
next reply other threads:[~2010-05-25 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 21:18 MON KEY [this message]
2016-01-06 12:48 ` bug#6273: dired-current-directory with `t' arg returns empty string in top-level mount-point "/" Alexis
2016-01-08 10:43 ` Eli Zaretskii
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=AANLkTilsGk_KuhsUkclf9npZvoqg_6VKsaY13HKmJvxS@mail.gmail.com \
--to=monkey@sandpframing.com \
--cc=6273@debbugs.gnu.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 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).