From e95def75e4a3fae3f5671cc828012388f0e251f5 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 28 Nov 2011 14:26:39 +0800 Subject: [PATCH] * emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc. --- lisp/ChangeLog | 4 ++++ lisp/emacs-lisp/easy-mmode.el | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ca29e33023..16f81a1729c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-11-28 Chong Yidong + + * emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc. + 2011-11-27 Nick Roberts * progmodes/gdb-mi.el (gdb-init-1): Condition execution of diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index bf9f2c9d6ed..fae4d9adc38 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -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))) -- 2.39.5