From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jul 2020 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42431@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159518725212375 (code B ref -1); Sun, 19 Jul 2020 19:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2020 19:34:12 +0000 Received: from localhost ([127.0.0.1]:33065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxF4e-0003DW-4g for submit@debbugs.gnu.org; Sun, 19 Jul 2020 15:34:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:43298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxF4b-0003DO-OO for submit@debbugs.gnu.org; Sun, 19 Jul 2020 15:34:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxF4b-0004Za-Hr for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 15:34:09 -0400 Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:54572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxF4Z-0007BW-T8 for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 15:34:09 -0400 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:Date:Subject:To:From: Sender:Reply-To:Cc: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=dYwoyCPcTxIG8AoReOdVmLd7DQXy6e3+Nt8rOQXVV7w=; b=UdDBmu42IfnfF5RZv6RMD8RKBS j5X+e4sbp4iPb36a4ZYWbyuiDDdN4ELk+/J+wS5zSi7IVE6oXBE8qzOIxm19TVdv5FRy3B7XqbWNz OL8tMwIwo9ViunAIPVIWuLmus4dB9IBGBrgxcLaHNnqTaW+/Pdkf070q1Eekt5CXFcIY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxF4V-00043s-Ac for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 21:34:05 +0200 From: Lars Ingebrigtsen Date: Sun, 19 Jul 2020 21:34:02 +0200 Message-ID: <87v9ijl2ol.fsf@gnus.org> 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: Create a file /tmp/a.txt, and visit /tmp. M-x browse-url-of-dired-file on the file. Emacs will say: File exists, but cannot be read 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] Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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 (--) Create a file /tmp/a.txt, and visit /tmp. M-x browse-url-of-dired-file on the file. Emacs will say: File exists, but cannot be read and then display the file in a text-mode buffer. If you then go to the real a.txt buffer, Emacs will then say /tmp/a.txt and file:///tmp/a.txt are the same file All this is very confusing, because the doc string of the command is -- In Dired, ask a WWW browser to display the file named on this line. -- So it should just call `browse-url' on the file:// URL, and not do anything about these buffers? In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-07-19 built on xo Repository revision: 17f646128f04e9e8590f0371026a14d516f21c63 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jul 2020 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159518747112719 (code B ref 42431); Sun, 19 Jul 2020 19:38:02 +0000 Received: (at 42431) by debbugs.gnu.org; 19 Jul 2020 19:37:51 +0000 Received: from localhost ([127.0.0.1]:33075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxF8B-0003J5-K5 for submit@debbugs.gnu.org; Sun, 19 Jul 2020 15:37:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxF88-0003Iq-E9 for 42431@debbugs.gnu.org; Sun, 19 Jul 2020 15:37:49 -0400 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:To:From:Sender:Reply-To:Cc: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=O8fwq2w7ts9DiDa2AFpvhDdrlM5cnzTkoXT1sDhW12g=; b=vNRjXbcrtRKtP9RxPsKMdSspnT q4nh9mvCF3AK1CJ/mmpdx2T3Ro0BnI1D/rkTJ0LJKH/FFSTcAWNWu/l1nKVFakxKYMcXg4MPUcn9/ lQKIGbOR2VSOFyYuAJ5rc2FVaiiN6TKP+r3BpJtLDlJydsBdakHaDuzXeyc7KGE7KpQs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxF7z-00047y-Bz for 42431@debbugs.gnu.org; Sun, 19 Jul 2020 21:37:42 +0200 From: Lars Ingebrigtsen References: <87v9ijl2ol.fsf@gnus.org> Date: Sun, 19 Jul 2020 21:37:38 +0200 In-Reply-To: <87v9ijl2ol.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 21:34:02 +0200") Message-ID: <87r1t7l2il.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Lars Ingebrigtsen writes: > All this is very confusing, because the doc string of the command is > > -- > In Dired, ask a WWW browser to display the file named on this line. > -- > > So it should just call `browse-url' on the [...] 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: 0.0 (/) 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 (-) Lars Ingebrigtsen writes: > All this is very confusing, because the doc string of the command is > > -- > In Dired, ask a WWW browser to display the file named on this line. > -- > > So it should just call `browse-url' on the file:// URL, and not do > anything about these buffers? Ah, it's because of this -- (defvar browse-url-default-handlers '(("\\`mailto:" . browse-url--mailto) ("\\`man:" . browse-url--man) (browse-url--non-html-file-url-p . browse-url-emacs)) browse-url on a file that doesn't have .html in it will now not open a browser at all, but instead an Emacs buffer. In any case, the messaging is misleading and the buffer name is confusing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jul 2020 22:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42431@debbugs.gnu.org Cc: Michael Albinus Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159588868311120 (code B ref 42431); Mon, 27 Jul 2020 22:25:02 +0000 Received: (at 42431) by debbugs.gnu.org; 27 Jul 2020 22:24:43 +0000 Received: from localhost ([127.0.0.1]:55968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0BY3-0002tH-5W for submit@debbugs.gnu.org; Mon, 27 Jul 2020 18:24:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0BY0-0002t1-Ep for 42431@debbugs.gnu.org; Mon, 27 Jul 2020 18:24:41 -0400 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=nweyqw9zItZIsEL1jobdxDUTu+6geW59+lBmA+EFbbY=; b=XyFifleLKdPf+4a5Xbj1CbY7z7 PgW23L2sMYzZrDBhpYPKe9LV9PDCurPuuAQdbPTEV08EZ5vrkvdIL8ZX0Cb9JRPSFzBOYbtsxWOdV AlpJJbbhU2k3pnv50G45ZYlTiEzTHBC0D75t8ag8vfLf2XmtAh+09MmSxWR2Kv9780e0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0BXl-0005UO-FP; Tue, 28 Jul 2020 00:24:34 +0200 From: Lars Ingebrigtsen References: <87v9ijl2ol.fsf@gnus.org> Date: Tue, 28 Jul 2020 00:24:23 +0200 In-Reply-To: <87v9ijl2ol.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 21:34:02 +0200") Message-ID: <87blk04mw8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Lars Ingebrigtsen writes: > Create a file /tmp/a.txt, and visit /tmp. > M-x browse-url-of-dired-file on the file. > > Emacs will say: > > File exists, but cannot be read > > and then display the file in a text-mode buffer. 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: 0.0 (/) 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 (-) Lars Ingebrigtsen writes: > Create a file /tmp/a.txt, and visit /tmp. > M-x browse-url-of-dired-file on the file. > > Emacs will say: > > File exists, but cannot be read > > and then display the file in a text-mode buffer. Here's a simpler reproduction. Ensure that /tmp/a.txt exists, and then eval: (browse-url-of-file "/tmp/a.txt") The message originates from here, sort of: (defun find-file-noselect-1 (buf filename nowarn rawfile truename number) [...] (condition-case () (let ((inhibit-read-only t)) (insert-file-contents-literally filename t)) (file-error (when (and (file-exists-p filename) (not (file-readable-p filename))) (kill-buffer buf) (signal 'file-error (list "File is not readable" filename))) If we remove that condition-case, we get: Debugger entered--Lisp error: (file-error "Opening input file" "Success") insert-file-contents("file:///tmp/a.txt" t) So the insert-file-contents-literally signals a "Success" file-error when using url-handler-mode. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2020 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159687283125941 (code B ref 42431); Sat, 08 Aug 2020 07:48:02 +0000 Received: (at 42431) by debbugs.gnu.org; 8 Aug 2020 07:47:11 +0000 Received: from localhost ([127.0.0.1]:57977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4JZO-0006kL-ME for submit@debbugs.gnu.org; Sat, 08 Aug 2020 03:47:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4JZI-0006ji-L4 for 42431@debbugs.gnu.org; Sat, 08 Aug 2020 03:47:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43377) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4JZC-0007wf-Pt; Sat, 08 Aug 2020 03:46:58 -0400 Received: from [176.228.60.248] (port=3879 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k4JZB-0007Tn-P6; Sat, 08 Aug 2020 03:46:58 -0400 Date: Sat, 08 Aug 2020 10:46:55 +0300 Message-Id: <83eeoh7f68.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87blk04mw8.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 28 Jul 2020 00:24:23 +0200) References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> X-Spam-Score: -2.3 (--) 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: Lars Ingebrigtsen > Date: Tue, 28 Jul 2020 00:24:23 +0200 > Cc: Michael Albinus > > (browse-url-of-file "/tmp/a.txt") > > The message originates from here, sort of: > > (defun find-file-noselect-1 (buf filename nowarn rawfile truename number) > > [...] > > (condition-case () > (let ((inhibit-read-only t)) > (insert-file-contents-literally filename t)) > (file-error > (when (and (file-exists-p filename) > (not (file-readable-p filename))) > (kill-buffer buf) > (signal 'file-error (list "File is not readable" > filename))) Is this because file-readable-p returns nil for file:// URLs? From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2020 10:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159688111624051 (code B ref 42431); Sat, 08 Aug 2020 10:06:02 +0000 Received: (at 42431) by debbugs.gnu.org; 8 Aug 2020 10:05:16 +0000 Received: from localhost ([127.0.0.1]:58153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4Lj2-0006Fq-8R for submit@debbugs.gnu.org; Sat, 08 Aug 2020 06:05:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4Lj0-0006FQ-Dd for 42431@debbugs.gnu.org; Sat, 08 Aug 2020 06:05:14 -0400 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=/zR4vr58A2P8o5Owl/SOMrdyKjUSx9guFMEEyQG+IS0=; b=A/85yVKl+tGQTLfsu2QclrHL8I zRBDFYbRbxV8mn7ngy21vjZPfLWk+6ZjyjpsgWqTwhxFgmDj+kppPasR+ulpUEoi2jP9fM+InKTaS obI7O9+w+xLaaZDm4aPlB6e86RUrvhAHZb1lOH7Vxi/9xCcIl2grAriPwkflH9Eo2064=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4Lis-0002og-3z; Sat, 08 Aug 2020 12:05:08 +0200 From: Lars Ingebrigtsen References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> Date: Sat, 08 Aug 2020 12:05:04 +0200 In-Reply-To: <83eeoh7f68.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 Aug 2020 10:46:55 +0300") Message-ID: <87a6z55u7j.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Eli Zaretskii writes: >> (defun find-file-noselect-1 (buf filename nowarn rawfile truename number) >> >> [...] >> >> (condition-case () >> (let ((inhibit-read-only t)) >> (insert-file-contents-literally filename t)) >> (fi [...] 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: 0.0 (/) 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 (-) Eli Zaretskii writes: >> (defun find-file-noselect-1 (buf filename nowarn rawfile truename number) >> >> [...] >> >> (condition-case () >> (let ((inhibit-read-only t)) >> (insert-file-contents-literally filename t)) >> (file-error >> (when (and (file-exists-p filename) >> (not (file-readable-p filename))) >> (kill-buffer buf) >> (signal 'file-error (list "File is not readable" >> filename))) > > Is this because file-readable-p returns nil for file:// URLs? That's the direct cause of the message, but the underlying reason is that insert-file-contents-literally signalled a file-error here (after inserting the contents). I haven't yet chased down why. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2020 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159688218125609 (code B ref 42431); Sat, 08 Aug 2020 10:23:02 +0000 Received: (at 42431) by debbugs.gnu.org; 8 Aug 2020 10:23:01 +0000 Received: from localhost ([127.0.0.1]:58173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4M0D-0006ew-8F for submit@debbugs.gnu.org; Sat, 08 Aug 2020 06:23:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4M0B-0006ek-N0 for 42431@debbugs.gnu.org; Sat, 08 Aug 2020 06:23:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44625) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4M06-0007qS-0G; Sat, 08 Aug 2020 06:22:54 -0400 Received: from [176.228.60.248] (port=3290 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k4M05-0002T4-IV; Sat, 08 Aug 2020 06:22:53 -0400 Date: Sat, 08 Aug 2020 13:22:47 +0300 Message-Id: <83y2mp5te0.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a6z55u7j.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 08 Aug 2020 12:05:04 +0200) References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> X-Spam-Score: -2.3 (--) 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: Lars Ingebrigtsen > Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org > Date: Sat, 08 Aug 2020 12:05:04 +0200 > > >> (condition-case () > >> (let ((inhibit-read-only t)) > >> (insert-file-contents-literally filename t)) > >> (file-error > >> (when (and (file-exists-p filename) > >> (not (file-readable-p filename))) > >> (kill-buffer buf) > >> (signal 'file-error (list "File is not readable" > >> filename))) > > > > Is this because file-readable-p returns nil for file:// URLs? > > That's the direct cause of the message, but the underlying reason is > that insert-file-contents-literally signalled a file-error here (after > inserting the contents). I haven't yet chased down why. I guess that's because expand-file-name doesn't convert file:// URLs into local file names, and then insert-file-contents chokes on the value produced by expand-file-name. (insert-file-contents-literally is just a thin wrapper around insert-file-contents.) So one solution would be to convert file:// URLs into local file names in the above snippet, before calling insert-file-contents-literally. From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2020 09:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159696574131652 (code B ref 42431); Sun, 09 Aug 2020 09:36:02 +0000 Received: (at 42431) by debbugs.gnu.org; 9 Aug 2020 09:35:41 +0000 Received: from localhost ([127.0.0.1]:59954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4hjx-0008ES-0n for submit@debbugs.gnu.org; Sun, 09 Aug 2020 05:35:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4hjv-0008ED-Gb for 42431@debbugs.gnu.org; Sun, 09 Aug 2020 05:35:40 -0400 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=8lDInASbcd/0c7DzTyTNF2dss7rjeXIpL4Pcx/6zEzY=; b=MXTpo7qWqw2byVBnAm18wHWGIs O0/IqBiBAICgVH7LSDIEKxpcPfcCMa3apee8qeFVU2QIx01WsUH8Hk1V6fpL88BR4GmvztduAgIt8 nxLy8rOg577igFxPcouevwMD6nYS5FxQIi3MCi2BuRa2o71E6AlnVP/r+s9LHMr3LcEQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4hji-0008WS-PM; Sun, 09 Aug 2020 11:35:32 +0200 From: Lars Ingebrigtsen References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> Date: Sun, 09 Aug 2020 11:35:25 +0200 In-Reply-To: <83y2mp5te0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 Aug 2020 13:22:47 +0300") Message-ID: <87pn80w49u.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org >> Date: Sat, 08 Aug 2020 12:05:04 +0200 >> >> >> (condition-case () >> >> (let ((inhibit-read-only t)) [...] 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: 0.0 (/) 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 (-) Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org >> Date: Sat, 08 Aug 2020 12:05:04 +0200 >> >> >> (condition-case () >> >> (let ((inhibit-read-only t)) >> >> (insert-file-contents-literally filename t)) >> >> (file-error >> >> (when (and (file-exists-p filename) >> >> (not (file-readable-p filename))) >> >> (kill-buffer buf) >> >> (signal 'file-error (list "File is not readable" >> >> filename))) >> > >> > Is this because file-readable-p returns nil for file:// URLs? >> >> That's the direct cause of the message, but the underlying reason is >> that insert-file-contents-literally signalled a file-error here (after >> inserting the contents). I haven't yet chased down why. My analysis here was kinda wrong -- the code above isn't what gives the warning, because all those functions up there do the right thing, since file-name-handler-alist is set: (let ((file-name-handler-alist (cons (cons url-handler-regexp 'url-file-handler) file-name-handler-alist))) (list (file-exists-p "file:///tmp/a.txt") (file-readable-p "file:///tmp/a.txt"))) => (t t) The problem is that insert-file-contents signals a file-error, and the error string is "Success". This makes things confused, because it knows that it has an error, but when it tests for all things that could go wrong, it doesn't find anything, and ends up here: (defun after-find-file (&optional error warn noauto _after-find-file-from-revert-buffer nomodes) [...] ((and error (file-attributes buffer-file-name)) (setq buffer-read-only t) (if (and (file-symlink-p buffer-file-name) (not (file-exists-p (file-chase-links buffer-file-name)))) "Symbolic link that points to nonexistent file" "File exists, but cannot be read")) Which is where the message itself comes from. > So one solution would be to convert file:// URLs into local file names > in the above snippet, before calling insert-file-contents-literally. It would be, but I think this points to an error in insert-file-contents itself. I'll poke around some more... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2020 09:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Paul Eggert , michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159696632432528 (code B ref 42431); Sun, 09 Aug 2020 09:46:02 +0000 Received: (at 42431) by debbugs.gnu.org; 9 Aug 2020 09:45:24 +0000 Received: from localhost ([127.0.0.1]:59959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4htM-0008SZ-0x for submit@debbugs.gnu.org; Sun, 09 Aug 2020 05:45:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4htK-0008SK-0j for 42431@debbugs.gnu.org; Sun, 09 Aug 2020 05:45:23 -0400 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=6KzGyM6OHLj14fm1IhmqrSfITpt1126KMyAq0mgsLJY=; b=KSeGta67/GrF0uP84XbIP0lQeX 8anG0tRLcAJT0x6Jx4Vgj/Vk2AEgt7BBdAX/aB8iH1rULBYbA/HA9C3diE1gjz1lgcgP6P051cBF9 MKLcxpl9U1OiJVD4/ywRwjR9RFPGXv3b1O+1F/kvEjaFYL21KGmS2EWzzq2CsitDc7Io=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4ht4-0000DR-M1; Sun, 09 Aug 2020 11:45:15 +0200 From: Lars Ingebrigtsen References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> <87pn80w49u.fsf@gnus.org> Date: Sun, 09 Aug 2020 11:45:05 +0200 In-Reply-To: <87pn80w49u.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 Aug 2020 11:35:25 +0200") Message-ID: <87lfiow3tq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Lars Ingebrigtsen writes: > It would be, but I think this points to an error in insert-file-contents > itself. I'll poke around some more... Yup. The error signalling comes from Finsert_file_contents. If I make this change, then the confusing messaging goes away: 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: 0.0 (/) 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 (-) Lars Ingebrigtsen writes: > It would be, but I think this points to an error in insert-file-contents > itself. I'll poke around some more... Yup. The error signalling comes from Finsert_file_contents. If I make this change, then the confusing messaging goes away: diff --git a/src/fileio.c b/src/fileio.c index 37072d9b6b..05e262b201 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4826,7 +4826,6 @@ because (1) it preserves some marker positions and (2) it puts less data if (!NILP (visit) && current_buffer->modtime.tv_nsec < 0) { /* Signal an error if visiting a file that could not be opened. */ - report_file_errno ("Opening input file", orig_filename, save_errno); } /* We made a lot of deletions and insertions above, so invalidate This was apparently introduced/changed in 2019 by this patch: commit 3a1e7624ed234bb434cdafed59515cadd037cafa Author: Paul Eggert AuthorDate: Thu Oct 31 23:31:17 2019 -0700 Commit: Paul Eggert CommitDate: Thu Oct 31 23:32:05 2019 -0700 Fix insert-file-contents file error regression Problem reported for dired-view-file (Bug#37950). * src/fileio.c (Finsert_file_contents): When visiting, signal an error if the file could not be opened for any reason, rather than signaling an error only for nonexistent files, fixing a bug introduced in 2019-09-16T03:17:43!eggert@cs.ucla.edu. I've Cc'd Paul on this. Paul, the test case is: (browse-url-of-file "/tmp/a.txt") This will open the file correctly (via the url-file-handler file name handler), but Emacs will then message "File exists, but cannot be read" because Finsert_file_contents signals an error with the error message "Success". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2020 14:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: eggert@cs.ucla.edu, michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159698194114191 (code B ref 42431); Sun, 09 Aug 2020 14:06:02 +0000 Received: (at 42431) by debbugs.gnu.org; 9 Aug 2020 14:05:41 +0000 Received: from localhost ([127.0.0.1]:33209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4lxE-0003gp-V2 for submit@debbugs.gnu.org; Sun, 09 Aug 2020 10:05:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4lxD-0003gd-AZ for 42431@debbugs.gnu.org; Sun, 09 Aug 2020 10:05:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60289) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4lx7-0001kA-2L; Sun, 09 Aug 2020 10:05:33 -0400 Received: from [176.228.60.248] (port=1434 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k4lx4-0000Ir-AR; Sun, 09 Aug 2020 10:05:32 -0400 Date: Sun, 09 Aug 2020 17:05:14 +0300 Message-Id: <83h7tb6hk5.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87lfiow3tq.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 09 Aug 2020 11:45:05 +0200) References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> <87pn80w49u.fsf@gnus.org> <87lfiow3tq.fsf@gnus.org> X-Spam-Score: -2.3 (--) 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: Lars Ingebrigtsen > Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org, Paul Eggert > > Date: Sun, 09 Aug 2020 11:45:05 +0200 > > Lars Ingebrigtsen writes: > > > It would be, but I think this points to an error in insert-file-contents > > itself. I'll poke around some more... > > Yup. The error signalling comes from Finsert_file_contents. If I make > this change, then the confusing messaging goes away: > > diff --git a/src/fileio.c b/src/fileio.c > index 37072d9b6b..05e262b201 100644 > --- a/src/fileio.c > +++ b/src/fileio.c > @@ -4826,7 +4826,6 @@ because (1) it preserves some marker positions and (2) it puts less data > if (!NILP (visit) && current_buffer->modtime.tv_nsec < 0) > { > /* Signal an error if visiting a file that could not be opened. */ > - report_file_errno ("Opening input file", orig_filename, save_errno); > } > Of course. And that's exactly what I meant when I suggested to convert the file:// URL to a local file name, before calling insert-file-contents. If we do that, the problem should go away. Or am I missing something? From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2020 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: eggert@cs.ucla.edu, michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159698215214536 (code B ref 42431); Sun, 09 Aug 2020 14:10:02 +0000 Received: (at 42431) by debbugs.gnu.org; 9 Aug 2020 14:09:12 +0000 Received: from localhost ([127.0.0.1]:33218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4m0d-0003mO-NC for submit@debbugs.gnu.org; Sun, 09 Aug 2020 10:09:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4m0b-0003mB-JA for 42431@debbugs.gnu.org; Sun, 09 Aug 2020 10:09:10 -0400 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=XsqF/diiQKbqo1nOwGOCb7+jMOQCS5zD2zAdiSdsxFw=; b=i4Q+tz/+B8sOCw8yfTEPTPbMw/ kFsZheVNeTgg4jPvZxKr4YfWivoh7CXGUPiijTnPUmZimtEy63BWLvvD8Y6YX27J586M2U0CyifVI IDMLxGQSef5QlMEQ1QizSAMEznn/bduYMNclO6taI2gU4+QAGmJ6V7o7g7rJvrep1QK0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4m0R-0002nI-RF; Sun, 09 Aug 2020 16:09:02 +0200 From: Lars Ingebrigtsen References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> <87pn80w49u.fsf@gnus.org> <87lfiow3tq.fsf@gnus.org> <83h7tb6hk5.fsf@gnu.org> Date: Sun, 09 Aug 2020 16:08:58 +0200 In-Reply-To: <83h7tb6hk5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Aug 2020 17:05:14 +0300") Message-ID: <878senewsl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Eli Zaretskii writes: > Of course. And that's exactly what I meant when I suggested to > convert the file:// URL to a local file name, before calling > insert-file-contents. If we do that, the problem should go away. Or > [...] 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: 0.0 (/) 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 (-) Eli Zaretskii writes: > Of course. And that's exactly what I meant when I suggested to > convert the file:// URL to a local file name, before calling > insert-file-contents. If we do that, the problem should go away. Or > am I missing something? I just thought all of this was supposed to work without doing any mangling of the "file name" -- in this case it's an URL, but presumably there are other file handlers for non-file stuff that Emacs treats are files that have the same problem. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 17 05:33:47 2020 Received: (at control) by debbugs.gnu.org; 17 Oct 2020 09:33:47 +0000 Received: from localhost ([127.0.0.1]:33346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTiax-0008KS-1N for submit@debbugs.gnu.org; Sat, 17 Oct 2020 05:33:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTiav-0008KF-IV for control@debbugs.gnu.org; Sat, 17 Oct 2020 05:33:45 -0400 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=tjf/aUjy+aRrdiXdSq5vGtYFILA7GumV2+cuQoYtYfE=; b=uIYZ40EJcVEuAHjEvTvX1WfaL1 FmtJ7KbGotX3+HD38M6utQvbTWBq3XsQMKgAgTPFhaqHnP1Gsdif6yzxYFXWclr80Ew5C+GwX7Qqq rxgY0rxUSY2QBtN88dbIahu/qeUq49IsedDp1G9H+UqpQD6fxFn+d/R45p4rkTxQl8GQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTian-00021X-QR for control@debbugs.gnu.org; Sat, 17 Oct 2020 11:33:40 +0200 Date: Sat, 17 Oct 2020 11:33:36 +0200 Message-Id: <874kmturgv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42433 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: merge 42433 42431 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: 0.0 (/) 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: -1.0 (-) merge 42433 42431 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 12:15:26 2021 Received: (at control) by debbugs.gnu.org; 3 Dec 2021 17:15:27 +0000 Received: from localhost ([127.0.0.1]:52157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtC9e-00026L-Kn for submit@debbugs.gnu.org; Fri, 03 Dec 2021 12:15:26 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtC9d-0001zi-9B for control@debbugs.gnu.org; Fri, 03 Dec 2021 12:15:25 -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=yEVqsQTPw/idRxgtSA+1Nupk134xcPjhuez9qiliYSQ=; b=S01Re7na1OPXJudS3IQ4ausmPi qvKMBA4tLtRv+o0AVx5mOpPg5MZ/Tgu8PBBx5GmJot9c5xd3SL1n3JoH33AKrTTaFzDXOnhAPFMp9 4rpfb/nNJVxY3H8aCr8SmZRHMfEqwzWr6Ng7iK8O+I9MpKoui96IN4zsiCXW7WjeQ9p4=; 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 1mtC9V-0004pu-RE for control@debbugs.gnu.org; Fri, 03 Dec 2021 18:15:19 +0100 Date: Fri, 03 Dec 2021 18:15:17 +0100 Message-Id: <871r2tvcd6.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #52243 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: forcemerge 52243 42431 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 (---) forcemerge 52243 42431 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 06 11:20:47 2022 Received: (at control) by debbugs.gnu.org; 6 Mar 2022 16:20:47 +0000 Received: from localhost ([127.0.0.1]:51599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQtcl-0003nY-0L for submit@debbugs.gnu.org; Sun, 06 Mar 2022 11:20:47 -0500 Received: from quimby.gnus.org ([95.216.78.240]:46092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQtci-0003nB-V4 for control@debbugs.gnu.org; Sun, 06 Mar 2022 11:20:45 -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=j9+C2TswZEAzQGWcDydnbL3bOkmjRyxqIlTGvGx4nKY=; b=eT0V+ACDlujP8zRevNe3JacmGX 3xIr2LfX/iVocCSSWLrvnYoZmfhZFxhwpdHyfWslau0tloLxMZAOQtwwiQ1PP9cevR5DGAuXZJV3X V9Bwjf1iWMc4VotWakxq4lP47n1UKDMYiLPNDwKui0upJWPFskEVm/fnkhsNhS7mZlvk=; 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 1nQtcb-0007Nr-DY for control@debbugs.gnu.org; Sun, 06 Mar 2022 17:20:39 +0100 Date: Sun, 06 Mar 2022 17:20:35 +0100 Message-Id: <87a6e3f3xo.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54271 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: forcemerge 54271 42431 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 (---) forcemerge 54271 42431 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 06 21:28:29 2022 Received: (at control) by debbugs.gnu.org; 7 Mar 2022 02:28:29 +0000 Received: from localhost ([127.0.0.1]:52006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nR36r-0001tI-3q for submit@debbugs.gnu.org; Sun, 06 Mar 2022 21:28:29 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nR36p-0001st-D3 for control@debbugs.gnu.org; Sun, 06 Mar 2022 21:28:27 -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=/mTqZcslmKYpVSOmy5MZvvFPWvf0mWOFvG/SjF3xTgw=; b=HNREDDPCpxv9GX9AvbODRhpBKl DMKSOaOC8o49nFzmnNSOsRgiA+2PO4ma0xyTnHBZ52ZEDyRJk0JFVCQxgUXfCajIPGUPI16c9QsWv IFj36mDMC1zieEJ38kFNE23WLVCC2gTHTLD6TbazVg8q906j2LSWGgoP5audMcuDnRr0=; 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 1nR36h-0004T1-Sl for control@debbugs.gnu.org; Mon, 07 Mar 2022 03:28:21 +0100 Date: Mon, 07 Mar 2022 03:28:19 +0100 Message-Id: <878rtmebss.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54271 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 54271 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 54271 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 02:41:50 2022 Received: (at control) by debbugs.gnu.org; 13 Oct 2022 06:41:50 +0000 Received: from localhost ([127.0.0.1]:59124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirug-0001Gv-18 for submit@debbugs.gnu.org; Thu, 13 Oct 2022 02:41:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirue-0001Gi-DQ for control@debbugs.gnu.org; Thu, 13 Oct 2022 02:41:48 -0400 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=E7ZI+EuLD1x5Ua35oKzDQuhXuKsIRc1cSSaZNVeRzmk=; b=tf4AXDwEvwfBTrxuHHQGZ81AP/ 1p26imSI31FHOjGZQ56oIbyIH1r52TbHfLsG/OOaKBCY6YDOAEDIOZWlDg+9bFGeBSHrfD1xUEC1x OMgAucLT5xd15CWGYFSKvLRwohODhMZLCTaAlYobbohC2dtgPlobcWW955pQ6/prYmV8=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiruW-0005MF-Gf for control@debbugs.gnu.org; Thu, 13 Oct 2022 08:41:42 +0200 Date: Thu, 13 Oct 2022 08:41:36 +0200 Message-Id: <878rlk9qe7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42431 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: unarchive 42431 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 (---) unarchive 42431 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 02:42:04 2022 Received: (at control) by debbugs.gnu.org; 13 Oct 2022 06:42:04 +0000 Received: from localhost ([127.0.0.1]:59130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiruu-0001I5-AM for submit@debbugs.gnu.org; Thu, 13 Oct 2022 02:42:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirus-0001HC-E6 for control@debbugs.gnu.org; Thu, 13 Oct 2022 02:42:02 -0400 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=ZhvDrcovcmQlrAM2UYRwEBJzdLI53LUVe5MnWDqyoPw=; b=R13qefdSZyIPYkhMXRFTmtoH51 icj/uAygu8FObD7iQJripMkPzKvr36ZcQo+Ikub0oaubuaq0T6qC0y8k1zqPiuKPPvHKMkA/9kPzE lWY9xwwTvT3YAnQAF9p768TFrEEAJxXc9+QAc4Fh6qI6AeSG5aqM5rSlwbwXcZsX3pPA=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiruk-0005Oa-IN for control@debbugs.gnu.org; Thu, 13 Oct 2022 08:41:56 +0200 Date: Thu, 13 Oct 2022 08:41:54 +0200 Message-Id: <877d149qdp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42431 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: unmerge 42431 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 (---) unmerge 42431 quit From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 07:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Paul Eggert , michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.166564445124190 (code B ref 42431); Thu, 13 Oct 2022 07:01:01 +0000 Received: (at 42431) by debbugs.gnu.org; 13 Oct 2022 07:00:51 +0000 Received: from localhost ([127.0.0.1]:59218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oisD5-0006I6-8Y for submit@debbugs.gnu.org; Thu, 13 Oct 2022 03:00:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oisD3-0006DS-Bi for 42431@debbugs.gnu.org; Thu, 13 Oct 2022 03:00:50 -0400 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:Date:References: In-Reply-To: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=dFS+tgWGCZMIpddotLyuwijsjWCu3yv34gTpIUxq6Ic=; b=LDv8MCaCm7zfTs1US/stSNsGYy tB7YGKafZ+DFNscCYJo/P1VUT8h5Fw5D21IhX1BsolQg/lQYH4z12NEOrPSlYRVN+s22WwvVMIgap QU7AiHEEXMN2CjnB0pgYw/OB9BYZuoP/8MLrt2jvgkA8wuVfQJWuR2YuXIzbNFXZqAW4=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oisCt-0005Tt-Dh; Thu, 13 Oct 2022 09:00:41 +0200 From: Lars Ingebrigtsen In-Reply-To: <87lfiow3tq.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 Aug 2020 11:45:05 +0200") References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> <87pn80w49u.fsf@gnus.org> <87lfiow3tq.fsf@gnus.org> X-Now-Playing: Rival Consoles's _Kid Velo_: "Guitari" Date: Thu, 13 Oct 2022 09:00:38 +0200 Message-ID: <87wn948ay1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: Lars Ingebrigtsen writes: > @@ -4826, 7 +4826, 6 @@ because (1) it preserves some marker positions and (2) it puts less data > if (!NILP (visit) && current_buffer->modtime.tv_nsec < 0) > { > /* Signal an error if visiting a file [...] 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-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 (---) Lars Ingebrigtsen writes: > @@ -4826,7 +4826,6 @@ because (1) it preserves some marker positions and (2) it puts less data > if (!NILP (visit) && current_buffer->modtime.tv_nsec < 0) > { > /* Signal an error if visiting a file that could not be opened. */ > - report_file_errno ("Opening input file", orig_filename, save_errno); > } I've now fixed this in Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 03:00:54 2022 Received: (at control) by debbugs.gnu.org; 13 Oct 2022 07:00:54 +0000 Received: from localhost ([127.0.0.1]:59221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oisD8-0006IP-Gv for submit@debbugs.gnu.org; Thu, 13 Oct 2022 03:00:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oisD6-0006Hv-Hm for control@debbugs.gnu.org; Thu, 13 Oct 2022 03:00:52 -0400 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=21RuJXNU4CEIdbyJ9DoNV/VA1fe8Qu4ksa8dqL0+6eo=; b=kQfqVGx9SBlTk7y0u9KfNTv0g3 CqwVrUybumOV6U1nOuVgW1cObFR7b060C0rdKPYlfecrVE0FgCGm5VcTLLaPXszXujDsvZLrtPIZS 6XKavhIYwfpXUVEz8djXkaAdGiP+fbCeM5z7fF73ZT3hIeFYLFwaAnAEz4wtmbyYfEzg=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oisCy-0005U2-QC for control@debbugs.gnu.org; Thu, 13 Oct 2022 09:00:46 +0200 Date: Thu, 13 Oct 2022 09:00:44 +0200 Message-Id: <87v8oo8axv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42431 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 42431 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 42431 29.1 quit From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 08:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen , Eli Zaretskii Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.16656510714712 (code B ref 42431); Thu, 13 Oct 2022 08:52:02 +0000 Received: (at 42431) by debbugs.gnu.org; 13 Oct 2022 08:51:11 +0000 Received: from localhost ([127.0.0.1]:59503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oitvr-0001Dv-Du for submit@debbugs.gnu.org; Thu, 13 Oct 2022 04:51:11 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oitvn-0001DP-Hd for 42431@debbugs.gnu.org; Thu, 13 Oct 2022 04:51:09 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1535F160056; Thu, 13 Oct 2022 01:51:02 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DnIbGbhJo3uJ; Thu, 13 Oct 2022 01:51:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E525C16007F; Thu, 13 Oct 2022 01:51:00 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu E525C16007F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1665651060; bh=+TZ4smxSXqfYdMUHfrdm0LHf1YuFmEBl1iQ5IC1Qy7U=; h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:From; b=JioiGr5j4AXt0nMCf0zMPKf05e1gzq/Ax7+seO8HOR6KnsO+X5Aa9pPTcX1caoorC vh8NbkgYvhWDZh/XTGvd7KKVoOtJhA0MsaqR0eVMez3MUjX71wgQ3GeJ8WWtFW5ZN+ gfYHD98IvocJzC2MNJ22WFyMKIwADdX/yGNInKGY= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UELAyPCR44a7; Thu, 13 Oct 2022 01:51:00 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B680F160075; Thu, 13 Oct 2022 01:51:00 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------BlqZtnmCeDIn070R3LBa7pl5" Message-ID: Date: Thu, 13 Oct 2022 01:51:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> <87pn80w49u.fsf@gnus.org> <87lfiow3tq.fsf@gnus.org> <87wn948ay1.fsf@gnus.org> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <87wn948ay1.fsf@gnus.org> X-Spam-Score: -4.1 (----) 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: -5.1 (-----) This is a multi-part message in MIME format. --------------BlqZtnmCeDIn070R3LBa7pl5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2022-10-13 00:00, Lars Ingebrigtsen wrote: > I've now fixed this in Emacs 29. Thanks, I simplified the fileio.c fix by installing the attached further patch. --------------BlqZtnmCeDIn070R3LBa7pl5 Content-Type: text/x-patch; charset=UTF-8; name="0001-Simplify-recent-File-exists-fix.patch" Content-Disposition: attachment; filename="0001-Simplify-recent-File-exists-fix.patch" Content-Transfer-Encoding: base64 RnJvbSA5N2RlMjczZGNhOGQ5NzAzOTEzMWY5ZDNmMjliMjgyMGI1NDk3ODA1IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUaHUsIDEzIE9jdCAyMDIyIDAxOjQ4OjEwIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gU2ltcGxpZnkgcmVjZW50ICJGaWxlIGV4aXN0cyIgZml4CgoqIHNyYy9maWxlaW8uYyAo Rmluc2VydF9maWxlX2NvbnRlbnRzKToKU2ltcGxpZnkgcHJldmlvdXMgY2hhbmdlIHRoYXQg Zml4ZWQgYnVnIzQyNDMxLgotLS0KIHNyYy9maWxlaW8uYyB8IDIgKy0KIDEgZmlsZSBjaGFu Z2VkLCAxIGluc2VydGlvbigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL3NyYy9m aWxlaW8uYyBiL3NyYy9maWxlaW8uYwppbmRleCBhMjM4ODg5ODAzLi40OTU1M2YzYzkxIDEw MDY0NAotLS0gYS9zcmMvZmlsZWlvLmMKKysrIGIvc3JjL2ZpbGVpby5jCkBAIC01MDAwLDcg KzUwMDAsNyBAQCBiZWNhdXNlICgxKSBpdCBwcmVzZXJ2ZXMgc29tZSBtYXJrZXIgcG9zaXRp b25zIChpbiB1bmNoYW5nZWQgcG9ydGlvbnMKICAgICAgIHVuYmluZF90byAoY291bnQxLCBR bmlsKTsKICAgICB9CiAKLSAgaWYgKE5JTFAgKGhhbmRsZXIpICYmICFOSUxQICh2aXNpdCkg JiYgY3VycmVudF9idWZmZXItPm1vZHRpbWUudHZfbnNlYyA8IDApCisgIGlmIChzYXZlX2Vy cm5vICE9IDApCiAgICAgewogICAgICAgLyogU2lnbmFsIGFuIGVycm9yIGlmIHZpc2l0aW5n IGEgZmlsZSB0aGF0IGNvdWxkIG5vdCBiZSBvcGVuZWQuICAqLwogICAgICAgcmVwb3J0X2Zp bGVfZXJybm8gKCJPcGVuaW5nIGlucHV0IGZpbGUiLCBvcmlnX2ZpbGVuYW1lLCBzYXZlX2Vy cm5vKTsKLS0gCjIuMzQuMQoK --------------BlqZtnmCeDIn070R3LBa7pl5-- From unknown Tue Jun 17 01:47:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 10:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: larsi@gnus.org, michael.albinus@gmx.de, 42431@debbugs.gnu.org Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.166565736924483 (code B ref 42431); Thu, 13 Oct 2022 10:37:01 +0000 Received: (at 42431) by debbugs.gnu.org; 13 Oct 2022 10:36:09 +0000 Received: from localhost ([127.0.0.1]:59699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oivZQ-0006Mo-UZ for submit@debbugs.gnu.org; Thu, 13 Oct 2022 06:36:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oivZP-0006MP-Ap for 42431@debbugs.gnu.org; Thu, 13 Oct 2022 06:36:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oivZ1-0000Gf-Qm; Thu, 13 Oct 2022 06:35:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SxpEOmJQnvEj4psboydo9YexnZHWEMy9TaGZufcwEmM=; b=MhSrCf0muJ3T OCImpng8YZmtNDg0a6m0hO3+nCADu/QEUVp5A3NVzhbub5aMlrvb2325dUmJJyZTL0Il+pc18XvYK 1PG6nc9kooCEVIkAvNWva+5FwDD/oHvpeu/HEMaZDvDv+3l4R6nSiddXpwQGbMSZBCkjkGtk8t2UF lYtErTHthPFNwb4049q0b53oG6F4M/YsngZIE9bKsRDVCa7wAXZDnb/RRtE479E77vdqk8fB18MA1 NjfIL+2emBD+4Jtnz3DXTlq7KYCu3mFTIMJZh2ld+g59HcN3AGySvZrC92NxYQC6VumZpFKaTYR1r DW1Rd0cfII0n+x9c7FgCwQ==; Received: from [87.69.77.57] (port=3220 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oivYo-0007ib-O6; Thu, 13 Oct 2022 06:35:37 -0400 Date: Thu, 13 Oct 2022 13:35:44 +0300 Message-Id: <83sfjs9fjz.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Paul Eggert on Thu, 13 Oct 2022 01:51:00 -0700) References: <87v9ijl2ol.fsf@gnus.org> <87blk04mw8.fsf@gnus.org> <83eeoh7f68.fsf@gnu.org> <87a6z55u7j.fsf@gnus.org> <83y2mp5te0.fsf@gnu.org> <87pn80w49u.fsf@gnus.org> <87lfiow3tq.fsf@gnus.org> <87wn948ay1.fsf@gnus.org> X-Spam-Score: -2.3 (--) 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 (---) > Date: Thu, 13 Oct 2022 01:51:00 -0700 > Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org > From: Paul Eggert > > --- a/src/fileio.c > +++ b/src/fileio.c > @@ -5000,7 +5000,7 @@ because (1) it preserves some marker positions (in unchanged portions > unbind_to (count1, Qnil); > } > > - if (NILP (handler) && !NILP (visit) && current_buffer->modtime.tv_nsec < 0) > + if (save_errno != 0) > { > /* Signal an error if visiting a file that could not be opened. */ > report_file_errno ("Opening input file", orig_filename, save_errno); Why would we want to signal an error when VISIT is nil? We didn't before.