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#68913: [PATCH] Fix browse-url-url-at-point so that scheme does not duplicate Date: Sat, 03 Feb 2024 21:49:33 +0200 Message-ID: <86o7cx2ur6.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68913@debbugs.gnu.org To: Kenta USAMI Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 03 20:50:17 2024 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 1rWM1p-0003qG-If for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Feb 2024 20:50:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWM1R-0003gV-Bq; Sat, 03 Feb 2024 14:49:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWM1P-0003gI-G4 for bug-gnu-emacs@gnu.org; Sat, 03 Feb 2024 14:49:51 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rWM1P-00073w-80 for bug-gnu-emacs@gnu.org; Sat, 03 Feb 2024 14:49:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rWM1a-0004OL-EG for bug-gnu-emacs@gnu.org; Sat, 03 Feb 2024 14:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Feb 2024 19:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68913 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68913-submit@debbugs.gnu.org id=B68913.170698979616865 (code B ref 68913); Sat, 03 Feb 2024 19:50:02 +0000 Original-Received: (at 68913) by debbugs.gnu.org; 3 Feb 2024 19:49:56 +0000 Original-Received: from localhost ([127.0.0.1]:47120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWM1U-0004Nw-A3 for submit@debbugs.gnu.org; Sat, 03 Feb 2024 14:49:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWM1S-0004Nl-PF for 68913@debbugs.gnu.org; Sat, 03 Feb 2024 14:49:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWM1B-00072Y-Ea; Sat, 03 Feb 2024 14:49:37 -0500 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=CERCg9I/5b6uJhkrHTOwiyfmoEjzxXKyWuAv2AR5ghk=; b=QClZkTp9FXik ym271kBCXlyexJUqVJyDUy5AERulg1ijM/7jbGqgYdG1AIai0s17y3OgPmwWB2ee3L1EJs2D4jz4A 6rFMZg1hB8wmCLXnkyT1juzKaCi9Zfa86uyJMnwYEkfK70dCi8FgaH5fe65zFGvG7nbBGOAb8V9LS Ouz1vYdyKsOKRfOl+TbI67+SXGlKuSBeHd+wY+ud4Ku1EWJ1jGimPSe3TNPloELjuWYNXAcA5zOAW 2UCJFDiBqiFRkDe3i/NNgU9jfacRfbV/G6rhDgntUhhpC0cgIbfLAqw47fldwCcXUzro5nLibnDm/ kALtZ7h9FkN9qzKwHulkDg==; In-Reply-To: (message from Kenta USAMI on Sun, 4 Feb 2024 04:17:29 +0900) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279379 Archived-At: > From: Kenta USAMI > Date: Sun, 4 Feb 2024 04:17:29 +0900 > > In the text below, move point to the second half of the URL and > execute M-x browse-url-at-point. > > ``` > [![Emacs]( > https://www.gnu.org/software/emacs/images/emacs.png)](https://www.gnu.org/software/emacs/download.html > ) > ``` > > Firefox and Chromium-based browsers appear to open the URL "https// > www.gnu.org/software/emacs/download.html". > It seems that the ":" following https is deleted, but the browser actually > normalizes > the URL with the duplicate scheme "http://https://". In what version of Emacs did you see that? And on what OS? Also, please post a complete recipe: do I type the above into the *scratch* buffer, or into some other buffer, and what should be the major-mode of that buffer? Also, is the part inside [...] that precedes the URL important for reproducing the problem? Thanks.