GNU bug report logs - #44895
Add Info-copy-permalink

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 26 Nov 2020 22:11:02 UTC

Severity: wishlist

Tags: patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44895 in the body.
You can then email your comments to 44895 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 26 Nov 2020 22:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 26 Nov 2020 22:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 05:39:35 +0800
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"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 26 Nov 2020 23:07:02 GMT) Full text and rfc822 format available.

Message #8 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>, 44895 <at> debbugs.gnu.org
Subject: RE: bug#44895: Add Info-copy-permalink
Date: Thu, 26 Nov 2020 15:06:02 -0800 (PST)
If you use Info+ then `G' (`Info-goto-node-web')
takes you to the Web version of the current node.

It uses function `Info-url-for-node' (also from
Info+) to get the URL for that.

,----
| Info-url-for-node is an interactive compiled Lisp function in
| ‘info+.el’.
| 
| (Info-url-for-node NODE)
| 
| Return a URL for NODE, a node in the GNU Emacs or Elisp manual.
| Alternatively, NODE can have the form (MANUAL)NODE, where MANUAL is
| "emacs" or "elisp" and NODE is the name of the node in that
| manual.  Empty NODE in (MANUAL) defaults to the `Top' node.
`----




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 26 Nov 2020 23:22:02 GMT) Full text and rfc822 format available.

Message #11 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 44895 <at> debbugs.gnu.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 07:20:56 +0800
If I have to use non-standard / non-default features to tell Mrs.
Nerblefield how great emacs is, then perhaps emacs is not that great.

>>>>> "DA" == Drew Adams <drew.adams <at> oracle.com> writes:
DA> If you use Info+ then `G' (`Info-goto-node-web')...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 00:30:02 GMT) Full text and rfc822 format available.

Message #14 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>
Cc: 44895 <at> debbugs.gnu.org
Subject: RE: bug#44895: Add Info-copy-permalink
Date: Thu, 26 Nov 2020 16:29:31 -0800 (PST)
If you can easily create a feature, yourself,
to tell Mrs N. how great Emacs is, that in
itself speaks to that greatness.

And of course vanilla Emacs can decide to add
any such feature as a standard, default feature.

In this case it's trivial, and I pointed to
free code that does it.  Feel free to deny
yourself use of it.

> If I have to use non-standard / non-default features to tell Mrs.
> Nerblefield how great emacs is, then perhaps emacs is not that great.
> 
> >>>>> "DA" == Drew Adams <drew.adams <at> oracle.com> writes:
> DA> If you use Info+ then `G' (`Info-goto-node-web')...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 05:35:02 GMT) Full text and rfc822 format available.

Message #17 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>
Cc: 44895 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 00:34:12 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > If I have to use non-standard / non-default features to tell Mrs.
  > Nerblefield how great emacs is, then perhaps emacs is not that great.

This is an amusing and harmless side topic, but it's still a tangent.
Would people not continue it for very long on this list?

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 07:24:01 GMT) Full text and rfc822 format available.

Message #20 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44895 <at> debbugs.gnu.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 09:23:20 +0200
severity 44895 wishlist
thanks

> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Fri, 27 Nov 2020 05:39:35 +0800
> 
> 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.

How do you "share" a section in a manual? compose an email that
includes the text of the section in the attachment? something else?

IOW, please be more specific about the feature you'd like to see; just
using buzzwords from elsewhere doesn't help, because Emacs is not a
smartphone nor a Web browser.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 07:26:02 GMT) Full text and rfc822 format available.

Message #23 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44895 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 09:24:55 +0200
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Fri, 27 Nov 2020 07:20:56 +0800
> Cc: 44895 <at> debbugs.gnu.org
> 
> If I have to use non-standard / non-default features to tell Mrs.
> Nerblefield how great emacs is, then perhaps emacs is not that great.

Not jidanni's high standards, anyway.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 08:19:02 GMT) Full text and rfc822 format available.

