[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing documentation string of another function
From: |
Heime |
Subject: |
Re: Printing documentation string of another function |
Date: |
Wed, 10 Apr 2024 20:09:44 +0000 |
On Thursday, April 11th, 2024 at 7:36 AM, Stephen Berman
<stephen.berman@gmx.net> wrote:
> On Wed, 10 Apr 2024 17:17:00 +0000 Heime heimeborgia@protonmail.com wrote:
>
> > With the following implementation, I cannot get the documentation string
> > of the appropriate function to display.
> >
> > (defun avus-doc (seltr)
> > "Print the documentation string of a particular function."
> >
> > (interactive
> > (list
> > (let ( (cseq '("Greek" "Flokki")) )
> > (completing-read "Doc: " cseq nil t "Greek"))))
> >
> > (pcase seltr
> > ("Greek" (documentation 'avus-greek))
> > ("Flokki" (documentation 'avus-flokki))) )
>
>
> `(documentation 'avus-greek)' just returns the doc string, it does not
> display it. You have to add code to do that, e.g.:
>
> (defun avus-doc (seltr)
> "Print the documentation string of a particular function."
> (interactive
> (list
> (let ((cseq '("Greek" "Flokki")))
> (completing-read "Doc: " cseq nil t "Greek"))))
> (let ((doc (pcase seltr
> ("Greek" (documentation 'avus-greek))
> ("Flokki" (documentation 'avus-flokki)))))
> (tooltip-show doc)))
>
> Steve Berman
I want to print in the usual documentation buffer as doing
C-h f avus-greek or C-h f avus-flokki
- Printing documentation string of another function, Heime, 2024/04/10
- Re: Printing documentation string of another function, Zhengyi Fu, 2024/04/10
- Re: Printing documentation string of another function, Heime, 2024/04/10
- Re: Printing documentation string of another function, Joost Kremers, 2024/04/10
- Re: Printing documentation string of another function, Heime, 2024/04/10
- Re: Printing documentation string of another function, Stephen Berman, 2024/04/10
- Re: Printing documentation string of another function,
Heime <=
- Re: Printing documentation string of another function, Stephen Berman, 2024/04/10
- RE: [External] : Re: Printing documentation string of another function, Drew Adams, 2024/04/10
- RE: [External] : Re: Printing documentation string of another function, Heime, 2024/04/10