From: Chong Yidong <cyd@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: The dynamic-docstring-function property
Date: Sat, 28 Dec 2013 22:40:45 +0800 [thread overview]
Message-ID: <87y535598y.fsf@gnu.org> (raw)
In-Reply-To: <jwv7gapt8e2.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 28 Dec 2013 08:27:44 -0500")
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> Is there any reason only `documentation' uses this property, and not
>> `documentation-property' or `face-documentation'?
>
> The reason is that there hasn't been a need for it.
I'm trying to document the feature now, and I don't understand why this
feature had to be introduced in the first place. Isn't it redundant
with the pre-existing `function-documentation' feature?
As noted in the Lisp manual,
-- Function: documentation function &optional verbatim
...
If FUNCTION is a symbol, this function first looks for the
`function-documentation' property of that symbol; if that has a
non-nil value, the documentation comes from that value (if the value
is not a string, it is evaluated).
Because a non-string value is evaluated, the dynamic-docstring-function
stuff can be accomplished by setting the function-documentation property
to the value `(foo ,old-docstring) where `foo' is your processing
function.
next prev parent reply other threads:[~2013-12-28 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-28 11:10 The dynamic-docstring-function property Chong Yidong
2013-12-28 13:27 ` Stefan Monnier
2013-12-28 14:40 ` Chong Yidong [this message]
2013-12-30 12:53 ` Stefan Monnier
2014-01-01 5:53 ` Chong Yidong
2014-01-02 18:07 ` Stefan Monnier
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=87y535598y.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).