Message #26 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 44895 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 11:14:18 +0300
* Eli Zaretskii <eliz <at> gnu.org> [2020-11-27 10:30]:
> severity 44895 wishlist
> thanks
> 
> > From: 積丹尼 Dan Jacobson
> >  <jidanni <at> jidanni.org>
> > Date: Fri, 27 Nov 2020 05:39:35 +0800
> > 
> > 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.
> 
> How do you "share" a section in a manual? compose an email that
> includes the text of the section in the attachment? something else?

I can understand this demand of Dan as I have the same. 

This is similar to partial functions of `org-store-link' and to key
`w' in *eww*, or to `c' to copy Node name in the Info buffer, with
addition that capturing the hyperlink to the reference would construct
the shareable link or could invoke integration to quickly send it to
somebody.

If it is meant to obtain quick reference to be shared with somebody,
partial construction of URL could be obtained with:

User could press let us say: `C' on the "14.18 Optional Mode Line
Features" page, then the WWW hyperlink could be constructed in memory
pointing to:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html
or snippet could be constructed with the title and URL such as:

Emacs Manual: 14.18 Optional Mode Line Features
https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html

then by yanking snippet into email it can be shared easily with
third party.

If person is reading email through Emacs and knows how to evaluate
functions, one can also share it by using `c' and then constructing this:

(info "(emacs) Optional Mode Line")

it is little more tedious, then if there is option to quickly obtain
human readable hyperlink.

More integration could be achieved by just pressing `C' or other key
that would invoke email to be constructed with:

Subject: Emacs Manual: 14.18 Optional Mode Line Features

and body being:

Emacs Manual: 14.18 Optional Mode Line Features
https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html

Because all of this may be complicated and demands efforts in
implementation, I am suggesting that before ever is such implemented
that Dan can try using GNU Hyperbole package by:

{M-x package-install RET hyperbole RET}

As then it becomes easy to share Info links to other users also using
GNU Hyperbole by using this workflow:

- find the info node you wish to share

- press `c' to obtain reference in memory, or {C-u 0 c}

- enclose the link in double quotes "(emacs) Registers"

- send the link and user will be able to invoke action key M-RET on
  the above to open the info page on Registers.

To automate everything one could use this function below that serves
as a concept but lacks the actual URL. If URL can be figured out from
the node name then it would be easy to share info node corresponding
WWW hyperlinks by email or by XMPP or by chat, etc.

(defun info-node-share-by-email ()
 "Send info node as email"
  (interactive)
  (Info-copy-current-node-name)
  (let ((node (pop kill-ring))
	(email (read-from-minibuffer "Email: ")))
    (compose-mail email)
    (mail-position-on-field "Subject" t)
    (insert node)
    (rfc822-goto-eoh)
    (forward-line 1)
    (insert "Here is info node reference for you: \n\n")
    (insert (format "\"%s\"\n" node))))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 08:41:01 GMT) Full text and rfc822 format available.

Message #29 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jean Louis <bugs <at> gnu.support>
Cc: 44895 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 10:40:21 +0200
> Date: Fri, 27 Nov 2020 11:14:18 +0300
> From: Jean Louis <bugs <at> gnu.support>
> Cc: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
>   44895 <at> debbugs.gnu.org
> 
> This is similar to partial functions of `org-store-link' and to key
> `w' in *eww*, or to `c' to copy Node name in the Info buffer, with
> addition that capturing the hyperlink to the reference would construct
> the shareable link or could invoke integration to quickly send it to
> somebody.
> 
> If it is meant to obtain quick reference to be shared with somebody,
> partial construction of URL could be obtained with:
> 
> User could press let us say: `C' on the "14.18 Optional Mode Line
> Features" page, then the WWW hyperlink could be constructed in memory
> pointing to:
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html
> or snippet could be constructed with the title and URL such as:
> 
> Emacs Manual: 14.18 Optional Mode Line Features
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html
> 
> then by yanking snippet into email it can be shared easily with
> third party.

Are we talking only about "sharing" stuff in manuals related to Emacs?
What about any other Info manual?  And what about manuals that don't
have a Web site?

IOW, this proposed feature needs more detailed specification, IMO.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 09:46:02 GMT) Full text and rfc822 format available.

Message #32 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Jean Louis <bugs <at> gnu.support>
Cc: 44895 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 10:45:06 +0100
On Fri, 27 Nov 2020 11:14:18 +0300 Jean Louis <bugs <at> gnu.support> wrote:

> If person is reading email through Emacs and knows how to evaluate
> functions, one can also share it by using `c' and then constructing this:
>
> (info "(emacs) Optional Mode Line")

