Subject: Re: bug#16884: 24.3.50; desktop-read should not die on non-existing directories

From: Juanma Barranquero <[email-masked]>
Date: Wed, 26 Feb 2014 19:28:51 +0100

On Wed, Feb 26, 2014 at 7:20 PM, Eli Zaretskii <[email-masked]> wrote:

> Dired on Windows uses ls-lisp.el, not a real ls program.

Yep, you're right. But dired is documented to accept wildcards:

  Dired displays a list of files in dirname (which may also have
  shell wildcards appended to select certain files).

so, in any platform, I wouldn't expect it to throw an error if the
wildcard matches no file.

However, if I set

 (setq insert-directory-program "c:/bin/gnu/bin/ls.exe"
       ls-lisp-use-insert-directory-program t)

then (dired "C:/windows/temp/foo/*") does indeed throw an error.

Is that the expected behavior? It seems like a bug to me (just not in
desktop.el, but dired.el).