(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

@ -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)