From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19701: 24.3; directory-files platform-dependent behaviour when directory doesn't exist Date: Tue, 27 Jan 2015 21:07:00 +0200 Message-ID: <8361bsoxez.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1422385696 29453 80.91.229.3 (27 Jan 2015 19:08:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 19:08:16 +0000 (UTC) Cc: 19701-done@debbugs.gnu.org To: VIDA =?UTF-8?Q?G=C3=A1bor?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 20:08:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGBUk-0001db-EP for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 20:08:14 +0100 Original-Received: from localhost ([::1]:49292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGBUj-0001X3-O2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 14:08:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGBUd-0001S9-El for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 14:08:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGBUZ-0007UP-CC for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 14:08:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGBUZ-0007UG-AH for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 14:08:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YGBUZ-0007iR-3B for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 14:08:03 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jan 2015 19:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19701 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19701@debbugs.gnu.org, eliz@gnu.org, vidagabor@gmail.com Original-Received: via spool by 19701-done@debbugs.gnu.org id=D19701.142238564029595 (code D ref 19701); Tue, 27 Jan 2015 19:08:02 +0000 Original-Received: (at 19701-done) by debbugs.gnu.org; 27 Jan 2015 19:07:20 +0000 Original-Received: from localhost ([127.0.0.1]:58263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGBTs-0007hH-Bh for submit@debbugs.gnu.org; Tue, 27 Jan 2015 14:07:20 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:49733) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGBTp-0007gx-BD for 19701-done@debbugs.gnu.org; Tue, 27 Jan 2015 14:07:19 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NIU00400NH1DJ00@a-mtaout23.012.net.il> for 19701-done@debbugs.gnu.org; Tue, 27 Jan 2015 21:07:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIU0046GNRXE300@a-mtaout23.012.net.il>; Tue, 27 Jan 2015 21:07:10 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98810 Archived-At: > From: VIDA Gábor > 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.