[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47813: 28.0.50; Confusing new calling convention for define-minor-mo
From: |
Michael Heerdegen |
Subject: |
bug#47813: 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
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode,
Michael Heerdegen <=
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/15
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/15
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Michael Heerdegen, 2021/04/16
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/16
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Michael Heerdegen, 2021/04/16
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/16
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Michael Heerdegen, 2021/04/16
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/16
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Lars Ingebrigtsen, 2021/04/17
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/17