Subject: bug#47925: closed (Re: bug#47925: 28.0.50; define-minor-mode without body results in false warning)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 27 Apr 2021 13:28:02 +0000

Your bug report

#47925: 28.0.50; define-minor-mode without body results in false warning

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
47925: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47925
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#47925: 28.0.50; define-minor-mode without body results in false warning
From: Stefan Monnier <[email-masked]>
To: Jonas Bernoulli <[email-masked]>
Cc: [email-masked]
Date: Tue, 27 Apr 2021 09:27:45 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

>> I have pushed a patch to `master` which hopefully fixes this without
>> introducing regressions.
> That seems to be working.  Thanks!

Thanks, closing,

        Stefan

Subject: 28.0.50; define-minor-mode without body results in false warning
From: Jonas Bernoulli <[email-masked]>
To: [email-masked]
Date: Wed, 21 Apr 2021 00:24:06 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

I have a mode that leaves out all the optional arguments because its
sole purpose is the enable its minor-mode map:

  (define-minor-mode transient-resume-mode
    "Auxiliary minor-mode used to resume a transient after viewing help.")

which is supported:

  (define-minor-mode MODE DOC [KEYWORD VAL ... &rest BODY])

Unfortunately that results in a warning:

  transient.el:3318:20: Warning: Use keywords rather than deprecated positional
      arguments to `define-minor-mode'

because INIT-VALUE is nil in this case, not keywordp.