unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
Subject: Re: directory-files called with empty string
Date: Wed, 09 Dec 2009 18:35:11 +0100	[thread overview]
Message-ID: <87iqcghwz4.fsf@tux.homenetwork> (raw)
In-Reply-To: <jwvskbkdy1m.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 09 Dec 2009 09:27:03 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>>> 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.
Yes i understand, but it is not a good feature IMHO.
These kind of functions should return an error with empty string, as
empty string is not a valid path.
But maybe this "feature" is used somewhere?

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




      reply	other threads:[~2009-12-09 17:35 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
2009-12-09 17:35         ` Thierry Volpiatto [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

  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=87iqcghwz4.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=schwab@linux-m68k.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).