From unknown Fri Jun 20 07:17:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41489 <41489@debbugs.gnu.org> To: bug#41489 <41489@debbugs.gnu.org> Subject: Status: `package-dir-info' fails on a directory with a non-saved file Reply-To: bug#41489 <41489@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:17:32 +0000 retitle 41489 `package-dir-info' fails on a directory with a non-saved file reassign 41489 emacs submitter 41489 Paul Pogonyshev severity 41489 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 23 13:50:19 2020 Received: (at submit) by debbugs.gnu.org; 23 May 2020 17:50:19 +0000 Received: from localhost ([127.0.0.1]:35478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcYHq-0006wf-Vj for submit@debbugs.gnu.org; Sat, 23 May 2020 13:50:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:35728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcYHp-0006wW-JD for submit@debbugs.gnu.org; Sat, 23 May 2020 13:50:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcYHp-000726-B9 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 13:50:17 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcYHo-00037L-9g for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 13:50:16 -0400 Received: by mail-wm1-x333.google.com with SMTP id u13so2956618wml.1 for ; Sat, 23 May 2020 10:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6G4HIsJJ/pGFYKL6919PW/XatKvcOIa9TuqbugEhsAw=; b=ae8PH+Su+8wfkewDl9QNjFDAKbRc4NLROzJQVB2JpFdHdvb9vC62eE9IwXP26ZfAQa lfCeJ3akZZCmKCPYt8Q/IRzUzby5jAwfD2aitUyKIoJKDLrSj7jcC+03e4CmsSYvF/mu 8Rj5aGrzLmnKF1h3ARELoW+X2sIsvMD19C2Nn6pvp0WoTUDHJPl8jvVzViwWYC7jBAnj kiWWvF5WkCX8zH311X/hDUid9CCjwi4R6VbUl3qEQ3ald+wDxiJoW11IyQ7a3BsflHkD Z91vnr7da/25N3glxxpjpzem2aD/MTTzpUAFXx0p235rdQsyp7PiBUaEUR0p/uiPsz3y VqcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6G4HIsJJ/pGFYKL6919PW/XatKvcOIa9TuqbugEhsAw=; b=UdFqrgyvcajmRaNkj+YlZ+mX0ehecud1OT3k5UoCb8U1GiN1r/rzt/eBPn31HJ7MKl 9VagVtFRMkolDq/iaVEfVIa8owY1cA8yDtvsWpXwuZqvJn02blSngZ4XfO0e5hoOQbFg E/30LZ3BA5D+2jK5IDF8CS2m6ZlW1lWLtff9kuib8HM4U6xLvqk8wNx1+TIA/wkEcxGO /yfXS52ozUzwtSCR7rrFR2IPVqdggg9gSqLTvy9fT0zH4NmwdQvYnLroxNO+5bqYBBgo e0w+Aain932TyjoPMX2Ptw3Mqz80w/IDdfcmqXnU9ThpD/pvGQNRlglFyEoBU92alKCF 1oPg== X-Gm-Message-State: AOAM532kgc2VP2dEugg/K66V+ADOe4OUz5uQGvh0nkuD9uy1qZpmA5rT 4KfuFM64bNJf/WdeAzWWMm39zxgXMYjydDeQQDi2PFk= X-Google-Smtp-Source: ABdhPJy8NpswDxxqUK5nHv06EVOdr8n5lYaSWqZVk/ehD5LBLIiH1SRRSPT841FfRCn6/hVN3DmjweTPwBPy21p/zFk= X-Received: by 2002:a1c:8a:: with SMTP id 132mr12158798wma.172.1590256213453; Sat, 23 May 2020 10:50:13 -0700 (PDT) MIME-Version: 1.0 From: Paul Pogonyshev Date: Sat, 23 May 2020 19:50:02 +0200 Message-ID: Subject: `package-dir-info' fails on a directory with a non-saved file To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000b46dbe05a65460ad" Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=pogonyshev@gmail.com; helo=mail-wm1-x333.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000b46dbe05a65460ad Content-Type: text/plain; charset="UTF-8" To reproduce: - 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") I.e. it tries to open the lock created for the unsaved file as a normal file and fails. I'm not 100% sure this should be considered a bug, but from my point of view it is so. Even if this is not a bug, the function should probably fail with a more descriptive error. Paul --000000000000b46dbe05a65460ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To reproduce:

