GNU bug report logs -
#41489
`package-dir-info' fails on a directory with a non-saved file
Previous Next
Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>
Date: Sat, 23 May 2020 17:51:02 UTC
Severity: normal
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 41489 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I also noticed that the error depends on the Moon phase, i.e. it is not
_always_ reproducible. The reason is that it depends on the random order of
elements in `(directory-files default-directory t "\\.el\\'" t)' result.
On Sat, 23 May 2020 at 20:37, Paul Pogonyshev <pogonyshev <at> gmail.com> wrote:
> Sorry. In any Emacs version. I tested with a fairly recently compiled
> `master', but judging by the source code I checked out two minutes ago, the
> bug is there currently too. The cause is this:
>
> (insert-file-contents (pop files))
>
> This form is not inside `(ignore-errors ...)' and so any failure is
> propagated out of `package-dir-info' too.
>
> Paul
>
> On Sat, 23 May 2020 at 20:23, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> > From: Paul Pogonyshev <pogonyshev <at> gmail.com>
>> > Date: Sat, 23 May 2020 19:50:02 +0200
>> >
>> > - edit any Elisp file, but don't save it;
>> > - open its directory in Dired;
>> > - evaluate `(package-dir-info)'.
>> >
>> > Fails with: (file-missing "Opening input file" "No such file or
>> directory" ".../.#blabla.el")
>>
>> In what version of Emacs is that? Please always supply the
>> information collected by report-emacs-bug, as that saves unnecessary
>> questions such as this one.
>>
>> Thanks.
>>
>>
[Message part 2 (text/html, inline)]
[0001-Fix-random-errors-in-package-dir-info-caused-by-unre.patch (text/x-patch, attachment)]
This bug report was last modified 3 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.