(define-minor-mode): Use "P" in interactive spec of minor mode commands.

This commit is contained in:
Richard M. Stallman 2002-03-04 22:27:03 +00:00
parent 48178f9aaf
commit 3881a18674
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-03-04 Richard M. Stallman <rms@gnu.org>
* emacs-lisp/easy-mmode.el (define-minor-mode):
Use "P" in interactive spec of minor mode commands.
2002-03-04 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* net/snmp-mode.el: Require tempo when compiling to prevent

View file

@ -177,7 +177,7 @@ With zero or negative ARG turn mode off.
\\{%s}") pretty-name keymap-sym))
;; Make no arg by default in an interactive call,
;; so that repeating the command toggles again.
(interactive)
(interactive "P")
(setq ,mode
(if arg
(> (prefix-numeric-value arg) 0)