1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-07 20:54:32 +00:00

* emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc.

This commit is contained in:
Chong Yidong 2011-11-28 14:26:39 +08:00
parent dc95a8b0de
commit e95def75e4
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2011-11-28 Chong Yidong <cyd@gnu.org>
* emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc.
2011-11-27 Nick Roberts <nickrob@snap.net.nz>
* progmodes/gdb-mi.el (gdb-init-1): Condition execution of

View File

@ -233,10 +233,10 @@ or call the function `%s'."))))
(defun ,modefun (&optional arg ,@extra-args)
,(or doc
(format (concat "Toggle %s on or off.
Interactively, with no prefix argument, toggle the mode.
With universal prefix ARG turn mode on.
With zero or negative ARG turn mode off.
\\{%s}") pretty-name keymap-sym))
With a prefix argument ARG, enable %s if ARG is
positive, and disable it otherwise. If called from Lisp, enable
the mode if ARG is omitted or nil.
\\{%s}") pretty-name pretty-name keymap-sym))
;; Use `toggle' rather than (if ,mode 0 1) so that using
;; repeat-command still does the toggling correctly.
(interactive (list (or current-prefix-arg 'toggle)))