[Top][All Lists]

[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 <address@hidden> wrote: 

EB> Robert Thorpe <address@hidden> 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).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]