From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58464: 28.1; browse-url-emacs doesn't work for local files on Windows Date: Wed, 12 Oct 2022 16:13:58 +0300 Message-ID: <83czaxchgp.fsf@gnu.org> References: <82k055fsos.fsf@gmail.com> <87y1tlcn7u.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pquessev@gmail.com, 58464@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 15:15:15 2022 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 1oibZr-0004LI-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 15:15:15 +0200 Original-Received: from localhost ([::1]:36210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oibZp-0003wH-O7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 09:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oibZe-0003tj-FQ for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 09:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oibZe-0008MU-31 for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 09:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oibZd-0000Qq-SY for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 09:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2022 13:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58464 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58464-submit@debbugs.gnu.org id=B58464.16655804471556 (code B ref 58464); Wed, 12 Oct 2022 13:15:01 +0000 Original-Received: (at 58464) by debbugs.gnu.org; 12 Oct 2022 13:14:07 +0000 Original-Received: from localhost ([127.0.0.1]:56110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibYl-0000P1-0V for submit@debbugs.gnu.org; Wed, 12 Oct 2022 09:14:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibYj-0000OQ-6q for 58464@debbugs.gnu.org; Wed, 12 Oct 2022 09:14:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oibYd-0008Ej-UO; Wed, 12 Oct 2022 09:13:59 -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=86Ym9+doAbKa+SYtspnl0JzVHTNgSrvXxY+TZ/d3isw=; b=YN1AxrJElFO3 3wcPoyYC02R0A8h6o3ywhjkrvmXmc+XCZHp+wQeESiGo9ARLbCI4bU/hIoNA2GK4vq/3ky04B2UnJ Hs9oMFiUWIO5+QJvyN5AIZDW025Jwt0VvjP6DsI7pHbWpZuuXl+VBo3UBeNe+JaBPwXEsYwm9hShX 3MIEO6gZ0Eqn2mdaTNJkNNcdy+P6AuD2MQJf2N+spS1R5fTjFE+KWoMg/XlLQeLH1bKUbMacRNo7g 8QFFiBV9nHpHFozw5gjT9TlqELbAiZeBcU6VRbBRTMUbBRmfQaDR/ALhsErx8C5nddVFdw0JNBkPx VOdkrjwRRVq3zqNbBnnN7g==; Original-Received: from [87.69.77.57] (port=3708 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 1oibYQ-000182-TG; Wed, 12 Oct 2022 09:13:59 -0400 In-Reply-To: <87y1tlcn7u.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 12 Oct 2022 13:09:41 +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:245204 Archived-At: > Cc: 58464@debbugs.gnu.org > From: Lars Ingebrigtsen > Date: Wed, 12 Oct 2022 13:09:41 +0200 > > Pascal Quesseveur writes: > > > emacs -Q > > (browse-url-emacs "file://C:/Windows/win.ini") -> Emacs hangs, nothing > > is displayed, C-g > > That's the wrong syntax, but Emacs shouldn't hang... Emacs 29 doesn't hang, at least on my system. > > (browse-url-emacs "file:///C:/Windows/win.ini") -> file content is > > displayed, Message buffer contains: > > > > File exists, but cannot be read > > #> > > So it works fine when you use the right syntax for the URL, but the > problem is the misleading message? No, the misleading message is likely just a symptom of the root cause. The root cause is that the buffer-file-name is set incorrectly, and likewise the default-directory. It could be that the original problem (with displaying images given by the file:// URL) doesn't work, but that is not yet certain, AFAIU.