From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson
 <jidanni@jidanni.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 05:39:35 +0800
Message-ID: <874klbn6g8.5.fsf@jidanni.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="11290"; mail-complaints-to="usenet@ciao.gmane.io"
To: 44895@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 23:11:27 2020
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1kiPU7-0002qM-7a
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 23:11:27 +0100
Original-Received: from localhost ([::1]:55640 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1kiPU6-0005xh-3Y
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 17:11:26 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39962)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1kiPTj-0005w0-6I
 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 17:11:03 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:59787)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1kiPTi-0004cW-UG
 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 17:11:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1kiPTi-0007nS-PR
 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 17:11:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson
 <jidanni@jidanni.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 26 Nov 2020 22:11:02 +0000
Resent-Message-ID: <handler.44895.B.160642860529876@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 44895
X-GNU-PR-Package: emacs
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.160642860529876
 (code B ref -1); Thu, 26 Nov 2020 22:11:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2020 22:10:05 +0000
Original-Received: from localhost ([127.0.0.1]:43098 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1kiPSm-0007ln-PZ
 for submit@debbugs.gnu.org; Thu, 26 Nov 2020 17:10:05 -0500
Original-Received: from lists.gnu.org ([209.51.188.17]:54930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@jidanni.org>) id 1kiPSi-0007l6-Iz
 for submit@debbugs.gnu.org; Thu, 26 Nov 2020 17:10:00 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39788)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@jidanni.org>)
 id 1kiPSi-0005l1-EU
 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 17:10:00 -0500
Original-Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]:6815)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@jidanni.org>)
 id 1kiPSg-00045C-JE
 for bug-gnu-emacs@gnu.org; Thu, 26 Nov 2020 17:10:00 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org
Original-Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id C4DD6121273
 for <bug-gnu-emacs@gnu.org>; Thu, 26 Nov 2020 22:09:53 +0000 (UTC)
Original-Received: from pdx1-sub0-mail-a52.g.dreamhost.com
 (100-96-9-157.trex.outbound.svc.cluster.local [100.96.9.157])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 6E1C0121CF1
 for <bug-gnu-emacs@gnu.org>; Thu, 26 Nov 2020 22:09:48 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org
Original-Received: from pdx1-sub0-mail-a52.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.18.10); Thu, 26 Nov 2020 22:09:53 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org
X-MailChannels-Auth-Id: dreamhost
X-Army-Abortive: 0e5c987a33d48f2d_1606428588833_2933599789
X-MC-Loop-Signature: 1606428588833:4009764316
X-MC-Ingress-Time: 1606428588833
Original-Received: from pdx1-sub0-mail-a52.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a52.g.dreamhost.com (Postfix) with ESMTP id E2F577F140
 for <bug-gnu-emacs@gnu.org>; Thu, 26 Nov 2020 14:09:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 jidanni.org; bh=b7c52ui74IYONXQC5Iovc5hFK+8=; b=lglV8cX4lyD/AZo6
 M1yjDkc/A6gf6mAFcxAWvF6DDajhYoLG4L7n9j7RmaFxHezaIL9DE5qg/mIjcDdM
 +kUxSJxF+MK6PEDbNXf0u7+pzBWKIdtjS+Z0d2r71Nu/Gu8i8+/gDdzHA8QdUXcw
 eHENBJgkk55WZ66q58vO0yMqke4=
Original-Received: from jidanni.org (114-41-11-247.dynamic-ip.hinet.net [114.41.11.247])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@jidanni.org)
 by pdx1-sub0-mail-a52.g.dreamhost.com (Postfix) with ESMTPSA id 7DE757EFC3
 for <bug-gnu-emacs@gnu.org>; Thu, 26 Nov 2020 14:09:41 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a52
Received-SPF: pass client-ip=23.83.209.62; envelope-from=jidanni@jidanni.org; 
 helo=fossa.birch.relay.mailchannels.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:194375
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/194375>

c runs the command Info-copy-current-node-name.

That's great but not powerful enough.

Let's say I am reading
(info "(emacs) Optional Mode Line")
and stumble upon the fact that
   On graphical displays, the mode line is drawn as a 3D box.

I think, "This is great. I'll be sure to tell Mrs. Nerblefield. She'll
switch editors right away."

Well, most other programs' manuals have a "share" or "copy permalink"
button, most alas except for emacs.

> We don't keep track of our URLs. Google is your friend.

Sure, but I'll probably end up finding Bill Snortfield's 1989 copy of
that page, and sending her the link to that.

> Well, find the search result with "gnu.org" in it.

Yeah, but there are more than one.

> Well then don't use Google. Just copy and paste the page's text, and
> send her that.

Yes, but she used to work at Wikipedia, so she will ask for proof.

> Well, go to gnu.org and put the title in the search box. Maybe that
> will find the link you need.

Maybe, but how about instead, along with Info-copy-current-node-name,
there was a command, Info-copy-current-node-permalink, or just
Info-copy-permalink. that would copy it for us?

> We don't hardwire https URLs into the manual. Sorry.

Yes you do. (info "(emacs) Distrib") has plenty. And that page even
knows about itself:
   (1) This manual is itself...

As a bonus, mid-page anchor # fragments could even go directly to the
places in the page there online, just like they do in the offline manual.

emacs-version "27.1"