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

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

Elisp command calling (describe-function) interactively


From: Heime
Subject: Elisp command calling (describe-function) interactively
Date: Sun, 23 Oct 2022 17:02:16 +0000

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 via email to

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