From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 00b8c7e: Make ls-lisp.el behave like Posix hosts when directory doesn't exist Date: Fri, 15 Feb 2019 17:41:40 +0200 Message-ID: <83o97dm53f.fsf@gnu.org> References: <20190215134656.1071.93029@vcs0.savannah.gnu.org> <20190215134658.0E9A3204F1@vcs0.savannah.gnu.org> <87lg2hcfc8.fsf@gmx.de> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="125822"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 16:42:33 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gufdJ-000Wbj-HM for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 16:42:33 +0100 Original-Received: from localhost ([127.0.0.1]:41783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gufdI-0006gJ-CE for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2019 10:42:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gufcg-0006gD-D7 for emacs-devel@gnu.org; Fri, 15 Feb 2019 10:41:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gufcY-0004fk-6q; Fri, 15 Feb 2019 10:41:48 -0500 Original-Received: from [176.228.60.248] (port=2479 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gufcV-0008Ag-Ez; Fri, 15 Feb 2019 10:41:44 -0500 In-reply-to: <87lg2hcfc8.fsf@gmx.de> (message from Michael Albinus on Fri, 15 Feb 2019 15:10:31 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233379 Archived-At: > From: Michael Albinus > Cc: Eli Zaretskii > Date: Fri, 15 Feb 2019 15:10:31 +0100 > > > + ;; Emulate what we do on Posix hosts when we call access-file > > + ;; in insert-directory. > > + (signal 'file-error > > + (list "Reading directory" > > + "Directory doesn't exist or is inaccessible" > > + file)))))) > > On GNU/Linux, it is `file-missing' (introduced in Emacs 26). I know. But ls-lisp doesn't know whether it failed because the directory doesn't exist, or does exist but isn't accessible, and trying to discern between these two situations doesn't seem worth it.