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

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

Re: dynamic docstring in a function?


From: Stefan Monnier
Subject: Re: dynamic docstring in a function?
Date: 25 Sep 2000 06:14:47 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.90

>>>>> "Kin" == Kin Cho <address@hidden> writes:
> by clicking the mouse on its name, etc...  These functions takes
> no arguments, but their behavior depend on global and environment
> variables.  In the same self-documenting spirit of emacs, I wanted
> document these functions using the actual values of the global
> and environment variables.

I have a similar situation and currently just refer the user to the relevant
variables.  I don't think the "nil docstring trick" is a good approach.
I'd rather see something along the lines of \\[...] for example
defining \\(...) as executing the so-introduced sexp and replacing it
with the returned value.


        Stefan



reply via email to

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