emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 00b8c7e: Make ls-lisp.el behave like Posix hosts when directo


From: Michael Albinus
Subject: Re: master 00b8c7e: Make ls-lisp.el behave like Posix hosts when directory doesn't exist
Date: Fri, 15 Feb 2019 16:51:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

Hi Eli,

>> > +        ;; 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.

Hmm. This reminds me, that `tramp-test17-insert-directory' does not
check any error condition. If I would add this, this subtle detail would
count ...

(Not that anybody in real life would care ...)

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]