Typing `C-0 c' in the node adds just that to the kill-ring.

> it is little more tedious, then if there is option to quickly obtain
> human readable hyperlink.

In Gnus that is a human readable hyperlink (to the local Info manual,
not to the HTML version at gnu.org).

Steve Berman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 09:51:03 GMT) Full text and rfc822 format available.

Message #35 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 44895 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 11:47:00 +0300
* Eli Zaretskii <eliz <at> gnu.org> [2020-11-27 11:41]:
> > Date: Fri, 27 Nov 2020 11:14:18 +0300
> > From: Jean Louis <bugs <at> gnu.support>
> > Cc: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
> >   44895 <at> debbugs.gnu.org
> > 
> > This is similar to partial functions of `org-store-link' and to key
> > `w' in *eww*, or to `c' to copy Node name in the Info buffer, with
> > addition that capturing the hyperlink to the reference would construct
> > the shareable link or could invoke integration to quickly send it to
> > somebody.
> > 
> > If it is meant to obtain quick reference to be shared with somebody,
> > partial construction of URL could be obtained with:
> > 
> > User could press let us say: `C' on the "14.18 Optional Mode Line
> > Features" page, then the WWW hyperlink could be constructed in memory
> > pointing to:
> > https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html
> > or snippet could be constructed with the title and URL such as:
> > 
> > Emacs Manual: 14.18 Optional Mode Line Features
> > https://www.gnu.org/software/emacs/manual/html_node/emacs/Optional-Mode-Line.html
> > 
> > then by yanking snippet into email it can be shared easily with
> > third party.
> 
> Are we talking only about "sharing" stuff in manuals related to Emacs?
> What about any other Info manual?  And what about manuals that don't
> have a Web site?
> 
> IOW, this proposed feature needs more detailed specification, IMO.

In general it would be good for info files to get the feature where
author could specify if info is published on the WWW and then to
relate info nodes to WWW nodes. That may be external to Emacs. But if
this relation would be implemented in the fundamental info structure
then it would reflect on all info manuals.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 10:26:01 GMT) Full text and rfc822 format available.

Message #38 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 44895 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 13:21:35 +0300
* Stephen Berman <stephen.berman <at> gmx.net> [2020-11-27 12:45]:
> On Fri, 27 Nov 2020 11:14:18 +0300 Jean Louis <bugs <at> gnu.support> wrote:
> 
> > If person is reading email through Emacs and knows how to evaluate
> > functions, one can also share it by using `c' and then constructing this:
> >
> > (info "(emacs) Optional Mode Line")
> 
> Typing `C-0 c' in the node adds just that to the kill-ring.
> 
> > it is little more tedious, then if there is option to quickly obtain
> > human readable hyperlink.
> 
> In Gnus that is a human readable hyperlink (to the local Info manual,
> not to the HTML version at gnu.org).

I have expressed me wrongly.

All those info hyperlinks are well readable.








Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 10:45:01 GMT) Full text and rfc822 format available.

Message #41 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 44895 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 11:44:10 +0100
[Message part 1 (text/plain, inline)]
Drew Adams <drew.adams <at> oracle.com> writes:

> If you use Info+ then `G' (`Info-goto-node-web')
> takes you to the Web version of the current node.
>
> It uses function `Info-url-for-node' (also from
> Info+) to get the URL for that.

I think this looks useful for Emacs itself.  A rough attempt at doing
so attached.

Thoughts?
[info-goto-web.diff (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 11:01:01 GMT) Full text and rfc822 format available.

Message #44 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 44895 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 13:57:11 +0300
* Stefan Kangas <stefan <at> marxist.se> [2020-11-27 13:46]:
> Drew Adams <drew.adams <at> oracle.com> writes:
> 
> > If you use Info+ then `G' (`Info-goto-node-web')
> > takes you to the Web version of the current node.
> >
> > It uses function `Info-url-for-node' (also from
> > Info+) to get the URL for that.
> 
> I think this looks useful for Emacs itself.  A rough attempt at doing
> so attached.

What Drew said and provided should be built-in into Emacs, and if not
for all info files, at least for Emacs based info files.

Myself I would even like collecting hyperlinks into a ring to be able
to easier give them as reference several of them at once with title
and URL, not just URL.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 12:33:01 GMT) Full text and rfc822 format available.

Message #47 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 44895 <at> debbugs.gnu.org, drew.adams <at> oracle.com, jidanni <at> jidanni.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 14:32:00 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 27 Nov 2020 11:44:10 +0100
> Cc: 44895 <at> debbugs.gnu.org,
>  積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> 
> Drew Adams <drew.adams <at> oracle.com> writes:
> 
> > If you use Info+ then `G' (`Info-goto-node-web')
> > takes you to the Web version of the current node.
> >
> > It uses function `Info-url-for-node' (also from
> > Info+) to get the URL for that.
> 
> I think this looks useful for Emacs itself.  A rough attempt at doing
> so attached.
> 
> Thoughts?

I guess my response was ignored?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 18:52:01 GMT) Full text and rfc822 format available.

Message #50 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Stephen Berman <stephen.berman <at> gmx.net>, Jean Louis <bugs <at> gnu.support>
Cc: 44895 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>
Subject: RE: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 10:46:01 -0800 (PST)
> In Gnus that is a human readable hyperlink (to the local Info manual,
> not to the HTML version at gnu.org).

Being able to obtain each kind of hyperlink
is useful: Info link and web link.  The use
cases are orthogonal.

FWIW, I use my `G' (`Info-goto-node-web') all
the time, to point users to a node from an
email or in some online forum.

