GNU bug report logs -
#42222
26.3; `called-interactively-p' doc is incorrect and misleading
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sun, 5 Jul 2020 23:34:01 UTC
Severity: normal
Tags: notabug
Found in version 26.3
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #10 received at control <at> debbugs.gnu.org (full text, mbox):
tags 42222 notabug
thanks
> Date: Sun, 5 Jul 2020 16:33:33 -0700 (PDT)
> From: Drew Adams <drew.adams <at> 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.
This bug report was last modified 4 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.