- edit any Elisp file, bu= t don't save it;
- open its directory in Dired;
- e= valuate `(package-dir-info)'.

Fails with: (fil= e-missing "Opening input file" "No such file or directory&qu= ot; ".../.#blabla.el")

I.e. it tries to = open the lock created for the unsaved file as a normal file and fails. I= 9;m not 100% sure this should be considered a bug, but from my point of vie= w it is so. Even if this is not a bug, the function should probably fail wi= th a more descriptive error.

Paul
--000000000000b46dbe05a65460ad-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 23 14:23:14 2020 Received: (at 41489) by debbugs.gnu.org; 23 May 2020 18:23:14 +0000 Received: from localhost ([127.0.0.1]:35541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcYni-0007ku-Dx for submit@debbugs.gnu.org; Sat, 23 May 2020 14:23:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcYnh-0007ki-Do for 41489@debbugs.gnu.org; Sat, 23 May 2020 14:23:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47330) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcYnc-0008Ps-6s; Sat, 23 May 2020 14:23:08 -0400 Received: from [176.228.60.248] (port=2025 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jcYnb-0001dQ-Gm; Sat, 23 May 2020 14:23:07 -0400 Date: Sat, 23 May 2020 21:23:15 +0300 Message-Id: <83wo52y0h8.fsf@gnu.org> From: Eli Zaretskii To: Paul Pogonyshev In-Reply-To: (message from Paul Pogonyshev on Sat, 23 May 2020 19:50:02 +0200) Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41489 Cc: 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat May 23 14:37:39 2020 Received: (at 41489) by debbugs.gnu.org; 23 May 2020 18:37:39 +0000 Received: from localhost ([127.0.0.1]:35559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcZ1e-000865-Lk for submit@debbugs.gnu.org; Sat, 23 May 2020 14:37:38 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:36990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcZ1d-00085r-9G for 41489@debbugs.gnu.org; Sat, 23 May 2020 14:37:37 -0400 Received: by mail-wm1-f54.google.com with SMTP id f5so4907234wmh.2 for <41489@debbugs.gnu.org>; Sat, 23 May 2020 11:37:37 -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=paTtN4wNCEyZAbOtzay10UHUeyXZEpCYdBWR/GGAJqA=; b=TZOHrz2JiuIDjkGOugmSo/FwzugUA1zWvktdgnR7BkpM9Odi62qcGw7KoBBsociCWi uYNazzkJvZR0CuIe7JAWifNndXlDNH5qRRAjIAz+iIUCfBkzVtz70W9Wlv4+dpAsu0IQ ol88KvEzf4LgSKArz/vOfICf8DCOjwa8iFUR8/nqwnVGTkv13hmnGStQc0OxWweS4KLu 9GKZugpZbMXjwuKF8IRk0ATs/z6reQz6fitH4DC98RWIXst9bRasCB4PAhxYwPK8S5uu WT4doz7GvyiaCWbMuXJw1gSAUXZ/QyxlrcJIdldg4M6nTZJW3F4bTHazcIkH5oglQ7ij tUsA== 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=paTtN4wNCEyZAbOtzay10UHUeyXZEpCYdBWR/GGAJqA=; b=Hjae/5DyYFozqlrZR/oRah3Xv+cDEx8bKRXxgS3BYRJPGVdwMlSv/DjR2sf+bMFggt /mzx0l7DeRiX0wQkNyupBp1HKOsQS+XRoePmNVWyeM6eryKS5Z0AI5TXzWUPrVxuQTSB 0d+rLm+ljQIr8hlChotkNGCfi3LS3CmVdPs+XIFvveBPx5uyVnI4BeVzXhEBRSXv8j4h q6uLCH5of8pvEVUXg1kgjQBDT81CHbhVL/2NAstPkINOw1otiJvvS4Zf1pS7IatkTRY2 UKxuLCxr0guCByqIYIz6woGvV0CoOCrRNV2Dd2oQp9ibcRGYfhKLzm5LGw6xtGJrbaFv nJEA== X-Gm-Message-State: AOAM530qrRolHrxxfMQ2Dt1XxV+uWuQFwqbcFvExQo07y17gNfqjcP3H Zg6uPqFXDkr7yo+SWD1c7PGKnW0pRVKtwvroXA== X-Google-Smtp-Source: ABdhPJzgGgpPh4fUrUiqAl1gUgKPxHNEUvj4zJ1b5kDv9AMotBm5Mq9OOXwKUUp48CEKe4/WFZ0nythlWfvWOtvTUtk= X-Received: by 2002:a1c:e188:: with SMTP id y130mr19649193wmg.83.1590259051310; Sat, 23 May 2020 11:37:31 -0700 (PDT) MIME-Version: 1.0 References: <83wo52y0h8.fsf@gnu.org> In-Reply-To: <83wo52y0h8.fsf@gnu.org> From: Paul Pogonyshev Date: Sat, 23 May 2020 20:37:20 +0200 Message-ID: Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000dab1dd05a65509b3" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41489 Cc: 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000dab1dd05a65509b3 Content-Type: text/plain; charset="UTF-8" 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. > > --000000000000dab1dd05a65509b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry. In any Emacs version. I tested with a fairly recent= ly compiled `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-content= s (pop files))