I often also tell them how to get to the same
node from within Emacs.  But the two kinds of
access information are different.  Both are
useful.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 18:52:02 GMT) Full text and rfc822 format available.

Message #53 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 44895 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: RE: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 10:51:05 -0800 (PST)
> > If you use Info+ then `G' (`Info-goto-node-web')
> > takes you to the Web version of the current node.
> >
> > It uses function `Info-url-for-node' (also from
> > Info+) to get the URL for that.
> 
> I think this looks useful for Emacs itself.  A rough attempt at doing
> so attached.
> 
> Thoughts?

Eyeballing it, I didn't notice changes from my
code, so LGTM.  (I see there's now a doc string
for `Info-read-node-name', which is good.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 20:20:02 GMT) Full text and rfc822 format available.

Message #56 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Tomas Nordin <tomasn <at> posteo.net>
To: Eli Zaretskii <eliz <at> gnu.org>, Jean Louis <bugs <at> gnu.support>
Cc: 44895 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Fri, 27 Nov 2020 21:19:12 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> Are we talking only about "sharing" stuff in manuals related to Emacs?
> What about any other Info manual?  And what about manuals that don't
> have a Web site?
>
> IOW, this proposed feature needs more detailed specification, IMO.

A specification could be that where

w runs the command Info-copy-current-node-name

W ? would run something like Info-copy-current-node-url, with a
documentation explaining that if an online equivalent can be
established, a link to it is put into the kill ring. Else a friendly
message is given explaining that an online equivalent could not be
derived.

As a next step some sort of convention could be established for Info
manuals to declare its prefix online URL or something.

--
Tomas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 27 Nov 2020 23:28:01 GMT) Full text and rfc822 format available.

Message #59 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 44895 <at> debbugs.gnu.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Sat, 28 Nov 2020 07:27:03 +0800
All I know is it seems my bug is in good hands. Thank you everybody. All
I know is I was reading the emacs manual and looked at the buttons that
I could click and there was one that said copy or something but not
something that could copy a https link. And then some fellow suggested
some command that I found was actually in an add-on but he didn't
mention that vital fact. And it even had a "+" in the title, so dlocate
thought it was a regexp, etc. etc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Sat, 28 Nov 2020 07:48:01 GMT) Full text and rfc822 format available.

