From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 26301@debbugs.gnu.org
Subject: bug#26301: 24.5; `define-derived-mode': different signatures for doc string & manual
Date: Fri, 26 Jul 2019 07:50:37 -0700 (PDT) [thread overview]
Message-ID: <45b0c967-edca-4ffa-b854-859965486828@default> (raw)
In-Reply-To: <8736itnjkk.fsf@mouse.gnus.org>
> > No KEYWORD-ARGS. They are included in BODY, so the specifications of
> > BODY differ between the two.
>
> I guess the manual here try to describe the conceptual semantics (i.e.,
> that if you put keywords there, they'll be interpreted as such), while
> the doc string doesn't lie about what goes where. Because the calling
> convention is automatically generated there, which makes pretending a
> bit more difficult.
"The doc string doesn't lie." Is that the best we
can say for it? Why gratuitously introduce a mismatch
between the two? That just makes things harder for
users, no?
I don't know what you're saying by your last sentence,
in particular this: " which makes pretending a bit more
difficult." No idea what pretending you mean.
What's the reason we wouldn't want KEYWORD-ARGS
described in the doc string?
> I don't think describing it both ways is very confusing.
Why should it be confusing at all? Is plain confusing
OK but very confusing not OK? It might be OK if there
were a good reason for it, but I haven't seen that yet.
> > The treatment of keyword args is not well specified.
>
> I don't think any of those questions are reasonable,
Why? What's unreasonable about wanting to know
whether you can specify multiple :group entries,
as you can do with defcustom, for instance?
We specifically provide such info for `defcustom'
(elisp) `Common Keywords', under `:group':
If you use this keyword more than once, you can put
a single item into more than one group.
`define-minor-mode' generates defcustom forms. Its
doc should at least say that KEYWORD-ARGS can be
any list of keyword entries acceptable to defcustom,
and then point to the defcustom doc (where we say
that you can use multiple :group's to add an option
to multiple groups.
> so saying something about that would be confusing.
Do you think our saying it for defcustom is confusing
also? Why should it be confusing here? That's exactly
what KEYWORD-ARGS specifies: defcustom keyword entries.
next prev parent reply other threads:[~2019-07-26 14:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 15:03 bug#26301: 24.5; `define-derived-mode': different signatures for doc string & manual Drew Adams
2019-07-26 11:04 ` Lars Ingebrigtsen
2019-07-26 14:50 ` Drew Adams [this message]
2019-07-26 14:54 ` Noam Postavsky
2019-07-26 15:08 ` Lars Ingebrigtsen
2019-07-26 15:51 ` Drew Adams
2019-07-26 15:38 ` Drew Adams
2019-07-27 10:03 ` Lars Ingebrigtsen
2019-07-27 16:54 ` Drew Adams
2019-07-27 22:19 ` Michael Heerdegen
2019-07-28 0:01 ` Drew Adams
2019-07-28 0:14 ` Michael Heerdegen
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=45b0c967-edca-4ffa-b854-859965486828@default \
--to=drew.adams@oracle.com \
--cc=26301@debbugs.gnu.org \
--cc=larsi@gnus.org \
/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).