unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Stephen Berman <stephen.berman@gmx.net>,
	Joost Kremers <joostkremers@fastmail.fm>, Zhengyi Fu <i@fuzy.me>,
	Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Printing documentation string of another function
Date: Wed, 10 Apr 2024 23:16:32 +0000	[thread overview]
Message-ID: <UnUwueVC7dbRDgz638jrDI3hQDc6QqPKqAndRV_AeAHB98aC0bbcgk1GpVMo-6Krd2vAd0QQdsx9BEHKDwZmsAOFWtjKKVmg0zdW0InFS5Q=@protonmail.com> (raw)
In-Reply-To: <SJ0PR10MB548892EB802838E541743D70F3062@SJ0PR10MB5488.namprd10.prod.outlook.com>

On Thursday, April 11th, 2024 at 11:14 AM, Drew Adams <drew.adams@oracle.com> wrote:

> > > I want to print in the usual documentation buffer as doing
> > > C-h f avus-greek or C-h f avus-flokki
> > 
> > (defun avus-doc (seltr)
> 
> ...
> 
> > (describe-function (pcase seltr
> > ("Greek" 'avus-greek)
> > ("Flokki" 'avus-flokki))))
> 
> 
> Which OP could likely have figured out
> from doing `C-h k C-h f'.
> 
> Learn to fish - ask Emacs, she wants
> to help.

Yes, I figured it was calling describe-function.



      reply	other threads:[~2024-04-10 23:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-10 12:48 Printing documentation string of another function Heime
2024-04-10 12:55 ` Zhengyi Fu
2024-04-10 13:20   ` Heime
2024-04-10 13:22   ` Joost Kremers
2024-04-10 17:17     ` Heime
2024-04-10 19:36       ` Stephen Berman
2024-04-10 20:09         ` Heime
2024-04-10 20:17           ` Stephen Berman
2024-04-10 23:14             ` [External] : " Drew Adams
2024-04-10 23:16               ` Heime [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='UnUwueVC7dbRDgz638jrDI3hQDc6QqPKqAndRV_AeAHB98aC0bbcgk1GpVMo-6Krd2vAd0QQdsx9BEHKDwZmsAOFWtjKKVmg0zdW0InFS5Q=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=i@fuzy.me \
    --cc=joostkremers@fastmail.fm \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).