emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47813: closed (28.0.50; Confusing new calling convention for define-


From: GNU bug Tracking System
Subject: bug#47813: closed (28.0.50; Confusing new calling convention for define-minor-mode)
Date: Sun, 18 Apr 2021 03:57:01 +0000

Your message dated Sat, 17 Apr 2021 23:56:11 -0400
with message-id <jwv8s5g457b.fsf-monnier+emacs@gnu.org>
and subject line Re: bug#47813: 28.0.50; Confusing new calling convention for 
define-minor-mode
has caused the debbugs.gnu.org bug report #47813,
regarding 28.0.50; Confusing new calling convention for define-minor-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
47813: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47813
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]