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: Jean Louis
Subject: Re: [External] : Supplying DOC string in a `defun' using `defvar'
Date: Tue, 1 Jun 2021 02:40:49 +0300
User-agent: Mutt/2.0.7+183 (3d24855) (2021-05-28)

* Drew Adams <drew.adams@oracle.com> [2021-06-01 02:21]:
> > Can the DOC string in a `defun' be supplied using a `defvar'?
> 
> In a `defun'?  No.  But you can do it this way:
> 
> (let ((toto "WHAT?!!!!"))
>   (put 'bar 'function-documentation toto))
> 
> (describe-function 'bar)

If I could rename symbol then it would be possible that way to
generate functions by using `defun'



-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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