Message #62 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 44895 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Sat, 28 Nov 2020 08:47:07 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> > > If you use Info+ then `G' (`Info-goto-node-web')
> > > takes you to the Web version of the current node.
> > >
> > > It uses function `Info-url-for-node' (also from
> > > Info+) to get the URL for that.
> >
> > I think this looks useful for Emacs itself.  A rough attempt at doing
> > so attached.
> >
> > Thoughts?
>
> I guess my response was ignored?

No, that was not my intention.  Maybe I didn't understand what you
were saying.  I thought you asked for a better specification of the
feature?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Sat, 28 Nov 2020 08:22:02 GMT) Full text and rfc822 format available.

Message #65 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 44895 <at> debbugs.gnu.org, drew.adams <at> oracle.com, jidanni <at> jidanni.org
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Sat, 28 Nov 2020 10:21:12 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Sat, 28 Nov 2020 08:47:07 +0100
> Cc: Drew Adams <drew.adams <at> oracle.com>, 44895 <at> debbugs.gnu.org, 
> 	積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> 
> > > Thoughts?
> >
> > I guess my response was ignored?
> 
> No, that was not my intention.  Maybe I didn't understand what you
> were saying.  I thought you asked for a better specification of the
> feature?

I meant what I wrote here:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44895#29




Added tag(s) patch. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 25 Sep 2021 13:35:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 11 Nov 2021 07:12:02 GMT) Full text and rfc822 format available.

Message #70 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 44895 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: Add Info-copy-permalink
Date: Thu, 11 Nov 2021 08:11:31 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> How do you "share" a section in a manual? compose an email that
> includes the text of the section in the attachment? something else?
>
> IOW, please be more specific about the feature you'd like to see; just
> using buzzwords from elsewhere doesn't help, because Emacs is not a
> smartphone nor a Web browser.

He meant that you should be able to go to the gnu.org version of the
info page, which seems reasonable to me.

Stefan Kangas <stefan <at> marxist.se> writes:

> I think this looks useful for Emacs itself.  A rough attempt at doing
> so attached.

I've er simplified a bit and pushed to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 44895 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 11 Nov 2021 07:12:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 11 Nov 2021 17:27:02 GMT) Full text and rfc822 format available.

Message #75 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>
Subject: RE: [External] : bug#44895: Add Info-copy-permalink
Date: Thu, 11 Nov 2021 17:26:13 +0000
> Stefan Kangas <stefan <at> marxist.se> writes:
> 
> > I think this looks useful for Emacs itself.
> > A rough attempt at doing so attached.

Er, all of that code is taken verbatim from info+.el.
How is it your rough attempt?

> I've er simplified a bit and pushed to Emacs 29.

Why did you "simplify" a bit?  What did you leave out?

Did you bind it to a key?  Info+ binds it to `G', and
that'd be my suggestion for Emacs also.  It goes to a
node, just like `g'; it just goes to it in the manual
on the web.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 11 Nov 2021 17:42:02 GMT) Full text and rfc822 format available.

Message #78 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Thu, 11 Nov 2021 19:40:12 +0200
> Did you bind it to a key?  Info+ binds it to `G', and
> that'd be my suggestion for Emacs also.  It goes to a
> node, just like `g'; it just goes to it in the manual
> on the web.

For symmetry we could use such keybindings:

  "g" 'Info-goto-node
  "G" 'Info-goto-node-web

  "w" 'Info-copy-current-node-name
  "W" 'Info-url-for-node




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Thu, 11 Nov 2021 17:59:01 GMT) Full text and rfc822 format available.

Message #81 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: RE: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Thu, 11 Nov 2021 17:58:40 +0000
> > Did you bind it to a key?  Info+ binds it to `G', and
> > that'd be my suggestion for Emacs also.  It goes to a
> > node, just like `g'; it just goes to it in the manual
> > on the web.
> 
> For symmetry we could use such keybindings:
> 
>   "g" 'Info-goto-node
>   "G" 'Info-goto-node-web
> 
>   "w" 'Info-copy-current-node-name
>   "W" 'Info-url-for-node

Good idea for W.  (I've added that binding now to Info+.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 12 Nov 2021 03:33:02 GMT) Full text and rfc822 format available.

Message #84 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Fri, 12 Nov 2021 04:32:08 +0100
Juri Linkov <juri <at> linkov.net> writes:

> For symmetry we could use such keybindings:
>
>   "g" 'Info-goto-node
>   "G" 'Info-goto-node-web

Good idea; now done.

>   "w" 'Info-copy-current-node-name
>   "W" 'Info-url-for-node

I'm not sure I see the utility of exposing Info-url-for-node as a
command.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 12 Nov 2021 07:42:02 GMT) Full text and rfc822 format available.

Message #87 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Fri, 12 Nov 2021 08:41:49 +0100
>>>>> On Fri, 12 Nov 2021 04:32:08 +0100, Lars Ingebrigtsen <larsi <at> gnus.org> said:

    Lars> Juri Linkov <juri <at> linkov.net> writes:
    >> For symmetry we could use such keybindings:
    >> 
    >> "g" 'Info-goto-node
    >> "G" 'Info-goto-node-web

    Lars> Good idea; now done.

    >> "w" 'Info-copy-current-node-name
    >> "W" 'Info-url-for-node

    Lars> I'm not sure I see the utility of exposing Info-url-for-node as a
    Lars> command.

Itʼs useful when posting to stackexchange, since the people reading
your answers might not be using emacs to do so (Iʼll agree thatʼs
probably a rarity).

Robert
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 12 Nov 2021 07:50:01 GMT) Full text and rfc822 format available.

Message #90 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Fri, 12 Nov 2021 08:48:49 +0100
Robert Pluim <rpluim <at> gmail.com> writes:

> Itʼs useful when posting to stackexchange, since the people reading
> your answers might not be using emacs to do so (Iʼll agree thatʼs
> probably a rarity).

I think the people that want to do that can just `G' (and confirm that
that's the page they wanted to post about) and then clip the URL from
the browser.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Fri, 12 Nov 2021 17:18:02 GMT) Full text and rfc822 format available.

