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 17:25:08 +0300 Message-ID: <83sfjtazln.fsf@gnu.org> References: <82k055fsos.fsf@gmail.com> <87y1tlcn7u.fsf@gnus.org> <83czaxchgp.fsf@gnu.org> <87mta1b2p9.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21312"; 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 16:26:17 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 1oicga-0005LO-G3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 16:26:16 +0200 Original-Received: from localhost ([::1]:37294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oicgZ-0007hR-0r for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 10:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oicgM-0007Zp-7j for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59091) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oicgL-00055w-Ve for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oicgL-0007H6-Ry for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:26: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 14:26: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.166558470427872 (code B ref 58464); Wed, 12 Oct 2022 14:26:01 +0000 Original-Received: (at 58464) by debbugs.gnu.org; 12 Oct 2022 14:25:04 +0000 Original-Received: from localhost ([127.0.0.1]:58168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicfQ-0007FR-62 for submit@debbugs.gnu.org; Wed, 12 Oct 2022 10:25:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicfN-0007E9-Rl for 58464@debbugs.gnu.org; Wed, 12 Oct 2022 10:25:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oicfI-0004YX-LG; Wed, 12 Oct 2022 10:24: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=LkOFAkGpMmIMUe9fggswONeo7wnf/P1FswwYuXtze6E=; b=E8rVe3gVC1vP 0eUN/FhkC3RwAHEO+v2bBOg1C3L3YtsHIJO8PjYj5Oyu3SeqaEMyn2+FFlhTkufnRU31CXGGkmaYK /vwe4bwsiLqAwHlfMvzL0aDfKHwZwP/8+rTt08GEQVFCRuNzxb8QwEJV0HbtrRihWCKcefLmwjNkA QCNc3qnVsmsasSsRl0K7vLxHPQmlZlP1rxdK8TmpUyda6nW1cza1ClOdiVB/56qqCDof4fITR7gmz +YRlgqUMQHag3bL1ds+qAI6e+3e/1+BLdS3AHrbs8TGaVW4vDwMbiZh/X+OGEzxJw6+7rYN94+s4r vLXnBbfQTsRgKHh3zZX8yQ==; Original-Received: from [87.69.77.57] (port=4135 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 1oicfI-0000NL-33; Wed, 12 Oct 2022 10:24:56 -0400 In-Reply-To: <87mta1b2p9.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 12 Oct 2022 15:18:10 +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:245215 Archived-At: > From: Lars Ingebrigtsen > Cc: pquessev@gmail.com, 58464@debbugs.gnu.org > Date: Wed, 12 Oct 2022 15:18:10 +0200 > > Eli Zaretskii writes: > > > 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. > > Well... have a look at bug#bug#42431, it analyses the problem. (Which > is that any usage if insert-file-contents that doesn't reference an > actual file on the file system will signal an error, and that's a > mistake, I think?) So why isn't what I proposed there TRT? We _know_ we are visiting a local file, so why not convert the file:// URL to a local file name before doing anything with it?