From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60213: [PATCH] Copy Info-goto-node-web URL as kill with prefix argument Date: Wed, 21 Dec 2022 10:30:44 +0200 Organization: LINKOV.NET Message-ID: <86zgbh87zn.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29295"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 60213@debbugs.gnu.org, Drew Adams To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 21 10:00:16 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 1p7uxS-0007Ro-RJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Dec 2022 10:00:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7uxL-0007IK-OQ; Wed, 21 Dec 2022 04:00:08 -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 1p7uxI-0007FM-JD for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 04:00:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7uxG-0007tH-5M for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 04:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7uxF-00048X-Vi for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 04:00:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Dec 2022 09:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60213 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60213-submit@debbugs.gnu.org id=B60213.167161317815870 (code B ref 60213); Wed, 21 Dec 2022 09:00:01 +0000 Original-Received: (at 60213) by debbugs.gnu.org; 21 Dec 2022 08:59:38 +0000 Original-Received: from localhost ([127.0.0.1]:50452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7uws-00047u-Cf for submit@debbugs.gnu.org; Wed, 21 Dec 2022 03:59:38 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:33565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7uwq-00047m-II for 60213@debbugs.gnu.org; Wed, 21 Dec 2022 03:59:37 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 6DD4740012; Wed, 21 Dec 2022 08:59:28 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Tue, 20 Dec 2022 19:57:23 -0600") 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:251575 Archived-At: >> What about using the prefix arg to open the URL in a separate browser >> window? After all, that's the behavior of `Info-goto-node-web' (the >> original). > > That can be customized in `browse-url', so I'd personally use the prefix > argument for something more useful. But I won't protest if someone > wants to do that. It would make sense to use eww by default to browse an external Info in the same Emacs window. And with a prefix argument open that Info in an external browser. > Anyways, we could consider moving the functionality I want to a positive > prefix argument of `Info-copy-current-node-name'. Or a negative prefix > argument of `Info-goto-node-web'. I don't really care which it is, as > long as its somewhere. Using a different prefix argument for `w' (`Info-copy-current-node-name') makes sense as well like in `dired-copy-filename-as-kill' where the prefix argument supports different values. Another variant is to add new key 'W' for URL copying. OTOH, 'W' has a nice mnemonic to open a web browser.