From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
Subject: Re: directory-files called with empty string
Date: Wed, 09 Dec 2009 09:27:03 -0500 [thread overview]
Message-ID: <jwvskbkdy1m.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pr6oiqg3.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Wed, 09 Dec 2009 07:58:36 +0100")
>>>> is it the normal behavior of directory-files to use default-directory
>>>> when it is called with empty string or is it a bug?
>>> That is the normal behviour of every file related function. It is
>>> basically what expand-file-name defines.
>> Indeed, although I don't think it's documented, and code had probably
>> better not rely on it.
> Ok i see, thank you Stefan and Andreas, maybe that should be documented, for
> all file related functions.
I prefer to keep features which are accidental undocumented, unless we
really consider them as good features (even if we bumped into them by
accident), in which case they can be documented and their use can
be blessed.
Stefan
next prev parent reply other threads:[~2009-12-09 14:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 21:20 directory-files called with empty string Thierry Volpiatto
2009-12-08 22:47 ` Andreas Schwab
2009-12-09 1:34 ` Stefan Monnier
2009-12-09 6:58 ` Thierry Volpiatto
2009-12-09 14:27 ` Stefan Monnier [this message]
2009-12-09 17:35 ` Thierry Volpiatto
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=jwvskbkdy1m.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=schwab@linux-m68k.org \
--cc=thierry.volpiatto@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 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).