GNU bug report logs -
#47813
28.0.50; Confusing new calling convention for define-minor-mode
Previous Next
Full log
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> 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.
This bug report was last modified 4 years and 37 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.