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

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

Re: Interactive function


From: Thibaut Verron
Subject: Re: Interactive function
Date: Mon, 10 Oct 2022 16:46:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0


On 10/10/2022 16:23, uzibalqa wrote:
------- Original Message -------
On Monday, October 10th, 2022 at 1:43 PM, <thibaut.verron@gmail.com> wrote:


Something like that?

(defun function (args)
"Docstring"
(describe-function #'function))

You should probably not show this to the compiler though.
I do not understand the "not show to the compiler" part.

I was thinking that the compiler might take offense at the use of the function before it is properly defined. But on second thought, it shouldn't really be different from resolving a recursive call.


On 10/10/2022 15:24, uzibalqa uzibalqa@proton.me wrote:

I have the following function that prints some information about Emacs Init.
The messages for the user are included in the function documentation part.
Thusly, I would like that when the user calls "M-x emacs-init", I show the
docstring. How can I implement such feature in the body of the function to
call the docstring?

(defun emacs-init ()

"TODO.

Emacs packages write their caches, histories, etc. into ~/.emacs.d/.

See directory '.emacs.d' in directory

${HOME}/xepty/"

(interactive)

(message "See C-h f emacs-init") )



reply via email to

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