From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#41489: `package-dir-info' fails on a directory with a non-saved file Date: Tue, 26 May 2020 00:55:05 +0200 Message-ID: References: <83wo52y0h8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000581b4605a680df93" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="37897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41489@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 26 00:56:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdM0w-0009pd-V8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 May 2020 00:56:11 +0200 Original-Received: from localhost ([::1]:33832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdM0w-0005te-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 18:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdM0n-0005tW-UO for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 18:56:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdM0n-0006zK-La for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 18:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdM0n-0003l8-LU for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 18:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2020 22:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41489 X-GNU-PR-Package: emacs Original-Received: via spool by 41489-submit@debbugs.gnu.org id=B41489.159044732514401 (code B ref 41489); Mon, 25 May 2020 22:56:01 +0000 Original-Received: (at 41489) by debbugs.gnu.org; 25 May 2020 22:55:25 +0000 Original-Received: from localhost ([127.0.0.1]:42780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdM0C-0003kD-RL for submit@debbugs.gnu.org; Mon, 25 May 2020 18:55:25 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:41746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdM0A-0003jx-Of for 41489@debbugs.gnu.org; Mon, 25 May 2020 18:55:23 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id j10so2942972wrw.8 for <41489@debbugs.gnu.org>; Mon, 25 May 2020 15:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5XGVG7CZMJp4DTTDbAj44blO8kZ+G0oM7fioz3ziFBQ=; b=Zz95/SeEPbK2yWExkvu5DJbmgH5llfqY9cImtIqZfRzzW26ipUFI3HLEu3UkJw1vF3 XRefKS2/k5B05/JadVAaCnin5S/zQxcJyUyG1H/PUqBocxFPlWWn/vS+lsJwLVdqt2h9 WylJ3ky8iiFlMDYqH2egvfE2wdngqhcpTCba8Sfxmg7vhQfytJmCsdKxX+vcDsBvqTeH BR8xuqdasGpaz5ygwh4MmgtRrhBPCV7B+hKChe+t0uemhVwAq7kbj+RWahIvb5frVl6F nV15zcjuWxzauKOj54oW5a02Iw6VRln+5tyexfODrwmuRdoX6tuPHR3SF8BmPFOntGgv 2WnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5XGVG7CZMJp4DTTDbAj44blO8kZ+G0oM7fioz3ziFBQ=; b=nxFdeos7baNZ0zPh5DEfb8dwU04K8Z8pKD3T6Zee0MeXHkCWhvqlKo8U+AaMCBkN+R KOKQIgxzMWc0Wm8eBPDwAlNnI8WCxyN5Abwt6kaLD6z2c+VyQ+0her3WeCU/Y/16OWi3 3vsrN28l0Z46Eba77erfaYz9GjGbGej6RkjkkwhwmTPkP0mAwbuV3Vu37PD4uohIpoWf OfQmwrWVKrksfydWgHYltWxTGTm1HsoVWGYsox5TWG8LAWZpKn3nbopkmJfqjV06roYb KkXxuHlZpALYqaMUoeddfV8pBYDEvDNfkDfcKTJfGYcr3+Qobk285rSbPGwavKXvYRan 1IuA== X-Gm-Message-State: AOAM5310Nj9e0eOV63rAC1Nkp+pU5frf5wFEclT6yjs5D76XXeLi+NDB 8YezAWc60zMiip5U32PG0oo8KqjaDMSLerjECg== X-Google-Smtp-Source: ABdhPJxGB7GJWae+ykoUvlhn+RLgVmeTgJL7mUeT2D3NsfpPovNvKpt8q8O2BWVWZNQseCEaWsUPEjvEoKZS4D3p5nk= X-Received: by 2002:a5d:440c:: with SMTP id z12mr15494472wrq.241.1590447316662; Mon, 25 May 2020 15:55:16 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181006 Archived-At: --000000000000581b4605a680df93 Content-Type: multipart/alternative; boundary="000000000000581b4405a680df91" --000000000000581b4405a680df91 Content-Type: text/plain; charset="UTF-8" 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 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 wrote: > >> > From: Paul Pogonyshev >> > 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. >> >> --000000000000581b4405a680df91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 r= andom order of elements in `(directory-files default-directory t "\\.e= l\\'" t)' result.

On Sat, 23 May 2020 at 20:37, Paul Pogonyshev= <pogonyshev@gmail.com> w= rote:
Sorry. In any Emacs version. I tested with a fairly recently compi= led `master', but judging by the source code I checked out two minutes = ago, the bug is there currently=C2=A0too. The cause is this:

=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (insert-file-contents (pop f= iles))

This form is not inside `(ignore-errors= ...)' and so any failure is propagated out of `package-dir-info' t= oo.

Paul

On Sat, 23 May 2020 at 20:23, Eli Za= retskii <eliz@gnu.org<= /a>> wrote:
&= gt; From: Paul Pogonyshev <pogonyshev@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?=C2=A0 Please always supply the
information collected by report-emacs-bug, as that saves unnecessary
questions such as this one.

Thanks.

--000000000000581b4405a680df91-- --000000000000581b4605a680df93 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Fix-random-errors-in-package-dir-info-caused-by-unre.patch" Content-Disposition: attachment; filename="0001-Fix-random-errors-in-package-dir-info-caused-by-unre.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kan37cv00 RnJvbSA1ZmQzMzFlNDNlMThlN2IwZmMxMWU5M2ViM2I1ZmNkNDNhMzAxZDM2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIFBvZ29ueXNoZXYgPHBvZ29ueXNoZXZAZ21haWwuY29t PgpEYXRlOiBUdWUsIDI2IE1heSAyMDIwIDAwOjUyOjE0ICswMjAwClN1YmplY3Q6IFtQQVRDSF0g Rml4IHJhbmRvbSBlcnJvcnMgaW4gYHBhY2thZ2UtZGlyLWluZm8nIGNhdXNlZCBieSB1bnJlYWRh YmxlCiBmaWxlcyAoYnVnIzM5NzIyKQoKLS0tCiBsaXNwL2VtYWNzLWxpc3AvcGFja2FnZS5lbCB8 IDQgKysrLQogMSBmaWxlIGNoYW5nZWQsIDMgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQoK ZGlmZiAtLWdpdCBhL2xpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVsIGIvbGlzcC9lbWFjcy1saXNw L3BhY2thZ2UuZWwKaW5kZXggOWE2ZDFkNzMxOS4uOTliYTVkNzEwNyAxMDA2NDQKLS0t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