help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get Elisp reference to info files


From: John Mastro
Subject: Re: get Elisp reference to info files
Date: Fri, 7 Aug 2015 16:06:28 -0700

>> In an Info page, `w' will copy the reference to the
>> current node (the `(%s)%s' part of your format
>> string).
>
> OK, so it will look like this:
>
> (defun Info-get-reference ()
>   (interactive)
>   (let*((node  (Info-copy-current-node-name))
>         (ref   (format "(info \"%s\")" node)) )
>     (message "Killed: %s" ref)
>     (kill-new ref)) )

IIUC, `Info-copy-current-node-name' does exactly what you
want when called with a 0 argument.

-- 
john



reply via email to

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