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

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

Re: [External] : Supplying DOC string in a `defun' using `defvar'


From: Michael Heerdegen
Subject: Re: [External] : Supplying DOC string in a `defun' using `defvar'
Date: Wed, 02 Jun 2021 00:22:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

ludvig-faddeev@gmx.com writes:

> Could I ust use the string directly in the "put" statement?
>
> (put 'myfunc
>      'function-documentation <doc-string>)

Sure.


> (defun defun-detail (fname detail)
>    "Put DETAIL in function-documentation property of FNAME.
> Usage:  (defun-detail 'fname 'detail)"
>
>    (put fname 'function-documentation detail))

> [...]

At the first look that all looks ok to me.


Regards,

Michael



reply via email to

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