--- Begin Message ---
Subject: |
28.0.50; Confusing new calling convention for define-minor-mode |
Date: |
Fri, 16 Apr 2021 03:51:04 +0200 |
Hello,
the new advertised calling contention for `define-minor-mode' is
| (mode doc &rest body)
Nothing wrong with that, but this part from the doc string:
| If you provide BODY, then you must provide at least one keyword
| argument.
says that the convention as printed is not valid - and indeed it
isn't -- e.g. this errors:
(define-minor-mode test-mode "..." (if test-mode 17 23))
Is it possible to make that keyword-less case work? Else the calling
convention should be made clearer in some way.
TIA, Michael.
In GNU Emacs 28.0.50 (build 48, x86_64-pc-linux-gnu, GTK+ Version 3.24.24,
cairo version 1.16.0)
of 2021-04-15 built on drachen
Repository revision: ed6b86457ddf73cc2cb2df6a1cf8dab79a265a93
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
System Description: Debian GNU/Linux bullseye/sid
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode |
Date: |
Sat, 17 Apr 2021 23:56:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Heerdegen [2021-04-18 01:21:13] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Done, thanks,
> I am happy with all the changes.
Thanks, closing,
Stefan
--- End Message ---