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#74132: 31.0.50; thing-at-pt, ffap and Github markdown Date: Sat, 09 Nov 2024 19:59:15 +0200 Message-ID: <86wmhcl24s.fsf@gnu.org> References: <20241031.160649.1619221016115134543.enometh@meer.net> <86msi8n1jd.fsf@gnu.org> <864j4gmkou.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39124"; mail-complaints-to="usenet@ciao.gmane.io" Cc: enometh@meer.net, 74132@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 09 19:00:20 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 1t9pky-0009zM-6x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Nov 2024 19:00:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9pkj-0003tB-TV; Sat, 09 Nov 2024 13:00:06 -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 1t9pkg-0003qG-Uw for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 13:00:03 -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 1t9pkg-0008NL-Lk for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 13:00:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=YuVHa9wsCXYDAOdjPb1+BAbkHdL/wfgKFkoy1qR6aHg=; b=MrDlvCf1YnRQLFCvOWY9p2FCgWV1y2rkF3E+gzCmhI9UV0pONl6meTU2TBkMEudovgDNoN/L2kzfzDvNNTBsFabPocax6MovsAkEYyvr6NvoygXusb9ekEydAl3Vek7mJfFMerfpKjw8a5yIaBAUkfW2hXvrEp3UZYT/JHNM2Po37NInSPeGuwXwku6PR8FXD7oksIGH5JBcdHRVL+YlzJbPb+OSJ2yG/WmDLgyk4EfG8m62c3XbFfNL/VYUZSKBl+A2tFEIvLzhkMXfpzasPNqlLC4axWcFdS04tBRJZzKQ3yVbr/0kWA1iDJ/QZvX4L9zr6Shmtnnm0ZNETFgqpA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9pkg-0007ub-1Y for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 13:00: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, 09 Nov 2024 18:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74132 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74132-submit@debbugs.gnu.org id=B74132.173117517030342 (code B ref 74132); Sat, 09 Nov 2024 18:00:01 +0000 Original-Received: (at 74132) by debbugs.gnu.org; 9 Nov 2024 17:59:30 +0000 Original-Received: from localhost ([127.0.0.1]:54392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9pk9-0007tK-UL for submit@debbugs.gnu.org; Sat, 09 Nov 2024 12:59:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9pk6-0007t3-F6 for 74132@debbugs.gnu.org; Sat, 09 Nov 2024 12:59:27 -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 1t9pjz-0008Lf-Vy; Sat, 09 Nov 2024 12:59:20 -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=YuVHa9wsCXYDAOdjPb1+BAbkHdL/wfgKFkoy1qR6aHg=; b=KBMaBaAZlU+n CeJvwa2YYLMkYY6c6mwgqRWJyN8Buxe8x3191cVbw1i1qo2UFwS1Ui+S7Xl+K4iKLcb4WDxQCQlm+ JyhGEadMe2jtZmqLzwGixLoWQj31zruAwz3uat47YVfXMEcxLpx5br2wY0eMh4CcgTjo3x4fJ4Kaf YdeM19QSts1nGmiVLfbfyOkyNHwjt/pH/UyS6rfKHQTF6v/JPlQAQMwGDJRIRD0Ij+A7v6JzCId8P 4dyaJwNljWB3KR4ZMuTrX+UNfAzL0BEOBcdkSuissY3oeMP/SL9QUMTe3zTQxMMo/ObCGvQyLVsJp PjdXhnx8L845gHkDdlDGZQ==; In-Reply-To: (message from Stefan Monnier on Sat, 09 Nov 2024 11:59:44 -0500) 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:295151 Archived-At: > From: Stefan Monnier > Cc: enometh@meer.net, 74132@debbugs.gnu.org > Date: Sat, 09 Nov 2024 11:59:44 -0500 > > >> > What will this do to URLs such as > >> > http://web.archive.org/web/20240221082647/https://www.imdb.com/ > >> Depends where point is: if it's after the `https`, then you get the > >> "sub-URL" and if it's on or before the `https` then you get the whole URL. > > Exactly. This could be considered a bug, because the actual URL is > > the entire thing. > > We could refine our heuristic to as to keep looking backward when the > apparent beginning of the URL is immediately preceded by a /, of course, > but I'm not sure it's worth the trouble. The problem is that AFAIU '/' is not the only such character. It could also be '=', I think (as in query URLs), and perhaps some others. > AFAICT any behavior we come up with will have such cases. Yes, which is why I said I didn't know how to solve this. > The [...](...) case mentioned by Madhu is a fairly common one IME, so > I'm in favor of fixing it. Not universally so, IME. It is common in Markdown files and perhaps also in Org. So maybe this should be fine-tuned by major modes?