[Top][All Lists]

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

Re: dynamical parts of a docstring

From: Stefan Monnier <address@hidden>
Subject: Re: dynamical parts of a docstring
Date: 22 Oct 2002 10:55:13 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Klaus" == Klaus Berndl <> writes:
> Is it possible to add some elisp-code to a docstring which is evaluated at
> the time the docstring is displayed (e.g. by calling `describe-variable'
> or `customize-option') so the result of this code is added to the
> docstring at display-time??

Right now, no.  Someone requested the same kind of feature a year or two
ago, and a few days ago such a feature could have been used in order
not to duplicate the documentation of directory-files.

I think I even coded up a hack that allowed embedded elisp in docstrings
that looked like:

        Call a function and return \\\\(fun arg1 arg2).

but I think I had some problems because the escape sequence accidentally
appeared in a few pre-existing docstrings or somesuch.


reply via email to

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