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 19:50:02 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b46dbe05a65460ad" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24958"; mail-complaints-to="usenet@ciao.gmane.io" To: 41489@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 23 19:51: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 1jcYIg-0006Mk-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 19:51:10 +0200 Original-Received: from localhost ([::1]:33656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcYIf-0007Bc-9S for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 13:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcYIZ-0007BQ-1a for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 13:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcYIY-0003V9-P0 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 13:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcYIY-0006xc-O4 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 13:51: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 17:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41489 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159025621926705 (code B ref -1); Sat, 23 May 2020 17:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 May 2020 17:50:19 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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:180830 Archived-At: --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--