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

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

Re: Lisp error on function :documentation


From: Heime
Subject: Re: Lisp error on function :documentation
Date: Sun, 16 Oct 2022 23:09:08 +0000

------- Original Message -------
On Sunday, October 16th, 2022 at 10:58 PM, Michael Heerdegen 
<michael_heerdegen@web.de> wrote:


> Stefan Monnier via Users list for the GNU Emacs text editor
> help-gnu-emacs@gnu.org writes:
> 
> > > Or maybe someone has added some nicer solution in the meantime? - I
> > > don't recall.
> > 
> > I don't know about nicer, but in Emacs-29, you can use `oclosure-lambda`
> > to build a function tagged with a certain type on which you can dispatch
> > via `cl-defmethod` and functions's docstrings are fetched via
> > `function-documentation` which is a generic function to which you can
> > add your own methods for your OClosure type, thus making it possible to
> > dynamically build your docstring.
> 
> 
> Oh, I think this was what I remembered, thanks. It's IMO much nicer than
> this messing with innards we used to do. It's also easier to learn.
> 
> Or has using an oclosure just for the purpose of dynamical docstring
> generation (larger) downsides?
> 
> Michael.

You all seem more interested in trying to satisfy your intellect than helping
out on the actual question by the OP.



reply via email to

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