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: Stefan Monnier
Subject: Re: [External] : Supplying DOC string in a `defun' using `defvar'
Date: Thu, 03 Jun 2021 11:10:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Lars mentioned that although using :documentation works, "(:documentation 
> <foo>)" is
> a non-standard way of setting things up in contrast to something like
> "(declare (documentation ...))"
>
> What do you think?

Most uses of this `:documentation` feature are for dynamically created
functions, and those typically don't use `defun` but something like
`defalias+lambda`.  `declare`, OTOH is a property of `defun` and isn't
supported inside `lambda`, so it's not clear how that could be made
to work.


        Stefan




reply via email to

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