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

* Michael Heerdegen <michael_heerdegen@web.de> [2021-06-01 04:28]:
> 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.

Problem is however following:

L in dired loads the file and all other functions get loaded but those
not.

If I however, manually evaluate it then I get functions.

Do you know why that could be?

-- 
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]