unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "VIDA Gábor" <vidagabor@gmail.com>
Cc: 19701-done@debbugs.gnu.org
Subject: bug#19701: 24.3; directory-files platform-dependent behaviour when directory doesn't	exist
Date: Tue, 27 Jan 2015 21:07:00 +0200	[thread overview]
Message-ID: <8361bsoxez.fsf@gnu.org> (raw)
In-Reply-To: <yeq7zj942xiw.fsf@gmail.com>

> From: VIDA Gábor <vidagabor@gmail.com>
> Date: Tue, 27 Jan 2015 13:55:35 +0100
> 
> On Linux when I specify a non-existing directory to directory-files, it signals an
> error:
> 
>   (directory-files "abcd")
>   eval: Opening directory: no such file or directory, /home/evidgbo/tmp/abcd
> 
> But on Windows, it returns nil:
> 
>   (directory-files "abcd")
>   => nil

That is correct.

> I think they should work tha same way regardless of the underlying
> system, and it ends up in a Gnus error, what I will report
> separately once I understand that problem better.

The Windows implementation of directory-files always worked like that;
I looked as far back as Emacs 21.4.  (Technically, this happened
because the Windows implementation of 'opendir' doesn't actually open
the directory, so it doesn't know.)

This was never a problem, though.  What exactly does Gnus do that this
subtlety gets in the way?

In any case, I fixed this in commit 9664def on the emacs-24 branch.

Thanks.





  reply	other threads:[~2015-01-27 19:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 12:55 bug#19701: 24.3; directory-files platform-dependent behaviour when directory doesn't exist VIDA Gábor
2015-01-27 19:07 ` Eli Zaretskii [this message]
2015-01-27 20:14   ` Drew Adams
2015-01-28 11:45   ` Vida Gábor
2015-01-28 15:37     ` Eli Zaretskii
2015-01-29 11:56       ` Vida Gábor

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=8361bsoxez.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19701-done@debbugs.gnu.org \
    --cc=vidagabor@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).