From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18836: 25.0.50; `insert-directory' barfs on nonexistent file, but not for `ls-lisp-insert-directory' Date: Sat, 25 Oct 2014 12:55:05 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414267058 5150 80.91.229.3 (25 Oct 2014 19:57:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2014 19:57:38 +0000 (UTC) To: 18836@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 25 21:57:30 2014 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 1Xi7Sr-0007Io-5t for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Oct 2014 21:57:29 +0200 Original-Received: from localhost ([::1]:54505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi7Sq-0004xu-QR for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Oct 2014 15:57:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi7Sd-0004ww-0a for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:57:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi7SQ-0002qx-DJ for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:57:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi7SQ-0002qJ-B0 for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xi7SQ-0000pv-0E for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Oct 2014 19:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14142669753153 (code B ref -1); Sat, 25 Oct 2014 19:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Oct 2014 19:56:15 +0000 Original-Received: from localhost ([127.0.0.1]:35491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi7Re-0000om-Iz for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:56:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58941) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi7Rc-0000oZ-2X for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:56:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi7RM-0002Zy-CC for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:56:06 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi7RM-0002Zu-9Z for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:55:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi7RD-0004lu-I1 for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:55:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi7R4-0002Y9-Qx for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:55:47 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi7R4-0002Y3-KC for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:55:38 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s9PJtbra013838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 25 Oct 2014 19:55:37 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s9PJtQDS009139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 25 Oct 2014 19:55:27 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s9PJt6dR008785 for ; Sat, 25 Oct 2014 19:55:06 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:95082 It seems that at least on some platforms (e.g. GNU/Linux), if you give an explicit list of files and dirs to `dired', to list (which you do by passing a cons as argument DIRNAME), the command fails with an error: (file-error "Reading directory" "no such file or directory" "/usr/foo/no-such-file.txt") No such error is raised on platforms that use `ls-lisp'. This non-`ls-lisp' behavior is not as friendly as it could be, and not as friendly as the `ls-lisp-insert-directory' behavior, which simply displays a message and then calls `ding': (message "%s: doesn't exist or is inaccessible" file) Would it be possible to make vanilla `insert-directory' more tolerant, i.e., make it act like `ls-lisp-insert-directory', in this respect? Failing to access a single file should not prevent listing the others, if this can be handled properly. But maybe it's not feasible; dunno. [FWIW, I would even prefer to see the file or dir listed in the Dired buffer, even if it does not (yet) exist. Let user attempts to actually access it raise an error, and let no error be raised if the file is created after creating the Dired buffer but before the user tries to access the file.] In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-20 on LEG570 Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1'