From: Klaus Berndl <Klaus.Berndl@sdm.de>
Subject: Re: dynamical parts of a docstring
Date: 22 Oct 2002 17:22:57 +0200 [thread overview]
Message-ID: <uvg3u1ory.fsf@sdm.de> (raw)
In-Reply-To: 5lu1je8qwe.fsf@rum.cs.yale.edu
On 22 Oct 2002, Stefan Monnier wrote:
> >>>>> "Klaus" == Klaus Berndl <Klaus.Berndl@sdm.de> 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).
Sounds good, this would be exactly what I'm looking for!
>
> but I think I had some problems because the escape sequence accidentally
> appeared in a few pre-existing docstrings or somesuch.
Thanks for your prompt answer! OK, there seem to be some backward-compatibility
issues for this feature. Nevertheless: Is there any hope for this feature
(maybe correcting these pre-existing dangerous doc-strings?) in near future?
Klaus
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220
prev parent reply other threads:[~2002-10-22 15:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 11:32 dynamical parts of a docstring Klaus Berndl
2002-10-22 14:55 ` Stefan Monnier <foo@acm.com>
2002-10-22 15:22 ` Klaus Berndl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uvg3u1ory.fsf@sdm.de \
--to=klaus.berndl@sdm.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).