]> git.eshelyaron.com Git - emacs.git/commit
(define-minor-mode): Warn about use of pre-Emacs-21 style args
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 12 Apr 2021 15:08:19 +0000 (11:08 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 12 Apr 2021 15:08:19 +0000 (11:08 -0400)
commit6bec60ad3151825c2ee5f775848ea3d4c70c72a5
treea7bdf8e3c439584e7d4714a9205d77c3a571a302
parent07671edbf0686a71fe568626a71ef48fdb2e0215
(define-minor-mode): Warn about use of pre-Emacs-21 style args

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
Use `advertised-calling-convention` to avoid promoting the old
style arguments.  Emit a wanring when old-style arguments are used.
Massage the docstring accordingly.
* doc/lispref/modes.texi (Defining Minor Modes): Document the keyword
arguments rather than the old-style positional arguments.
doc/lispref/modes.texi
etc/NEWS
lisp/emacs-lisp/easy-mmode.el