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

From: Juanma Barranquero <[email-masked]>
Date: Wed, 26 Feb 2014 18:40:39 +0100

On Wed, Feb 26, 2014 at 6:28 PM, Glenn Morris <[email-masked]> wrote:

> mkdir /tmp/foo
> touch /tmp/foo/1
> emacs -Q
> M-x dired /tmp/foo/*    ; why not just /tmp/foo ... ?
> M-x desktop-save RET /tmp RET
> M-x kill-emacs
>
> rm /tmp/foo/1   ; not rm -rf /tmp/foo
>
> emacs -Q
> M-: (desktop-read "/tmp")
>
>  -> Debugger entered--Lisp error: (file-error "Reading directory"
>     "no such file or directory" "/tmp/foo/*")

Doesn't happen on Windows. I get a buffer named "*", with contents:

  c:/Windows/Temp/foo:
  wildcard *
  total used in directory 12 available 57142624
  drwxrwxrwx  1 Administradores None                0 feb 26 18:36 .
  drwxrwxrwx  1 Administradores Administradores 12288 feb 26 18:35 ..