From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pascal Quesseveur Newsgroups: gmane.emacs.devel Subject: Re: browse-url and URL handlers (MS-Windows) Date: Tue, 11 Oct 2022 12:04:51 +0200 Organization: Les Enchantements de Miraldra Message-ID: <82k056r7zw.fsf@gmail.com> References: <825yh1b5si.fsf@gmail.com> <87czb61xv1.fsf@gnu.org> Reply-To: pquessev@gmail.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt) To: emacs-devel@gnu.org Cancel-Lock: sha1:DnxqmxbSR351pNfwdqn1kUCD550= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 12:12:29 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oiCFR-0001eA-6s for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 12:12:29 +0200 Original-Received: from localhost ([::1]:56650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiCFP-0002oR-QP for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 06:12:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiC8F-0007Li-6c for emacs-devel@gnu.org; Tue, 11 Oct 2022 06:05:06 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:51848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiC8D-0006xE-BH for emacs-devel@gnu.org; Tue, 11 Oct 2022 06:05:02 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oiC8A-0002Id-TU for emacs-devel@gnu.org; Tue, 11 Oct 2022 12:04:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: PQsr Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 11 Oct 2022 06:10:51 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297470 Archived-At: Hello, In fact part of my problems comes from the fact that I was trying to open an URL pointing to a Windows local file. When the URL is of the form file://C:/some/file browse-url-emacs does not open the file even if it is a text file. >From https://en.wikipedia.org/wiki/File_URI_scheme it seems a correct form for a Windows local file is file:///C:/some/file (3 slashes). When I use this form browse-url-emacs allows to open some files, but always causes the following message: File exists, but cannot be read this although the file is read. Everything is not working properly. For example in the case of an image the buffer displays the contents of the file, but not the image. The messages displayed are: Type C-c C-c or C-c C-x to view the image as an image or hex. Cannot display image: ( *mm*-273075 1 8193) # I don't konw if this is because of the incorrectly reported read error when opening the file. When the file content is displayed in the buffer I can view the image with C-c C-c. -- Pascal Quesseveur pquessev@gmail.com