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#58464: 28.1; browse-url-emacs doesn't work for local files on Windows Date: Wed, 12 Oct 2022 16:42:49 +0200 Message-ID: <87edvdays6.fsf@gnus.org> References: <82k055fsos.fsf@gmail.com> <87y1tlcn7u.fsf@gnus.org> <83czaxchgp.fsf@gnu.org> <87mta1b2p9.fsf@gnus.org> <83sfjtazln.fsf@gnu.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="26760"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pquessev@gmail.com, 58464@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 16:59:00 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 1oidCF-0006jU-D4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 16:58:59 +0200 Original-Received: from localhost ([::1]:48390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oidCD-0008CN-RJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 10:58:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oicwp-0007ow-AV for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oicwo-0008Rc-DR for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oicwo-0007nq-9o for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:43: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: Wed, 12 Oct 2022 14:43:02 +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.166558578129988 (code B ref 58464); Wed, 12 Oct 2022 14:43:02 +0000 Original-Received: (at 58464) by debbugs.gnu.org; 12 Oct 2022 14:43:01 +0000 Original-Received: from localhost ([127.0.0.1]:58186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicwn-0007nV-57 for submit@debbugs.gnu.org; Wed, 12 Oct 2022 10:43:01 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicwm-0007n8-3K for 58464@debbugs.gnu.org; Wed, 12 Oct 2022 10:43:00 -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=6uTCIYfJG1qrxW8fz4jYza0c/wnk4qEvLEugHrdjZIw=; b=td23KXN0PAqe4jcgKhA9Cs3AMx fU58Ye4MpKFFlMJhGMNWiVGUi8Oo3TLI0zunSUxq4o8l4tVqRCEI50AFrzFQZ6qWPsFYoT1qTx89T 5vom5KuHXGzCMlZpZ+qRAL+8sP5uwVewyG+oQheJszO3xJOYz0SRbUxZIGdpv+OvkEd0=; Original-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 1oicwd-0007QY-Kh; Wed, 12 Oct 2022 16:42:53 +0200 In-Reply-To: <83sfjtazln.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Oct 2022 17:25:08 +0300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX6+fPm3NPTuai+ eWn///8U6o1RAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YKDA4oF9i/80EAAAG2SURBVDjLdVQLtuow CAxxAwzdQCAbuCb739sbbJvoeZqj1HaAGT61lP+OtOsHluHx2jD0hAYCCCmS3qhacAEe0zXQHg0g qFA5o6NCWriboliYhjLqZGMswBsvoqJB+y5Gy5cjW1bebR+c4G0WUJPgzCUf2avrKvktJcUU82Ll eJ7AnUpVa3djGVrE8ZEuApI8AjB2A3U4NHmgAJotwLJXIBUtu9AXcIT32VBkMBV8pdIjrAdpzeGG SJknYB49woUawtxXJljwdAJ9UF3snhGYM0blpXvg5qD4Pubs02LyuoHymL3nB30+OwVgA6PPcYxK Sw1tAVLJOuyv9kTQsOaRdUeUan3OYVgkIQc3iPLhESxe7xCDjWkjhSv7voHi6LBnYXE4ggu0C9FH Mjq7NtixtlRxltzYtPzK3IWcQ0bO++y9LlkvgN6S2nZP4lop0cwnax4wlXTSx5++XpM71ZWTMn2t 8t33b5uenj+A/Vg+gbBXw3LZxFrkW3VyR2p8DHdXsRzBFYjkkOPpqYqrnXt8AlyyIt3R2PNept2A tGokAreaNGXwT+AC2NBdbdH3l/l7HT/OL+d/Z5Yvh+QSnfwAAAAldEVYdGRhdGU6Y3JlYXRlADIw MjItMTAtMTJUMTQ6NDA6MjIrMDA6MDB/eJQiAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTEwLTEy VDE0OjQwOjIyKzAwOjAwDiUsngAAAABJRU5ErkJggg== X-Now-Playing: Devin and Gary's _Go Outside_: "Go Outside" 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:245219 Archived-At: Eli Zaretskii writes: >> 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? For local files, yes -- but it's a more general problem, and should (also) be fixed in general. (But also see bug#58302 -- browse-url-emacs shouldn't be calling these functions at all.)