GNU bug report logs - #47925
28.0.50; define-minor-mode without body results in false warning

Previous Next

Package: emacs;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Tue, 20 Apr 2021 22:25:02 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; define-minor-mode without body results in false warning
Date: Wed, 21 Apr 2021 00:24:06 +0200
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.




This bug report was last modified 4 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.