From: chad <yandros@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 55877@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 [thread overview]
Message-ID: <CAO2hHWagMpWzPvshGn3bua5zPdvgGOasmmx8HXL59Wsixc+QFA@mail.gmail.com> (raw)
In-Reply-To: <CAO2hHWbRN1VKh5qR_prZHWB3ynRZ_T2yqwuW7-Up4MeDQ5v0xA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1787 bytes --]
next prev parent reply other threads:[~2022-06-11 1:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-09 18:56 bug#55877: 29.0.50; list-directory doesn't allow globbing interactively chad
2022-06-09 19:20 ` Drew Adams
2022-06-09 20:07 ` Lars Ingebrigtsen
2022-06-10 8:22 ` Lars Ingebrigtsen
2022-06-10 21:04 ` chad
2022-06-11 1:31 ` chad [this message]
2022-06-11 11:02 ` Lars Ingebrigtsen
2022-06-11 16:38 ` chad
2022-06-11 16:55 ` Eli Zaretskii
2022-06-11 17:03 ` chad
2022-06-11 17:05 ` Eli Zaretskii
2022-06-12 9:59 ` Lars Ingebrigtsen
2022-06-12 10:04 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAO2hHWagMpWzPvshGn3bua5zPdvgGOasmmx8HXL59Wsixc+QFA@mail.gmail.com \
--to=yandros@gmail.com \
--cc=55877@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.