This form is not inside `(ignor= e-errors ...)' and so any failure is propagated out of `package-dir-inf= o' too.

Paul

On Sat, 23 May 2020 at 20:23= , Eli Zaretskii <eliz@gnu.org> wr= ote:
> 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.

--000000000000dab1dd05a65509b3-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 18:55:25 2020 Received: (at 41489) by debbugs.gnu.org; 25 May 2020 22:55:25 +0000 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 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 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) MIME-Version: 1.0 References: <83wo52y0h8.fsf@gnu.org> In-Reply-To: From: Paul Pogonyshev Date: Tue, 26 May 2020 00:55:05 +0200 Message-ID: Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file To: Eli Zaretskii Content-Type: multipart/mixed; boundary="000000000000581b4605a680df93" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41489 Cc: 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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 L3BhY2thZ2UuZWwKaW5kZXggOWE2ZDFkNzMxOS4uOTliYTVkNzEwNyAxMDA2NDQKLS0tIGEvbGlz cC9lbWFjcy1saXNwL3BhY2thZ2UuZWwKKysrIGIvbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwK QEAgLTExODEsNyArMTE4MSw5IEBAIHBhY2thZ2UtZGlyLWluZm8KICAgICAgICAgICAgIGluZm8p CiAgICAgICAgICh3aGlsZSBmaWxlcwogICAgICAgICAgICh3aXRoLXRlbXAtYnVmZmVyCi0gICAg ICAgICAgICAoaW5zZXJ0LWZpbGUtY29udGVudHMgKHBvcCBmaWxlcykpCisgICAgICAgICAgICA7 OyBTa2lwIHVucmVhZGFibGUgZmlsZXMsIGUuZy4gbG9ja3MgZm9yIHVuc2F2ZWQgYC5lbCcKKyAg ICAgICAgICAgIDs7IGJ1ZmZlcnMgKGJ1ZyM0MTQ4OSkuCisgICAgICAgICAgICAoaWdub3JlLWVy cm9ycyAoaW5zZXJ0LWZpbGUtY29udGVudHMgKHBvcCBmaWxlcykpKQogICAgICAgICAgICAgOzsg V2hlbiB3ZSBmaW5kIHRoZSBmaWxlIHdpdGggdGhlIGRhdGEsCiAgICAgICAgICAgICAod2hlbiAo c2V0cSBpbmZvIChpZ25vcmUtZXJyb3JzIChwYWNrYWdlLWJ1ZmZlci1pbmZvKSkpCiAgICAgICAg ICAgICAgIDs7IHN0b3AgbG9vcGluZywKLS0gCjIuMjAuMQoK --000000000000581b4605a680df93-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 22:07:46 2020 Received: (at 41489) by debbugs.gnu.org; 26 May 2020 02:07:46 +0000 Received: from localhost ([127.0.0.1]:43085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdP0M-00026e-HX for submit@debbugs.gnu.org; Mon, 25 May 2020 22:07:46 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:34991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdP0K-00026K-Jk for 41489@debbugs.gnu.org; Mon, 25 May 2020 22:07:45 -0400 Received: by mail-yb1-f193.google.com with SMTP id u73so6679922ybi.2 for <41489@debbugs.gnu.org>; Mon, 25 May 2020 19:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=EC+VPTg88Lwnwybhp9CRt3XfspbuUHG+yRGxJIKXZPo=; b=nMSYEimm/CBmu9uG0xMIOoU/xLYqp2JgqFwwTKHBsUiBrE86lPmoRPogeKTqDY29yI ihYohON/5PNQZN/IhrqO+BFgi+FVdBdlg/2DPJ4ORxJkkUK7TQk2Y2i+Dsbpf5iMFtl4 QmkM/h8/NPjzE45D8RgpJ3UGnPQ0Ul2zDw2kHL7Z4QPi2dK0Y33PD9tHiKfNHltw4Svz iu378TT/BcsZc19ykIsxzSRuXvWHmHnHTbgNy2PBSvhy2VoAZsBs4cxJ2aAJ3gVXRTVU pmszT1efP05HK/q1XblBgUAv1aj+G0lj1bEBZErbGOuKfZzB68zFLihdzo1dVngNyX2i vGsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=EC+VPTg88Lwnwybhp9CRt3XfspbuUHG+yRGxJIKXZPo=; b=hkyQ/7nUC08oGhtaMXA/+bh8cHAxApackE6Qe1l+UtKOP+jUGRVN10yR9QF8yTBJyn cPkzJCUh5uowaZ5v+W7NNqiqJBo2WfHpkxEZNmOc9H7Nw8i3b+LtU/57zpvufX/TqW87 Zq1zmrp6lm4xqMub/+QIWVSKl0h2VKGHkaTVYqtwIcPc7xuF6g50jfN0y3mh9s7zoUQz GPPcP6JrAGUtNNeBTGVSDXgv+O/uW7Pl7hRCwPEOzevldHClZAyoIrNypieF6rdHmH0q g5Q8xvej64abd2G4wsrvx/9xliZ/G/ZCb/Xkm1ebB8uMUNWWnOj/W37gNK4gjf3CsVls yGnA== X-Gm-Message-State: AOAM530hf4TiZorZmNciHco4ESUsbWISdDqEveHNe1Hiz6FkXjIaiEwO j52/OJN4wHr+QJKN83U1xkgRx6azN87YPMd2qnA= X-Google-Smtp-Source: ABdhPJwlQaa1stpM4cCWrGCdB5idUWosdIwUPknwvXl6tsWMHdH8KLUscTqdT0WcYCVzWETuDVajM3rrudy1qiLWMUI= X-Received: by 2002:a25:41cd:: with SMTP id o196mr47693683yba.181.1590458859061; Mon, 25 May 2020 19:07:39 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 25 May 2020 19:07:38 -0700 From: Stefan Kangas In-Reply-To: References: <83wo52y0h8.fsf@gnu.org> MIME-Version: 1.0 Date: Mon, 25 May 2020 19:07:38 -0700 Message-ID: Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file To: Paul Pogonyshev , Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41489 Cc: 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Paul Pogonyshev writes: > diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el > index 9a6d1d7319..99ba5d7107 100644 > --- a/lisp/emacs-lisp/package.el > +++ b/lisp/emacs-lisp/package.el > @@ -1181,7 +1181,9 @@ package-dir-info > info) > (while files > (with-temp-buffer > - (insert-file-contents (pop files)) > + ;; Skip unreadable files, e.g. locks for unsaved `.el' > + ;; buffers (bug#41489). > + (ignore-errors (insert-file-contents (pop files))) > ;; When we find the file with the data, > (when (setq info (ignore-errors (package-buffer-info))) > ;; stop looping, Do we really want to ignore *any* error from insert-file-contents here? Should we really run package-buffer-info if inserting the file fails? Won't that reach (error "Package lacks a file header") and signal an error anyways, just a different and more cryptic one? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 02:54:20 2020 Received: (at 41489) by debbugs.gnu.org; 26 May 2020 06:54:20 +0000 Received: from localhost ([127.0.0.1]:43843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdTTf-00056y-At for submit@debbugs.gnu.org; Tue, 26 May 2020 02:54:19 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdTTd-00056k-Bh for 41489@debbugs.gnu.org; Tue, 26 May 2020 02:54:18 -0400 Received: by mail-wr1-f66.google.com with SMTP id e1so19263865wrt.5 for <41489@debbugs.gnu.org>; Mon, 25 May 2020 23:54:17 -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=vwKGyu/lI8MqtSUFWMOKlgUyaGk8Z13efNl1yj9GVzc=; b=DW6lONdTJz/RvCKmqSdV/2SN8lC7L3gwVm5n3+fRuWvLUZ1REWLsR77/mSL9dHhtmE V4uoHYmLyiFr8LB3Rrt/0pEoUQT0PXq+RdETG06WVhIQhho/rszrhVVX/qgmSDVS9U2E HV4BCM6wUJQP5i45jSs98V1Vs6KRcLqXWeqlXn5/bcLCayLEK3N3fLG2PYEhr4vzheKr FyyXHbJFJqcCfaoC6vTlfhoZPegmOVOTXaGacTKdd+y6phA3SqnFS3f2dcA1EWC+j1hp 7Jk1PUhk1w3atoZEPq6S18/qXfzLsimzLaLQVSoQCKIUeVfAAS7T773VRfWFS3T05knd 7neg== 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=vwKGyu/lI8MqtSUFWMOKlgUyaGk8Z13efNl1yj9GVzc=; b=P8Q+pt5pkVn2CZDkPgqI1YN4Uijp44vXJNAg97duzoXVvnoA8gZmN3xVkyifcSf6kp mxlVNIhbBoLNWa1JanOPxJCIwOZQorum3TV1/ePefB1MDpUOt1eJzijGz2TggMs8Gf91 tCMUSK0jZU4yZa1T9UQE3vr/Pc/VJSyiHvRLr9amsIQ530UXlslCTKBangbJbQ8Aj+pf ZrXtSd87qeLPiUCmfGNHOEI93HwPmgvizKpXf52HOyQv8mRj1mVz36UjrRA221EJTnou 9OVV22c2exQGdf6ja689GR5FdfpBHnuA2ixIO0me5kCsUBFnVtDB6kjefB+jcUkaSSls g/pw== X-Gm-Message-State: AOAM532iy/5/Sa6Yn7WrfDJmt7fkhocj0ovF1rQdkO79F+/7q0/0ta4N cZNlN3eUY3PNoMxyXl+beaMopE1oloiR+X5AQw== X-Google-Smtp-Source: ABdhPJy5uP9njuKE5aluXEpCLRKhj5Ox7vX7jeW//OSZWA+g+RfOfUD6BJfgPnN3Kt9zCAMW/YJZEJrnBheyKVGaQ5o= X-Received: by 2002:a5d:42cd:: with SMTP id t13mr18227043wrr.355.1590476051433; Mon, 25 May 2020 23:54:11 -0700 (PDT) MIME-Version: 1.0 References: <83wo52y0h8.fsf@gnu.org> In-Reply-To: From: Paul Pogonyshev Date: Tue, 26 May 2020 08:54:00 +0200 Message-ID: Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file To: Stefan Kangas Content-Type: multipart/alternative; boundary="00000000000011cc6c05a6879029" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41489 Cc: Eli Zaretskii , 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000011cc6c05a6879029 Content-Type: text/plain; charset="UTF-8" > Do we really want to ignore *any* error from insert-file-contents here? Well, maybe that should be limited to `file-missing' instead (what actually happens when it tries to read a lock file). > Should we really run package-buffer-info if inserting the file fails? > Won't that reach (error "Package lacks a file header") and signal an > error anyways, just a different and more cryptic one? `package-buffer-info' is already inside a different `ignore-errors', so it will signal an error, but that error will be ignored and the file skipped. I'm not attached to any particular way this bug is fixed. Please adjust it yourself, the patch is only an example of how it could be done. This will be faster than if we try to negotiate the best way and recreate the patch. BTW, the bug being reproducible only in 50% of the cases makes it even more important to be fixed from my point of view. Nothing is worse than unspecified behavior when it's not justified by reasons like huge performance gain in my opinion. Paul On Tue, 26 May 2020 at 04:07, Stefan Kangas wrote: > Paul Pogonyshev writes: > > > diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el > > index 9a6d1d7319..99ba5d7107 100644 > > --- a/lisp/emacs-lisp/package.el > > +++ b/lisp/emacs-lisp/package.el > > @@ -1181,7 +1181,9 @@ package-dir-info > > info) > > (while files > > (with-temp-buffer > > - (insert-file-contents (pop files)) > > + ;; Skip unreadable files, e.g. locks for unsaved `.el' > > + ;; buffers (bug#41489). > > + (ignore-errors (insert-file-contents (pop files))) > > ;; When we find the file with the data, > > (when (setq info (ignore-errors (package-buffer-info))) > > ;; stop looping, > > Do we really want to ignore *any* error from insert-file-contents here? > > Should we really run package-buffer-info if inserting the file fails? > Won't that reach (error "Package lacks a file header") and signal an > error anyways, just a different and more cryptic one? > > Best regards, > Stefan Kangas > --00000000000011cc6c05a6879029 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Do we really want to ignore *any* error from insert-f= ile-contents here?

Well, maybe that should be limite= d to `file-missing' instead (what actually happens when it tries to rea= d a lock file).

> Should we really run package-= buffer-info if inserting the file fails?
> Won't that reach (erro= r "Package lacks a file header") and signal an
> error anyw= ays, just a different and more cryptic one?

`p= ackage-buffer-info' is already inside a different `ignore-errors', = so it will signal an error, but that error will be ignored and the file ski= pped.

I'm not attached to any particular way t= his bug is fixed. Please adjust it yourself, the patch is only an example o= f how it could be done. This will be faster than if we try to negotiate the= best way and recreate the patch.

BTW, the bug bei= ng reproducible only in 50% of the cases makes it even more important to be= fixed from my point of view. Nothing is worse than unspecified behavior wh= en it's not justified by reasons like huge performance gain in my opini= on.

Paul

On Tue, 26 May 2020 at 04:07, Stefan= Kangas <stefankangas@gmail.co= m> wrote:
Paul Pogonyshev <pogonyshev@gmail.com> writes:

> diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el > index 9a6d1d7319..99ba5d7107 100644
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -1181,7 +1181,9 @@ package-dir-info
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 info)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (while files
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (with-temp-buffer
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (insert-file-contents (pop = files))
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Skip unreadable files, e= .g. locks for unsaved `.el'
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; buffers (bug#41489).
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (ignore-errors (insert-file= -contents (pop files)))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; When we find the fi= le with the data,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (when (setq info (igno= re-errors (package-buffer-info)))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; stop looping= ,

Do we really want to ignore *any* error from insert-file-contents here?

Should we really run package-buffer-info if inserting the file fails?
Won't that reach (error "Package lacks a file header") and si= gnal an
error anyways, just a different and more cryptic one?

Best regards,
Stefan Kangas
--00000000000011cc6c05a6879029-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 04:51:33 2020 Received: (at 41489) by debbugs.gnu.org; 26 May 2020 08:51:33 +0000 Received: from localhost ([127.0.0.1]:43999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdVJ7-00080H-1k for submit@debbugs.gnu.org; Tue, 26 May 2020 04:51:33 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]:33017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdVJ5-000803-0x for 41489@debbugs.gnu.org; Tue, 26 May 2020 04:51:31 -0400 Received: by mail-yb1-f173.google.com with SMTP id g79so9498442ybf.0 for <41489@debbugs.gnu.org>; Tue, 26 May 2020 01:51:30 -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=x8xWaiWJ4oQwDUMLP5RFosLKtV3eoqjHV6Yy83qIErY=; b=ZTboG6xM3dLl9nFgcLKXV30NZcjBiJRq3WVrlonCeI5P0lv5ssPldhe4conZTE+jEn wb6pw/EYtY/cBCSnvG/onlXu54AoEhW4kPT/Gk/itu0XEKcVYonKpaJ13K4KQz0x0m+8 WxaEyAhyGMzzwWIp9gFHuHctrRQ7AF/fP1cc0Ta3TFhfnWJUK/J3YmF3cEpOcSBAwOBi 1QcEUx1J5goTvEmhLfVK5kX+5ovsJgncQYqvtyztpTEFbxkuG/I8d4qtY8b5H2vMLQrJ hRz5rEhWllDs7Otde1A1uf1BNPMegn/iJEyQsRQhlDEPTNaw9kJTmLUG6C8KbTGPDE6z gF9g== 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=x8xWaiWJ4oQwDUMLP5RFosLKtV3eoqjHV6Yy83qIErY=; b=AwJpq8NtblU2PQjVlDqgwTwAYtxUH3JJFIIi6Tb0rSxc8rwbmdO4rcM9czg/xSxB1C sATDIJopE7hD/jLMsDQ/JdXobZAmT9vpzl3+4KM5cR+F6eJ247tWaGoLPCHd8pjorN5E kpVEB+GRS8t+hEESiaXqqksDu0SaZLkvdmtpnTHbZjzsJye3GU3UVadO+a9vZog+lYhO 3aldhc8uj1ReQxwHE2SVPgNguCFq9ryrfcN6EQj6fas65NtZ5zeGLJgPodIvvuWRy69E 57RR/oSRiipIvlPVSbe7AOCemFRc2CVhgwysODu30B9TkYcvCR3w2+tFdsCFS+jhiQ9M KW8A== X-Gm-Message-State: AOAM532t7JU4oFLvsnjVIcgO/wclo3pmCKcg3mEsvCPWSoa4YEJnbLpT lj88ZGneL7hFyQLQCGnSvjfCAY4LjzAbXMdU9AI= X-Google-Smtp-Source: ABdhPJyAQfyy0Z1Pk0dw4unZR6KxqW9cq8PevqIEWAO0Mb/crtom4kcjY6eS7gbJqPM2NgzR6dTen+aIkwEjk3psvNc= X-Received: by 2002:a25:5f52:: with SMTP id h18mr45792610ybm.231.1590483085164; Tue, 26 May 2020 01:51:25 -0700 (PDT) MIME-Version: 1.0 References: <83wo52y0h8.fsf@gnu.org> In-Reply-To: From: Stefan Kangas Date: Tue, 26 May 2020 10:51:14 +0200 Message-ID: Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file To: Paul Pogonyshev Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41489 Cc: Eli Zaretskii , 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Paul Pogonyshev writes: >> Do we really want to ignore *any* error from insert-file-contents here? > > Well, maybe that should be limited to `file-missing' instead (what actually > happens when it tries to read a lock file). Sounds good. >> Should we really run package-buffer-info if inserting the file fails? >> Won't that reach (error "Package lacks a file header") and signal an >> error anyways, just a different and more cryptic one? > > `package-buffer-info' is already inside a different `ignore-errors', so it > will signal an error, but that error will be ignored and the file skipped. Thanks for clarifying. I didn't study this code recently. > I'm not attached to any particular way this bug is fixed. Please adjust it > yourself, the patch is only an example of how it could be done. This will > be faster than if we try to negotiate the best way and recreate the patch. I don't mean to discourage you from working on this, on the contrary. We appreciate that you're working on a fix. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 20:13:40 2021 Received: (at 41489) by debbugs.gnu.org; 5 Dec 2021 01:13:40 +0000 Received: from localhost ([127.0.0.1]:55769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtg60-0004YW-FQ for submit@debbugs.gnu.org; Sat, 04 Dec 2021 20:13:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]:43882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtg5z-0004YG-4d for 41489@debbugs.gnu.org; Sat, 04 Dec 2021 20:13:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5uiIlbuYsytxOmURPCoYxcvOHuX+sB5TP0FOg6nJ9xU=; b=CEPaDB6cQmF5g2b8NxgpKWsIVF dEVCEBTEzSJi4q1zTqEadRdePUX7Xm84wFFWreJwoUYDup/0dG9JfDGRQjQpY04qzmo4t2o3fwuAg to5C1KcO7YdMtDrlP7k+YAyyJpGofWYkWoZTv9+CfrA+DM1TVW3GSLr0H2H/kkvuhYlc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtg5q-0002MW-AU; Sun, 05 Dec 2021 02:13:32 +0100 From: Lars Ingebrigtsen To: Paul Pogonyshev Subject: Re: bug#41489: `package-dir-info' fails on a directory with a non-saved file References: X-Now-Playing: Talking Heads's _77_: "No Compassion" Date: Sun, 05 Dec 2021 02:13:29 +0100 In-Reply-To: (Paul Pogonyshev's message of "Sat, 23 May 2020 19:50:02 +0200") Message-ID: <875ys3x39i.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Paul Pogonyshev writes: > To reproduce: > > - 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 di [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41489 Cc: 41489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Paul Pogonyshev writes: > To reproduce: > > - 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") I've now made it ignore nonexistent files in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 20:13:46 2021 Received: (at control) by debbugs.gnu.org; 5 Dec 2021 01:13:46 +0000 Received: from localhost ([127.0.0.1]:55772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtg65-0004Ys-NO for submit@debbugs.gnu.org; Sat, 04 Dec 2021 20:13:45 -0500 Received: from quimby.gnus.org ([95.216.78.240]:43896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtg64-0004YO-0F for control@debbugs.gnu.org; Sat, 04 Dec 2021 20:13:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1rCn1ZkQfPfwfaTcFMnrWMcr7Pdzq0vAZsSNLHy/ohY=; b=ieEkMrj36d1hof2EAC3MbjvCcI 83+5HnzLimb98AbqM89SzYecc4uSNsCwUNWTdfzXbbrNog4a0OhVpTuGXJ+h5YTDx8524niEb4moI +kqZa3dIbOqC45OShtk6DTH6kHOhLItlQngSIIlBoTueh+UiEqbyFuCAf4P4Jv8CSJXc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtg5w-0002Mg-9u for control@debbugs.gnu.org; Sun, 05 Dec 2021 02:13:38 +0100 Date: Sun, 05 Dec 2021 02:13:35 +0100 Message-Id: <874k7nx39c.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #41489 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 41489 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 41489 29.1 quit From unknown Fri Jun 20 07:17:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Jan 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator