From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 42222@debbugs.gnu.org
Subject: bug#42222: 26.3; `called-interactively-p' doc is incorrect and misleading
Date: Sat, 11 Jul 2020 13:01:46 +0300 [thread overview]
Message-ID: <83tuyenzed.fsf@gnu.org> (raw)
In-Reply-To: <c09e8a33-1eaa-4b90-8e83-ec0709d93c5b@default> (message from Drew Adams on Sun, 5 Jul 2020 16:33:33 -0700 (PDT))
tags 42222 notabug
thanks
> Date: Sun, 5 Jul 2020 16:33:33 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> 1. Wrong signature:
>
> called-interactively-p is a compiled Lisp function in 'subr.el'.
>
> (called-interactively-p KIND)
This is intentional, due to the 'advertised-calling-convention' form.
> 2. Nothing is said about the case where KIND is absent or nil.
See above.
> Nothing is said about the behavior where KIND is anything other than
> `interactive' or `any'.
We don't have to. It means that any other value invokes undefined
behavior.
> 4. On the other hand, if the intention really is to _require_ KIND, so
> that what the Elisp manual says is true: "KIND should be either the
> symbol 'interactive' or the symbol 'any'", then the function should
> raise an error when KIND is missing (and the "should" should then
> be changed to "must").
Signaling an error is backward-incompatible, so it is not always TRT.
> Probably introduced at or before Emacs version 22.1.
>
> Such meta-information should not be placed up front like that.
We clearly disagree.
There's no bug here.
Thanks.
next prev parent reply other threads:[~2020-07-11 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-05 23:33 bug#42222: 26.3; `called-interactively-p' doc is incorrect and misleading Drew Adams
2020-07-11 10:01 ` Eli Zaretskii [this message]
2020-08-13 0:28 ` Stefan Kangas
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=83tuyenzed.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=42222@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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).