[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: |
Sat, 17 Apr 2021 04:28:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Yes, I understand the problem, but I'm not sure how best to address
> it. Do you have some suggestion for what could have helped you?
There should be some indication, somewhere, that zero keywords are
currently not allowed.
In my case, eldoc could have been such a source of information, by
letting showing something like
(mode doc keyword1 val1 [keyword val ...] &rest body)
You could also make this warning:
"Use keywords rather than deprecated positional arguments to
`define-minor-mode'"
- or at least the docstring of `define-minor-mode' - tell that if no
keywords can be provided one can use "e.g. :lighter nil" to get rid of
the warnings (and maybe that this will probably not be necessary any
more in the future).
Apart from that, we could allow an explicit :body keyword, though that
would have been most helpful before your change, and once the sources of
examples of the old calling convention are gone, it would get completely
redundant, so I guess that is not a good proposal.
Thanks,
Michael.
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Michael Heerdegen, 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, 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 <=
- 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
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Michael Heerdegen, 2021/04/17
- bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode, Stefan Monnier, 2021/04/17