From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Date: Tue, 28 Jul 2020 00:24:23 +0200 Message-ID: <87blk04mw8.fsf@gnus.org> References: <87v9ijl2ol.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37176"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Albinus To: 42431@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 28 00:25:18 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 1k0BYc-0009Xh-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jul 2020 00:25:18 +0200 Original-Received: from localhost ([::1]:57782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0BYb-0006KP-Eb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jul 2020 18:25:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0BYM-0006KJ-T8 for bug-gnu-emacs@gnu.org; Mon, 27 Jul 2020 18:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0BYM-0007kL-JZ for bug-gnu-emacs@gnu.org; Mon, 27 Jul 2020 18:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k0BYM-0002tt-Fr for bug-gnu-emacs@gnu.org; Mon, 27 Jul 2020 18:25:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 42431-submit@debbugs.gnu.org id=B42431.159588868311120 (code B ref 42431); Mon, 27 Jul 2020 22:25:02 +0000 Original-Received: (at 42431) by debbugs.gnu.org; 27 Jul 2020 22:24:43 +0000 Original-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 Original-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=; Original-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 In-Reply-To: <87v9ijl2ol.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 21:34:02 +0200") 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:183608 Archived-At: 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