From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#74792: 29.2.50; goto-address-mode should support RET in special-mode buffers Date: Fri, 13 Dec 2024 01:20:45 +0200 Message-ID: <98c617e8-ee0d-4228-9bd4-411051427765@gutov.dev> References: <86ldwm2lko.fsf@gnu.org> <86ed2e2gnm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36606"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74792@debbugs.gnu.org To: Eli Zaretskii , Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 13 00:22:24 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 1tLsVj-0009MB-1f for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Dec 2024 00:22:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLsVS-0000Bo-FZ; Thu, 12 Dec 2024 18:22: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 1tLsVR-0000BZ-FJ for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 18:22:05 -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 1tLsVR-00062M-5m for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 18:22:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=BGHbVV3SNbf8N3ieswCAfjgWdfng+o8vAei9hnuk0uo=; b=m8myZpZFBHd8wIfq5z45tknmwLjWDEy57X+w4WNaqGqN158KC5xjvk+bXYJp4Yhcgqz1Zsfpfnvpu+7pY8F78clgTN0mNKo9nplErUtKTiJoyy7+g3xCC50Vp4S+jGTuNbwb9kNp/foenMQECtBh+RBVyNkAA+bjdPYYM46l6Q+rXv1YzVKKeWo+7gavfn+C8gtjl8LebCqTQFLXz+NWlsSGOEXyn8m6kgTte3bvjwsqt1E/PqPPWcXqHdJhP72l8HN3MVjU2vyjbDqsTzDPlKF5CRF68NbCtjxYoghKaisD3bqZZ/vcOoS0HZ2+2qvfa7yAdMa2Mqg1Hr/4nwDsew==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLsVP-0007tn-VK for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 18:22:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Dec 2024 23:22:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74792 X-GNU-PR-Package: emacs Original-Received: via spool by 74792-submit@debbugs.gnu.org id=B74792.173404566630174 (code B ref 74792); Thu, 12 Dec 2024 23:22:03 +0000 Original-Received: (at 74792) by debbugs.gnu.org; 12 Dec 2024 23:21:06 +0000 Original-Received: from localhost ([127.0.0.1]:40833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLsUP-0007qF-QS for submit@debbugs.gnu.org; Thu, 12 Dec 2024 18:21:06 -0500 Original-Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]:48189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLsUJ-0007pb-3e for 74792@debbugs.gnu.org; Thu, 12 Dec 2024 18:20:59 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3EFDF114015A; Thu, 12 Dec 2024 18:20:49 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 12 Dec 2024 18:20:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1734045649; x=1734132049; bh=BGHbVV3SNbf8N3ieswCAfjgWdfng+o8vAei9hnuk0uo=; b= AjYckKowsAz8383RjAuIgKqNBIO8ZOHxk9t/v7hRAaRHA+BiZt/n6YIKBx77RQ0c +hsW6G0nT5ctBw6jjWoSvix2Rkza+A8OntXffaa1z9FIcJagjG6+vkCBRusSlwNT ffQqwpOp8qQQ+DvWxwpUBulUnePJ+whvh2s1SPwy1L7L/+eKLznzgsy1rFveyKam Taj6SpGHjGn5hfPyQmAKokyAOGwBzlSwzs5fUkOJkVQHExPB2L1/u/sscX56zL59 io3d+7ulHuFsYiD57HSoM7+V4Z5jvk5+5g0/YxDU6jq30mnhpt9EbIjGcgDUBWFm 8vDtdsXVZvJvIx9tR76bmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734045649; x= 1734132049; bh=BGHbVV3SNbf8N3ieswCAfjgWdfng+o8vAei9hnuk0uo=; b=s 7TdIHjZwOBbfHu3rMoDYKve5MpKQDqrLO/0qTqV4hAFCG32Bc0Ky9dxrsy7tIjv9 HZTAlIGB0jtC7FHxvCUkVfkJAQVQvzRY6vWNOs7E98tJxzlnAYyKRv/TFMGRlrac 2ofDvroIr7m4XbE1HSS9r4I9r9dto7djS8YBfFy3v0rm43R9/SB9376Mw22gbyB7 IFYmmm2byj2NGSlOX/38YzYqTHVu5wfrRQBVJG6e7akyDzyxPujIuVCDsb5n+ljT 91vM7LV1NUqIcQN8luoktTONdR/M+yw/LhRGKV3DitkBTZTCace5TRdPpzvhbqKD mgTRAY/RzZ5BGaNFMeLrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeeigddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedt vddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep fedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpd hrtghpthhtohepshgsrghughhhsehjrghnvghsthhrvggvthdrtghomhdprhgtphhtthho peejgeejledvseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Dec 2024 18:20:47 -0500 (EST) Content-Language: en-US In-Reply-To: <86ed2e2gnm.fsf@gnu.org> 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:296952 Archived-At: On 11/12/2024 20:55, Eli Zaretskii wrote: >> > goto-address-mode binds C-c RET to goto-address-at-point when point is >> > on a URL or email address. In special-mode buffers (or maybe any >> > read-only buffer?) it should also bind RET while point is on the URL or >> > email address. >> >> I don't think it's a good idea, since many special-mode descendants >> bind RET to useful commands. For goto-address-at-point to override >> that would be a nuisance, I think. >> >> True, but when I've specifically moved point to a URL it is usually because I want to follow the URL, not do >> whatever is bound to RET in the mode. > > You cannot know that. E.g., point could be on a URL by chance, for > example, if a buffer starts with a URL. I also regularly try RET in such cases, notice it does not work, and then have to reach for the mouse. Just not often enough to look up and remember the alternative. >> But this sounds like something that may differ between users, so perhaps we could add this controlled by a >> defcustom? > > Let's first hear that enough people here think that it might sometimes > be a good thing. If so, then yes, a user option, by default off, > could be a way to introduce such behavior. The same option could affect other "C-c RET" bindings as well, such as browse-url-button-open in ansi-osc-hyperlink-map and bug-reference-push-button in bug-reference-map.