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

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

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


From: Michael Heerdegen
Subject: Re: Supplying DOC string in a `defun' using `defvar'
Date: Tue, 01 Jun 2021 03:28:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis <bugs@gnu.support> writes:

> > > (defmacro my-fun ()
> > >   `(defun my-fun ()
> > >      ,my-doc
> > >      (ignore)))

> > I'm only partially joking, actually, not at all - is the function's
> > documentation for your code's readers really that much less important
> > than its code?  Maybe it's even the other way round?
>
> Yes, obviously it is not practical, but it works. And is not me who
> defines those functions. I am generating 50+ function aliases by
> Drew's suggestion: [...]

Such a loop with even automatically generated docstrings using a
template is of course a different issue that doing that for one function
as in the example above.

Michael.




reply via email to

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