[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get Elisp reference to info files
From: |
Ted Zlatanov |
Subject: |
Re: get Elisp reference to info files |
Date: |
Wed, 05 Aug 2015 21:23:22 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
On Wed, 05 Aug 2015 22:19:20 +0200 Emanuel Berg <embe8573@student.uu.se> wrote:
EB> Robert Thorpe <rt@robertthorpeconsulting.com> writes:
>> Have a look at (info "(elisp)Startup Summary") and see
EB> In another thread, I asked how to automatically get
EB> that kind of Elisp references to the info files.
EB> I don't know if anyone replied to that, if so I missed
EB> it, but here is a function that has proved to work in
EB> the two cases I have tested it:
EB> (defun Info-get-reference ()
EB> (interactive)
EB> (let*((field (car (last (split-string Info-current-file "/"))))
EB> (topic Info-current-node)
EB> (ref (format "(info \"(%s)%s\")" field topic) ))
EB> (message "Killed: %s" ref)
EB> (kill-new ref)) )
In an Info page, `w' will copy the reference to the current node (the
`(%s)%s' part of your format string).
Ted
- Re: How can I change the default loading buffer?, Robert Thorpe, 2015/08/02
- get Elisp reference to info files (was: Re: How can I change the default loading buffer?), Emanuel Berg, 2015/08/05
- Message not available
- Re: get Elisp reference to info files,
Ted Zlatanov <=
- Re: get Elisp reference to info files, Emanuel Berg, 2015/08/07
- Re: get Elisp reference to info files, John Mastro, 2015/08/07
- Re: get Elisp reference to info files, Emanuel Berg, 2015/08/07
- Re: get Elisp reference to info files, John Mastro, 2015/08/07
- Re: get Elisp reference to info files, Robert Thorpe, 2015/08/08
- Re: get Elisp reference to info files, Emanuel Berg, 2015/08/08
- Re: get Elisp reference to info files, Emanuel Berg, 2015/08/08
- Re: get Elisp reference to info files, John Mastro, 2015/08/08
- Re: get Elisp reference to info files, Emanuel Berg, 2015/08/08