Message #93 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Robert Pluim <rpluim <at> gmail.com>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 Juri Linkov <juri <at> linkov.net>
Subject: RE: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Fri, 12 Nov 2021 17:17:19 +0000
> > Itʼs useful when posting to stackexchange, since the people reading
> > your answers might not be using emacs to do so (Iʼll agree thatʼs
> > probably a rarity).
> 
> I think the people that want to do that can just `G' (and confirm that
> that's the page they wanted to post about) and then clip the URL from
> the browser.

FWIW, that's what I've been doing.  I agree
that it's not a big deal to do that.

But I also think it wouldn't hurt to bind the
URL command as well.

Certainly that's not a super-important command.
And I'm generally against binding new keys by
default willy nilly.

If it were I, I'd bind that command to `W', but
I also wouldn't be afraid to later remove or
change that binding if a better use were found
for `W' in Info mode.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44895; Package emacs. (Sun, 14 Nov 2021 00:07:01 GMT) Full text and rfc822 format available.

Message #96 received at 44895 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "44895 <at> debbugs.gnu.org" <44895 <at> debbugs.gnu.org>,
 Lars Ingebrigtsen <larsi <at> gnus.org>, Robert Pluim <rpluim <at> gmail.com>,
 Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#44895: [External] : bug#44895: Add Info-copy-permalink
Date: Sun, 14 Nov 2021 08:06:27 +0800
>> I think the people that want to do that can just `G' (and confirm that
>> that's the page they wanted to post about) and then clip the URL from
>> the browser.

Some people (rms) don't use browsers, or don't want to connect to the
Internet and start a browser.  Also we trust the URL you are providing
is the same as the page we are looking at. Else we will submit a bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Dec 2021 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.