From: Dmitry Gutov <dgutov@yandex.ru>
To: Robert Nikander <robert.nikander@icloud.com>, 58453@debbugs.gnu.org
Subject: bug#58453: 28.2; project-query-replace-regexp fails because of directories in list
Date: Wed, 12 Oct 2022 00:06:09 +0300 [thread overview]
Message-ID: <31c821cd-087e-11e2-55a3-15cd8f529e3d@yandex.ru> (raw)
In-Reply-To: <C536C173-CA61-491A-8922-203DC715079A@icloud.com>
On 11.10.2022 16:58, Robert Nikander via Bug reports for GNU Emacs, the
Swiss army knife of text editors wrote:
> Hi
>
> I’ve been getting errors from `project-query-replace-regexp` (it just beeps and gives an error about something being a directory). I’ve tracked it down to `project--vc-list-files`, which gets a list in a variable `files` by calling `git ls-files`. But that returns a few directories on my system, maybe because I’m using git submodules. Later the error occurs with stack trace:
>
> Debugger entered--Lisp error: (file-error "Read error" "Is a directory” ….)
> insert-file-contents(“….”)
> fileloop-next-file(t)
> fileloop-continue()
> project-query-replace-regexp("StyleDict" "StyleMap")
>
> I’ve fixed the bug for my purposes by adding this line to that `project--vc-list-files` function in `project.el`...
>
> (setq files (seq-remove 'file-directory-p files))
>
> But maybe there’s a better way.
Hi!
This has been fixed on master a few months ago:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55382
I've just bumped project.el's version to 0.8.2, you should be able to
install it from GNU ELPA tomorrow (or perhaps a bit earlier).
next prev parent reply other threads:[~2022-10-11 21:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-11 13:58 bug#58453: 28.2; project-query-replace-regexp fails because of directories in list Robert Nikander via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-11 21:06 ` Dmitry Gutov [this message]
2022-10-12 9:38 ` Stefan Kangas
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=31c821cd-087e-11e2-55a3-15cd8f529e3d@yandex.ru \
--to=dgutov@yandex.ru \
--cc=58453@debbugs.gnu.org \
--cc=robert.nikander@icloud.com \
/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.