bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#18836: 25.0.50; `insert-directory' barfs on nonexistent file, but no


From: Drew Adams
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)

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=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'





reply via email to

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