emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106536: * emacs-lisp/easy-mmode.el (


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106536: * emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc.
Date: Mon, 28 Nov 2011 14:26:39 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106536
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Mon 2011-11-28 14:26:39 +0800
message:
  * emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc.
modified:
  lisp/ChangeLog
  lisp/emacs-lisp/easy-mmode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-11-27 08:33:25 +0000
+++ b/lisp/ChangeLog    2011-11-28 06:26:39 +0000
@@ -1,3 +1,7 @@
+2011-11-28  Chong Yidong  <address@hidden>
+
+       * emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc.
+
 2011-11-27  Nick Roberts  <address@hidden>
 
        * progmodes/gdb-mi.el (gdb-init-1): Condition execution of

=== modified file 'lisp/emacs-lisp/easy-mmode.el'
--- a/lisp/emacs-lisp/easy-mmode.el     2011-10-27 03:01:40 +0000
+++ b/lisp/emacs-lisp/easy-mmode.el     2011-11-28 06:26:39 +0000
@@ -233,10 +233,10 @@
        (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)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]