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


Message #11 received at 55877 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: chad <yandros <at> gmail.com>
Cc: 55877 <at> debbugs.gnu.org
Subject: Re: bug#55877: 29.0.50; list-directory doesn't allow globbing
 interactively
Date: Thu, 09 Jun 2022 22:07:31 +0200
chad <yandros <at> gmail.com> writes:

> From emacs -Q, call list-directory ('C-x C-d'), and specify a glob
> pattern, such as "/usr/local/src/emacs/lisp/*.el". Emacs will accept
> this as the argument when called from lisp (following the behavior
> described in the docstring), but will not accept it interactively. This
> is due to passing t as the fourth (MUSTMATCH) argument to read-file-name
> inside list-directory. I believe that this should instead be 'confirm.

The code (introduced in ec3b6fa8e18a) tries to require that the user has
either typed an existing directory, or that it's a wildcard spec.  But
it does this in the wrong way -- and it does this misguided thing wrong,
anyway.  :-/

I'll try to fix it some other way.  Just changing the t to confirm
doesn't really help, because then you can type in non-existing
directories.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.