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: Sat, 23 May 2020 20:37:20 +0200 Message-ID: References: <83wo52y0h8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dab1dd05a65509b3" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="88393"; 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 Sat May 23 20:38:10 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 1jcZ2A-000Mtb-KT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 20:38:10 +0200 Original-Received: from localhost ([::1]:54458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcZ29-0004w9-Na for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 14:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcZ22-0004vG-Ux for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 14:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcZ22-0002nz-MX for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 14:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcZ22-00086o-L9 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 14:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2020 18:38:02 +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.159025905931133 (code B ref 41489); Sat, 23 May 2020 18:38:02 +0000 Original-Received: (at 41489) by debbugs.gnu.org; 23 May 2020 18:37:39 +0000 Original-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 Original-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 Original-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) In-Reply-To: <83wo52y0h8.fsf@gnu.org> 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:180837 Archived-At: --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--