From: Michael Heerdegen <michael_heerdegen@web.de>
To: 47813@debbugs.gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode
Date: Fri, 16 Apr 2021 03:51:04 +0200 [thread overview]
Message-ID: <877dl36lpz.fsf@web.de> (raw)
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
next reply other threads:[~2021-04-16 1:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-16 1:51 Michael Heerdegen [this message]
2021-04-16 3:23 ` bug#47813: 28.0.50; Confusing new calling convention for define-minor-mode Stefan Monnier
2021-04-16 3:27 ` Stefan Monnier
2021-04-16 4:26 ` Michael Heerdegen
2021-04-16 12:43 ` Stefan Monnier
2021-04-16 23:53 ` Michael Heerdegen
2021-04-17 0:44 ` Stefan Monnier
2021-04-17 2:28 ` Michael Heerdegen
2021-04-17 3:42 ` Stefan Monnier
2021-04-17 11:49 ` Lars Ingebrigtsen
2021-04-17 13:57 ` Stefan Monnier
2021-04-17 23:21 ` Michael Heerdegen
2021-04-18 3:56 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dl36lpz.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=47813@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.