all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Elisp command calling (describe-function) interactively
Date: Sun, 23 Oct 2022 17:02:16 +0000	[thread overview]
Message-ID: <1Ns-Id_L3-q4fgbBiohfvomuITn0hB5HDeWMof33S9XrqobXC3U1rc_TRLaGni2UYRKZ8HZGtYX378P-vZhKmAJ1tnh5jgUL0C1BAicaEps=@protonmail.com> (raw)
In-Reply-To: <V0ad3GJvGBe_GnobtuzwEuZjuGmTVHuQ4AeuREB1nQ2M9Me1VrELqaiEZLBtu9wjEpE5UGpuY3mjj8fcPASVUgCrb5q30SM53g_hjeZ3P3Y=@protonmail.com>

Started with using completing-read for inputting the function name, but does not

look that the use of completing-read is appropriate, because completing-read only

accepts completion from a predefined list.

(defun ehelp (actm)
  "Describe emacs help commands."

  (interactive
   (list
    (let* ( (cseq '("variable" "function")) )
      (completing-read "Emacs_help: " cseq nil t "function"))))

  (pcase actm
    ("function"
        (describe-function (completing-read "function: " nil nil nil)))
    (_ (message "TODO"))) )

------- Original Message -------
On Sunday, October 23rd, 2022 at 4:44 AM, Heime <heimeborgia@protonmail.com> wrote:

> Is it possible to call inside an elisp function the interactive version of (describe-function)?

  reply	other threads:[~2022-10-23 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-23  4:44 Elisp command calling (describe-function) interactively Heime via Users list for the GNU Emacs text editor
2022-10-23 17:02 ` Heime via Users list for the GNU Emacs text editor [this message]
2022-10-24 13:24   ` Jean Louis
2022-10-24  0:35 ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2022-10-24  1:29 Drew Adams

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

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

  git send-email \
    --in-reply-to='1Ns-Id_L3-q4fgbBiohfvomuITn0hB5HDeWMof33S9XrqobXC3U1rc_TRLaGni2UYRKZ8HZGtYX378P-vZhKmAJ1tnh5jgUL0C1BAicaEps=@protonmail.com' \
    --to=help-gnu-emacs@gnu.org \
    --cc=heimeborgia@protonmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.