GNU bug report logs - #55877
29.0.50; list-directory doesn't allow globbing interactively

Previous Next

Package: emacs;

Reported by: chad <yandros <at> gmail.com>

Date: Thu, 9 Jun 2022 18:57:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: chad <yandros <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 55877 <at> debbugs.gnu.org
Subject: bug#55877: 29.0.50; list-directory doesn't allow globbing interactively
Date: Fri, 10 Jun 2022 21:31:14 -0400
[Message part 1 (text/plain, inline)]
I thought I saw an error here when list-directory with a directory (not
file) glob (ex: ~/Project/emacs/*/) is followed by another list-directory,
but I think the actual issue is that the default directory in the first
case is set to something that doesn't exist, which messes up call-process
in the second invocation of list-directory. The error I saw was:

Debugger entered--Lisp error: (file-missing "Setting current directory" "No
> such file or directory" "/home/chadpbrown/Project/emacs/*/")
>   call-process("ls" nil t nil "-CF" "--"
> "/home/chadpbrown/Project/emacs/src/")
>   insert-directory("/home/chadpbrown/Project/emacs/src/" "-CF" nil t)
>   list-directory("~/Project/emacs/src/" nil)
>   funcall-interactively(list-directory "~/Project/emacs/src/" nil)
>   call-interactively(list-directory nil nil)
>   command-execute(list-directory)


I'm not sure it's worth the overhead to fix this. I'm testing a small
change that replaced default-directory in list-directory
(lisp/files.el:7387) with

            (if (file-exists-p default-directory)
                default-directory
              user-emacs-directory)

..but it feels like a hack?

~Chad
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.