aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-10-19 20:26:14 -0400
committerChong Yidong2011-10-19 20:26:14 -0400
commitac6c8639bdb115cf57c65a383b4564aa98505389 (patch)
tree7271460be2206ea711f46b06e895b6b701976769
parentaa42ab43f2e3ea06adb21f82abb3d4c502bc9d40 (diff)
downloademacs-ac6c8639bdb115cf57c65a383b4564aa98505389.tar.gz
emacs-ac6c8639bdb115cf57c65a383b4564aa98505389.zip
Fix more minor mode docstrings.
* lisp/emulation/cua-base.el (cua-mode): * lisp/mail/footnote.el (footnote-mode): * lisp/mail/mailabbrev.el (mail-abbrevs-mode): * lisp/net/xesam.el (xesam-minor-mode): * lisp/progmodes/bug-reference.el (bug-reference-mode): * lisp/progmodes/cap-words.el (capitalized-words-mode): * lisp/progmodes/compile.el (compilation-minor-mode) (compilation-shell-minor-mode): * lisp/progmodes/gud.el (gud-tooltip-mode): * lisp/progmodes/hideif.el (hide-ifdef-mode): * lisp/progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode): * lisp/progmodes/subword.el (subword-mode): * lisp/progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode): * lisp/progmodes/which-func.el (which-function-mode): * lisp/term/tvi970.el (tvi970-set-keypad-mode): * lisp/term/vt100.el (vt100-wide-mode): * lisp/textmodes/flyspell.el (flyspell-mode): * lisp/textmodes/ispell.el (ispell-minor-mode): * lisp/textmodes/nroff-mode.el (nroff-electric-mode): * lisp/textmodes/paragraphs.el (use-hard-newlines): * lisp/textmodes/refill.el (refill-mode): * lisp/textmodes/reftex.el (reftex-mode): * lisp/textmodes/rst.el (rst-minor-mode): * lisp/textmodes/sgml-mode.el (html-autoview-mode) (sgml-electric-tag-pair-mode): * lisp/textmodes/tex-mode.el (latex-electric-env-pair-mode): * lisp/vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode): * lisp/emulation/crisp.el (crisp-mode): * lisp/emacs-lisp/eldoc.el (eldoc-mode): * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new minor mode behavior. * lisp/erc/erc-fill.el (erc-fill-mode): * lisp/erc/erc-track.el (erc-track-minor-mode): Doc fix. * lisp/erc/erc.el (define-erc-module): Fix autogenerated docstring to reflect Emacs 24 minor mode changes. * lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24, calling a minor mode from Lisp with nil arg enables it, so we have to make the working a bit ambiguous here).
-rw-r--r--lisp/ChangeLog34
-rw-r--r--lisp/cedet/ChangeLog6
-rw-r--r--lisp/cedet/ede.el10
-rw-r--r--lisp/cedet/semantic.el6
-rw-r--r--lisp/emacs-lisp/checkdoc.el7
-rw-r--r--lisp/emacs-lisp/eldoc.el19
-rw-r--r--lisp/emulation/crisp.el6
-rw-r--r--lisp/emulation/cua-base.el21
-rw-r--r--lisp/erc/ChangeLog8
-rw-r--r--lisp/erc/erc-fill.el9
-rw-r--r--lisp/erc/erc-track.el15
-rw-r--r--lisp/erc/erc.el4
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-cite.el9
-rw-r--r--lisp/mail/footnote.el11
-rw-r--r--lisp/mail/mailabbrev.el10
-rw-r--r--lisp/net/goto-addr.el2
-rw-r--r--lisp/net/xesam.el6
-rw-r--r--lisp/progmodes/bug-reference.el5
-rw-r--r--lisp/progmodes/cap-words.el8
-rw-r--r--lisp/progmodes/compile.el28
-rw-r--r--lisp/progmodes/gud.el5
-rw-r--r--lisp/progmodes/hideif.el14
-rw-r--r--lisp/progmodes/idlw-shell.el18
-rw-r--r--lisp/progmodes/subword.el20
-rw-r--r--lisp/progmodes/vhdl-mode.el8
-rw-r--r--lisp/progmodes/which-func.el14
-rw-r--r--lisp/term/tvi970.el17
-rw-r--r--lisp/term/vt100.el5
-rw-r--r--lisp/textmodes/flyspell.el14
-rw-r--r--lisp/textmodes/ispell.el20
-rw-r--r--lisp/textmodes/nroff-mode.el16
-rw-r--r--lisp/textmodes/paragraphs.el22
-rw-r--r--lisp/textmodes/refill.el15
-rw-r--r--lisp/textmodes/reftex.el8
-rw-r--r--lisp/textmodes/rst.el9
-rw-r--r--lisp/textmodes/sgml-mode.el20
-rw-r--r--lisp/textmodes/tex-mode.el10
-rw-r--r--lisp/url/ChangeLog4
-rw-r--r--lisp/url/url-handlers.el5
-rw-r--r--lisp/vc/diff-mode.el19
41 files changed, 336 insertions, 157 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 149e8be4133..1b012694607 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,37 @@
12011-10-20 Chong Yidong <cyd@gnu.org>
2
3 * emulation/cua-base.el (cua-mode):
4 * mail/footnote.el (footnote-mode):
5 * mail/mailabbrev.el (mail-abbrevs-mode):
6 * net/xesam.el (xesam-minor-mode):
7 * progmodes/bug-reference.el (bug-reference-mode):
8 * progmodes/cap-words.el (capitalized-words-mode):
9 * progmodes/compile.el (compilation-minor-mode)
10 (compilation-shell-minor-mode):
11 * progmodes/gud.el (gud-tooltip-mode):
12 * progmodes/hideif.el (hide-ifdef-mode):
13 * progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode):
14 * progmodes/subword.el (subword-mode):
15 * progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
16 * progmodes/which-func.el (which-function-mode):
17 * term/tvi970.el (tvi970-set-keypad-mode):
18 * term/vt100.el (vt100-wide-mode):
19 * textmodes/flyspell.el (flyspell-mode):
20 * textmodes/ispell.el (ispell-minor-mode):
21 * textmodes/nroff-mode.el (nroff-electric-mode):
22 * textmodes/paragraphs.el (use-hard-newlines):
23 * textmodes/refill.el (refill-mode):
24 * textmodes/reftex.el (reftex-mode):
25 * textmodes/rst.el (rst-minor-mode):
26 * textmodes/sgml-mode.el (html-autoview-mode)
27 (sgml-electric-tag-pair-mode):
28 * textmodes/tex-mode.el (latex-electric-env-pair-mode):
29 * vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode):
30 * emulation/crisp.el (crisp-mode):
31 * emacs-lisp/eldoc.el (eldoc-mode):
32 * emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new
33 minor mode behavior.
34
12011-10-19 Juri Linkov <juri@jurta.org> 352011-10-19 Juri Linkov <juri@jurta.org>
2 36
3 * descr-text.el (describe-char): Add #x2010 and #x2011 to 37 * descr-text.el (describe-char): Add #x2010 and #x2011 to
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 093e592c475..e622715ea2d 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,9 @@
12011-10-19 Chong Yidong <cyd@gnu.org>
2
3 * ede.el (ede-minor-mode,global-ede-mode):
4 * semantic.el (semantic-mode): Doc fix to reflect new
5 define-minor-mode calling behavior.
6
12011-07-30 Chong Yidong <cyd@stupidchicken.com> 72011-07-30 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * semantic/grammar.el (semantic-grammar-insert-defanalyzers): Fix 9 * semantic/grammar.el (semantic-grammar-insert-defanalyzers): Fix
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el
index 307ccfdadd7..2b5ca2ca3a2 100644
--- a/lisp/cedet/ede.el
+++ b/lisp/cedet/ede.el
@@ -398,8 +398,9 @@ To be used in hook functions."
398 398
399(define-minor-mode ede-minor-mode 399(define-minor-mode ede-minor-mode
400 "Toggle EDE (Emacs Development Environment) minor mode. 400 "Toggle EDE (Emacs Development Environment) minor mode.
401With non-nil argument ARG, enable EDE minor mode if ARG is 401With a prefix argument ARG, enable EDE minor mode if ARG is
402positive; otherwise, disable it. 402positive, and disable it otherwise. If called from Lisp, enable
403EDE minor mode if ARG is omitted or nil.
403 404
404If this file is contained, or could be contained in an EDE 405If this file is contained, or could be contained in an EDE
405controlled project, then this mode is activated automatically 406controlled project, then this mode is activated automatically
@@ -458,8 +459,9 @@ ONOFF indicates enabling or disabling the mode."
458;;;###autoload 459;;;###autoload
459(define-minor-mode global-ede-mode 460(define-minor-mode global-ede-mode
460 "Toggle global EDE (Emacs Development Environment) mode. 461 "Toggle global EDE (Emacs Development Environment) mode.
461With non-nil argument ARG, enable global EDE mode if ARG is 462With a prefix argument ARG, enable global EDE mode if ARG is
462positive; otherwise, disable it. 463positive, and disable it otherwise. If called from Lisp, enable
464the mode if ARG is omitted or nil.
463 465
464This global minor mode enables `ede-minor-mode' in all buffers in 466This global minor mode enables `ede-minor-mode' in all buffers in
465an EDE controlled project." 467an EDE controlled project."
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index ce9af0e12b5..34d886b6807 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -1055,8 +1055,10 @@ The possible elements of this list include the following:
1055 1055
1056;;;###autoload 1056;;;###autoload
1057(define-minor-mode semantic-mode 1057(define-minor-mode semantic-mode
1058 "Toggle Semantic mode. 1058 "Toggle parser features (Semantic mode).
1059With ARG, turn Semantic mode on if ARG is positive, off otherwise. 1059With a prefix argument ARG, enable Semantic mode if ARG is
1060positive, and disable it otherwise. If called from Lisp, enable
1061Semantic mode if ARG is omitted or nil.
1060 1062
1061In Semantic mode, Emacs parses the buffers you visit for their 1063In Semantic mode, Emacs parses the buffers you visit for their
1062semantic content. This information is used by a variety of 1064semantic content. This information is used by a variety of
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 7eb6e6ef765..c9e32023187 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1237,9 +1237,10 @@ generating a buffered list of errors."
1237 1237
1238;;;###autoload 1238;;;###autoload
1239(define-minor-mode checkdoc-minor-mode 1239(define-minor-mode checkdoc-minor-mode
1240 "Toggle Checkdoc minor mode, a mode for checking Lisp doc strings. 1240 "Toggle automatic docstring checking (Checkdoc minor mode).
1241With prefix ARG, turn Checkdoc minor mode on if ARG is positive, otherwise 1241With a prefix argument ARG, enable Checkdoc minor mode if ARG is
1242turn it off. 1242positive, and disable it otherwise. If called from Lisp, enable
1243the mode if ARG is omitted or nil.
1243 1244
1244In Checkdoc minor mode, the usual bindings for `eval-defun' which is 1245In Checkdoc minor mode, the usual bindings for `eval-defun' which is
1245bound to \\<checkdoc-minor-mode-map>\\[checkdoc-eval-defun] and `checkdoc-eval-current-buffer' are overridden to include 1246bound to \\<checkdoc-minor-mode-map>\\[checkdoc-eval-defun] and `checkdoc-eval-current-buffer' are overridden to include
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index cd9b779bee9..901b6d1bf6a 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -149,14 +149,17 @@ This is used to determine if `eldoc-idle-delay' is changed by the user.")
149 149
150;;;###autoload 150;;;###autoload
151(define-minor-mode eldoc-mode 151(define-minor-mode eldoc-mode
152 "Toggle ElDoc mode on or off. 152 "Toggle echo area display of Lisp objects at point (ElDoc mode).
153In ElDoc mode, the echo area displays information about a 153With a prefix argument ARG, enable ElDoc mode if ARG is positive,
154function or variable in the text where point is. If point is 154and disable it otherwise. If called from Lisp, enable ElDoc mode
155on a documented variable, it displays the first line of that 155if ARG is omitted or nil.
156variable's doc string. Otherwise it displays the argument list 156
157of the function called in the expression point is on. 157ElDoc mode is a buffer-local minor mode. When enabled, the echo
158 158area displays information about a function or variable in the
159With prefix ARG, turn ElDoc mode on if and only if ARG is positive." 159text where point is. If point is on a documented variable, it
160displays the first line of that variable's doc string. Otherwise
161it displays the argument list of the function called in the
162expression point is on."
160 :group 'eldoc :lighter eldoc-minor-mode-string 163 :group 'eldoc :lighter eldoc-minor-mode-string
161 (setq eldoc-last-message nil) 164 (setq eldoc-last-message nil)
162 (if eldoc-mode 165 (if eldoc-mode
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el
index b2806e8f8eb..567a57949b3 100644
--- a/lisp/emulation/crisp.el
+++ b/lisp/emulation/crisp.el
@@ -349,8 +349,10 @@ normal CRiSP binding) and when it is nil M-x will run
349 349
350;;;###autoload 350;;;###autoload
351(define-minor-mode crisp-mode 351(define-minor-mode crisp-mode
352 "Toggle CRiSP/Brief emulation minor mode. 352 "Toggle CRiSP/Brief emulation (CRiSP mode).
353With ARG, turn CRiSP mode on if ARG is positive, off otherwise." 353With a prefix argument ARG, enable CRiSP mode if ARG is positive,
354and disable it otherwise. If called from Lisp, enable the mode
355if ARG is omitted or nil."
354 :keymap crisp-mode-map 356 :keymap crisp-mode-map
355 :lighter crisp-mode-modeline-string 357 :lighter crisp-mode-modeline-string
356 (when crisp-mode 358 (when crisp-mode
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index b643d521ad6..918402dc581 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -1531,16 +1531,17 @@ If ARG is the atom `-', scroll upward by nearly full screen."
1531 1531
1532;;;###autoload 1532;;;###autoload
1533(define-minor-mode cua-mode 1533(define-minor-mode cua-mode
1534 "Toggle CUA key-binding mode. 1534 "Toggle Common User Access style editing (CUA mode).
1535When enabled, using shifted movement keys will activate the 1535With a prefix argument ARG, enable CUA mode if ARG is positive,
1536region (and highlight the region using `transient-mark-mode'), 1536and disable it otherwise. If called from Lisp, enable the mode
1537and typed text replaces the active selection. 1537if ARG is omitted or nil.
1538 1538
1539Also when enabled, you can use C-z, C-x, C-c, and C-v to undo, 1539CUA mode is a global minor mode. When enabled, typed text
1540cut, copy, and paste in addition to the normal Emacs bindings. 1540replaces the active selection, and you can use C-z, C-x, C-c, and
1541The C-x and C-c keys only do cut and copy when the region is 1541C-v to undo, cut, copy, and paste in addition to the normal Emacs
1542active, so in most cases, they do not conflict with the normal 1542bindings. The C-x and C-c keys only do cut and copy when the
1543function of these prefix keys. 1543region is active, so in most cases, they do not conflict with the
1544normal function of these prefix keys.
1544 1545
1545If you really need to perform a command which starts with one of 1546If you really need to perform a command which starts with one of
1546the prefix keys even when the region is active, you have three 1547the prefix keys even when the region is active, you have three
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index 7c7f10de2c8..d72d3f51bb1 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,11 @@
12011-10-20 Chong Yidong <cyd@gnu.org>
2
3 * erc.el (define-erc-module): Fix autogenerated docstring to
4 reflect Emacs 24 minor mode changes.
5
6 * erc-fill.el (erc-fill-mode):
7 * erc-track.el (erc-track-minor-mode): Doc fix.
8
12011-09-23 Antoine Levitt <antoine.levitt@gmail.com> 92011-09-23 Antoine Levitt <antoine.levitt@gmail.com>
2 10
3 * erc-button.el (erc-button-next-function): Scoping fix 11 * erc-button.el (erc-button-next-function): Scoping fix
diff --git a/lisp/erc/erc-fill.el b/lisp/erc/erc-fill.el
index 0b9a4051d65..3940cfbc9a4 100644
--- a/lisp/erc/erc-fill.el
+++ b/lisp/erc/erc-fill.el
@@ -39,9 +39,12 @@
39;;;###autoload (autoload 'erc-fill-mode "erc-fill" nil t) 39;;;###autoload (autoload 'erc-fill-mode "erc-fill" nil t)
40(erc-define-minor-mode erc-fill-mode 40(erc-define-minor-mode erc-fill-mode
41 "Toggle ERC fill mode. 41 "Toggle ERC fill mode.
42With numeric arg, turn ERC fill mode on if and only if arg is 42With a prefix argument ARG, enable ERC fill mode if ARG is
43positive. In ERC fill mode, messages in the channel buffers are 43positive, and disable it otherwise. If called from Lisp, enable
44filled." 44the mode if ARG is omitted or nil.
45
46ERC fill mode is a global minor mode. When enabled, messages in
47the channel buffers are filled."
45 nil nil nil 48 nil nil nil
46 :global t :group 'erc-fill 49 :global t :group 'erc-fill
47 (if erc-fill-mode 50 (if erc-fill-mode
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el
index 28c1ced91c6..b663aeed423 100644
--- a/lisp/erc/erc-track.el
+++ b/lisp/erc/erc-track.el
@@ -588,12 +588,15 @@ START is the minimum length of the name used."
588 588
589;;;###autoload 589;;;###autoload
590(define-minor-mode erc-track-minor-mode 590(define-minor-mode erc-track-minor-mode
591 "Global minor mode for tracking ERC buffers and showing activity in the 591 "Toggle mode line display of ERC activity (ERC Track minor mode).
592mode line. 592With a prefix argument ARG, enable ERC Track minor mode if ARG is
593 593positive, and disable it otherwise. If called from Lisp, enable
594This exists for the sole purpose of providing the C-c C-SPC and 594the mode if ARG is omitted or nil.
595C-c C-@ keybindings. Make sure that you have enabled the track 595
596module, otherwise the keybindings will not do anything useful." 596ERC Track minor mode is a global minor mode. It exists for the
597sole purpose of providing the C-c C-SPC and C-c C-@ keybindings.
598Make sure that you have enabled the track module, otherwise the
599keybindings will not do anything useful."
597 :init-value nil 600 :init-value nil
598 :lighter "" 601 :lighter ""
599 :keymap erc-track-minor-mode-map 602 :keymap erc-track-minor-mode-map
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index a4040b239c1..2d8c2565f69 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -1242,7 +1242,9 @@ Example:
1242 (erc-define-minor-mode 1242 (erc-define-minor-mode
1243 ,mode 1243 ,mode
1244 ,(format "Toggle ERC %S mode. 1244 ,(format "Toggle ERC %S mode.
1245With arg, turn ERC %S mode on if and only if arg is positive. 1245With a prefix argument ARG, enable %s if ARG is positive,
1246and disable it otherwise. If called from Lisp, enable the mode
1247if ARG is omitted or nil.
1246%s" name name doc) 1248%s" name name doc)
1247 nil nil nil 1249 nil nil nil
1248 :global ,(not local-p) :group (quote ,group) 1250 :global ,(not local-p) :group (quote ,group)
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index b7f41e22e50..cb4703885f5 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12011-10-20 Chong Yidong <cyd@gnu.org>
2
3 * gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24,
4 calling a minor mode from Lisp with nil arg enables it, so we have to
5 make the working a bit ambiguous here).
6
12011-10-18 Teodor Zlatanov <tzz@lifelogs.com> 72011-10-18 Teodor Zlatanov <tzz@lifelogs.com>
2 8
3 * gnus-util.el (gnus-bound-and-true-p): Macro for XEmacs compatibility. 9 * gnus-util.el (gnus-bound-and-true-p): Macro for XEmacs compatibility.
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el
index d205437b811..7c36311356f 100644
--- a/lisp/gnus/gnus-cite.el
+++ b/lisp/gnus/gnus-cite.el
@@ -1224,13 +1224,8 @@ Returns nil if there is no such line before LIMIT, t otherwise."
1224 (autoload 'font-lock-set-defaults "font-lock"))) 1224 (autoload 'font-lock-set-defaults "font-lock")))
1225 1225
1226(define-minor-mode gnus-message-citation-mode 1226(define-minor-mode gnus-message-citation-mode
1227 "Toggle `gnus-message-citation-mode' in current buffer. 1227 "Minor mode providing more font-lock support for nested citations.
1228This buffer local minor mode provides additional font-lock support for 1228When enabled, it automatically turns on `font-lock-mode'."
1229nested citations.
1230With prefix ARG, turn `gnus-message-citation-mode' on if and only if ARG
1231is positive.
1232Automatically turn `font-lock-mode' on when `gnus-message-citation-mode'
1233is turned on."
1234 nil ;; init-value 1229 nil ;; init-value
1235 "" ;; lighter 1230 "" ;; lighter
1236 nil ;; keymap 1231 nil ;; keymap
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index 8dac3be0e5f..0f1669562de 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -788,9 +788,14 @@ being set it is automatically widened."
788 788
789;;;###autoload 789;;;###autoload
790(define-minor-mode footnote-mode 790(define-minor-mode footnote-mode
791 "Toggle footnote minor mode. 791 "Toggle Footnote mode.
792This minor mode provides footnote support for `message-mode'. To get 792With a prefix argument ARG, enable Footnote mode if ARG is
793started, play around with the following keys: 793positive, and disable it otherwise. If called from Lisp, enable
794the mode if ARG is omitted or nil.
795
796Footnode mode is a buffer-local minor mode. If enabled, it
797provides footnote support for `message-mode'. To get started,
798play around with the following keys:
794\\{footnote-minor-mode-map}" 799\\{footnote-minor-mode-map}"
795 :lighter footnote-mode-line-string 800 :lighter footnote-mode-line-string
796 :keymap footnote-minor-mode-map 801 :keymap footnote-minor-mode-map
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el
index 901eb002dc1..2472b8a1870 100644
--- a/lisp/mail/mailabbrev.el
+++ b/lisp/mail/mailabbrev.el
@@ -133,7 +133,15 @@
133 133
134;;;###autoload 134;;;###autoload
135(define-minor-mode mail-abbrevs-mode 135(define-minor-mode mail-abbrevs-mode
136 "Non-nil means expand mail aliases as abbrevs, in certain message headers." 136 "Toggle abbrev expansion of mail aliases (Mail Abbrevs mode).
137With a prefix argument ARG, enable Mail Abbrevs mode if ARG is
138positive, and disable it otherwise. If called from Lisp, enable
139the mode if ARG is omitted or nil.
140
141Mail Abbrevs mode is a global minor mode. When enabled,
142abbrev-like expansion is performed when editing certain mail
143headers (those specified by `mail-abbrev-mode-regexp'), based on
144the entries in your `mail-personal-alias-file'."
137 :global t 145 :global t
138 :group 'mail-abbrev 146 :group 'mail-abbrev
139 :version "20.3" 147 :version "20.3"
diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el
index 4e78a7d42c0..1432c1e516b 100644
--- a/lisp/net/goto-addr.el
+++ b/lisp/net/goto-addr.el
@@ -288,7 +288,7 @@ Also fontifies the buffer appropriately (see `goto-address-fontify-p' and
288 288
289;;;###autoload 289;;;###autoload
290(define-minor-mode goto-address-prog-mode 290(define-minor-mode goto-address-prog-mode
291 "Turn on `goto-address-mode', but only in comments and strings." 291 "Like `goto-address-mode', but only for comments and strings."
292 nil 292 nil
293 "" 293 ""
294 nil 294 nil
diff --git a/lisp/net/xesam.el b/lisp/net/xesam.el
index 64c26cfb2c9..56e9cb68c61 100644
--- a/lisp/net/xesam.el
+++ b/lisp/net/xesam.el
@@ -516,9 +516,9 @@ engine specific, widget :notify function to visualize xesam:url."
516 516
517(define-minor-mode xesam-minor-mode 517(define-minor-mode xesam-minor-mode
518 "Toggle Xesam minor mode. 518 "Toggle Xesam minor mode.
519With no argument, this command toggles the mode. 519With a prefix argument ARG, enable Xesam minor mode if ARG is
520Non-null prefix argument turns on the mode. 520positive, and disable it otherwise. If called from Lisp, enable
521Null prefix argument turns off the mode. 521the mode if ARG is omitted or nil.
522 522
523When Xesam minor mode is enabled, all text which matches a 523When Xesam minor mode is enabled, all text which matches a
524previous Xesam query in this buffer is highlighted." 524previous Xesam query in this buffer is highlighted."
diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el
index 8ec379afab2..12eddfef1aa 100644
--- a/lisp/progmodes/bug-reference.el
+++ b/lisp/progmodes/bug-reference.el
@@ -127,7 +127,10 @@ so that it is considered safe, see `enable-local-variables'.")
127 127
128;;;###autoload 128;;;###autoload
129(define-minor-mode bug-reference-mode 129(define-minor-mode bug-reference-mode
130 "Minor mode to buttonize bugzilla references in the current buffer." 130 "Toggle hyperlinking bug references in the buffer (Bug Reference mode).
131With a prefix argument ARG, enable Bug Reference mode if ARG is
132positive, and disable it otherwise. If called from Lisp, enable
133the mode if ARG is omitted or nil."
131 nil 134 nil
132 "" 135 ""
133 nil 136 nil
diff --git a/lisp/progmodes/cap-words.el b/lisp/progmodes/cap-words.el
index 0ce84ae33a7..d7b7dfef1ec 100644
--- a/lisp/progmodes/cap-words.el
+++ b/lisp/progmodes/cap-words.el
@@ -60,9 +60,13 @@ Looks for word boundaries before capitals."
60;;;###autoload 60;;;###autoload
61(define-minor-mode capitalized-words-mode 61(define-minor-mode capitalized-words-mode
62 "Toggle Capitalized Words mode. 62 "Toggle Capitalized Words mode.
63With a prefix argument ARG, enable Capitalized Words mode if ARG
64is positive, and disable it otherwise. If called from Lisp,
65enable the mode if ARG is omitted or nil.
63 66
64In this minor mode, a word boundary occurs immediately before an 67Capitalized Words mode is a buffer-local minor mode. When
65uppercase letter in a symbol. This is in addition to all the normal 68enabled, a word boundary occurs immediately before an uppercase
69letter in a symbol. This is in addition to all the normal
66boundaries given by the syntax and category tables. There is no 70boundaries given by the syntax and category tables. There is no
67restriction to ASCII. 71restriction to ASCII.
68 72
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 619c423902c..156c90159cd 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1968,12 +1968,15 @@ Optional argument MINOR indicates this is called from
1968 1968
1969;;;###autoload 1969;;;###autoload
1970(define-minor-mode compilation-shell-minor-mode 1970(define-minor-mode compilation-shell-minor-mode
1971 "Toggle compilation shell minor mode. 1971 "Toggle Compilation Shell minor mode.
1972With arg, turn compilation mode on if and only if arg is positive. 1972With a prefix argument ARG, enable Compilation Shell minor mode
1973In this minor mode, all the error-parsing commands of the 1973if ARG is positive, and disable it otherwise. If called from
1974Compilation major mode are available but bound to keys that don't 1974Lisp, enable the mode if ARG is omitted or nil.
1975collide with Shell mode. See `compilation-mode'. 1975
1976Turning the mode on runs the normal hook `compilation-shell-minor-mode-hook'." 1976When Compilation Shell minor mode is enabled, all the
1977error-parsing commands of the Compilation major mode are
1978available but bound to keys that don't collide with Shell mode.
1979See `compilation-mode'."
1977 nil " Shell-Compile" 1980 nil " Shell-Compile"
1978 :group 'compilation 1981 :group 'compilation
1979 (if compilation-shell-minor-mode 1982 (if compilation-shell-minor-mode
@@ -1982,11 +1985,14 @@ Turning the mode on runs the normal hook `compilation-shell-minor-mode-hook'."
1982 1985
1983;;;###autoload 1986;;;###autoload
1984(define-minor-mode compilation-minor-mode 1987(define-minor-mode compilation-minor-mode
1985 "Toggle compilation minor mode. 1988 "Toggle Compilation minor mode.
1986With arg, turn compilation mode on if and only if arg is positive. 1989With a prefix argument ARG, enable Compilation minor mode if ARG
1987In this minor mode, all the error-parsing commands of the 1990is positive, and disable it otherwise. If called from Lisp,
1988Compilation major mode are available. See `compilation-mode'. 1991enable the mode if ARG is omitted or nil.
1989Turning the mode on runs the normal hook `compilation-minor-mode-hook'." 1992
1993When Compilation minor mode is enabled, all the error-parsing
1994commands of Compilation major mode are available. See
1995`compilation-mode'."
1990 nil " Compilation" 1996 nil " Compilation"
1991 :group 'compilation 1997 :group 'compilation
1992 (if compilation-minor-mode 1998 (if compilation-minor-mode
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 25a23fed293..7b3a2893610 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -3255,7 +3255,10 @@ Treats actions as defuns."
3255 3255
3256;;;###autoload 3256;;;###autoload
3257(define-minor-mode gud-tooltip-mode 3257(define-minor-mode gud-tooltip-mode
3258 "Toggle the display of GUD tooltips." 3258 "Toggle the display of GUD tooltips.
3259With a prefix argument ARG, enable the feature if ARG is
3260positive, and disable it otherwise. If called from Lisp, enable
3261it if ARG is omitted or nil."
3259 :global t 3262 :global t
3260 :group 'gud 3263 :group 'gud
3261 :group 'tooltip 3264 :group 'tooltip
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index 48d1ac4b85e..374a45acec6 100644
--- a/lisp/progmodes/hideif.el
+++ b/lisp/progmodes/hideif.el
@@ -214,11 +214,15 @@
214 214
215;;;###autoload 215;;;###autoload
216(define-minor-mode hide-ifdef-mode 216(define-minor-mode hide-ifdef-mode
217 "Toggle Hide-Ifdef mode. This is a minor mode, albeit a large one. 217 "Toggle features to hide/show #ifdef blocks (Hide-Ifdef mode).
218With ARG, turn Hide-Ifdef mode on if arg is positive, off otherwise. 218With a prefix argument ARG, enable Hide-Ifdef mode if ARG is
219In Hide-Ifdef mode, code within #ifdef constructs that the C preprocessor 219positive, and disable it otherwise. If called from Lisp, enable
220would eliminate may be hidden from view. Several variables affect 220the mode if ARG is omitted or nil.
221how the hiding is done: 221
222Hide-Ifdef mode is a buffer-local minor mode for use with C and
223C-like major modes. When enabled, code within #ifdef constructs
224that the C preprocessor would eliminate may be hidden from view.
225Several variables affect how the hiding is done:
222 226
223`hide-ifdef-env' 227`hide-ifdef-env'
224 An association list of defined and undefined symbols for the 228 An association list of defined and undefined symbols for the
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index b2cd24f0f98..18f47d14a3f 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -4277,16 +4277,14 @@ Otherwise, just expand the file name."
4277(defvar idlwave-shell-electric-debug-buffers nil) 4277(defvar idlwave-shell-electric-debug-buffers nil)
4278 4278
4279(define-minor-mode idlwave-shell-electric-debug-mode 4279(define-minor-mode idlwave-shell-electric-debug-mode
4280 "Toggle Electric Debug mode. 4280 "Toggle Idlwave Shell Electric Debug mode.
4281With no argument, this command toggles the mode. 4281With a prefix argument ARG, enable the mode if ARG is positive,
4282Non-null prefix argument turns on the mode. 4282and disable it otherwise. If called from Lisp, enable the mode
4283Null prefix argument turns off the mode. 4283if ARG is omitted or nil.
4284 4284
4285When Electric Debug mode is enabled, the many debugging commands are 4285When Idlwave Shell Electric Debug mode is enabled, the Idlwave
4286available as single key sequences." 4286Shell debugging commands are available as single key sequences."
4287nil 4287 nil " *Debugging*" idlwave-shell-electric-debug-mode-map)
4288" *Debugging*"
4289idlwave-shell-electric-debug-mode-map)
4290 4288
4291(add-hook 4289(add-hook
4292 'idlwave-shell-electric-debug-mode-on-hook 4290 'idlwave-shell-electric-debug-mode-on-hook
diff --git a/lisp/progmodes/subword.el b/lisp/progmodes/subword.el
index 1a403f50b1b..9c61da89008 100644
--- a/lisp/progmodes/subword.el
+++ b/lisp/progmodes/subword.el
@@ -94,13 +94,19 @@
94 94
95;;;###autoload 95;;;###autoload
96(define-minor-mode subword-mode 96(define-minor-mode subword-mode
97 "Mode enabling subword movement and editing keys. 97 "Toggle subword movement and editing (Subword mode).
98In spite of GNU Coding Standards, it is popular to name a symbol by 98With a prefix argument ARG, enable Subword mode if ARG is
99mixing uppercase and lowercase letters, e.g. \"GtkWidget\", 99positive, and disable it otherwise. If called from Lisp, enable
100\"EmacsFrameClass\", \"NSGraphicsContext\", etc. Here we call these 100the mode if ARG is omitted or nil.
101mixed case symbols `nomenclatures'. Also, each capitalized (or 101
102completely uppercase) part of a nomenclature is called a `subword'. 102Subword mode is a buffer-local minor mode. Enabling it remaps
103Here are some examples: 103word-based editing commands to subword-based commands that handle
104symbols with mixed uppercase and lowercase letters,
105e.g. \"GtkWidget\", \"EmacsFrameClass\", \"NSGraphicsContext\".
106
107Here we call these mixed case symbols `nomenclatures'. Each
108capitalized (or completely uppercase) part of a nomenclature is
109called a `subword'. Here are some examples:
104 110
105 Nomenclature Subwords 111 Nomenclature Subwords
106 =========================================================== 112 ===========================================================
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 9aaf3059b78..d7aa82aee1b 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -8029,12 +8029,16 @@ project is defined."
8029 8029
8030(define-minor-mode vhdl-electric-mode 8030(define-minor-mode vhdl-electric-mode
8031 "Toggle VHDL electric mode. 8031 "Toggle VHDL electric mode.
8032Turn on if ARG positive, turn off if ARG negative, toggle if ARG zero or nil." 8032With a prefix argument ARG, enable the mode if ARG is positive,
8033and disable it otherwise. If called from Lisp, enable it if ARG
8034is omitted or nil."
8033 :global t) 8035 :global t)
8034 8036
8035(define-minor-mode vhdl-stutter-mode 8037(define-minor-mode vhdl-stutter-mode
8036 "Toggle VHDL stuttering mode. 8038 "Toggle VHDL stuttering mode.
8037Turn on if ARG positive, turn off if ARG negative, toggle if ARG zero or nil." 8039With a prefix argument ARG, enable the mode if ARG is positive,
8040and disable it otherwise. If called from Lisp, enable it if ARG
8041is omitted or nil."
8038 :global t) 8042 :global t)
8039 8043
8040;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 8044;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index 97e188139e9..e27d07854c8 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -236,12 +236,14 @@ It creates the Imenu index for the buffer, if necessary."
236;; This is the name people would normally expect. 236;; This is the name people would normally expect.
237;;;###autoload 237;;;###autoload
238(define-minor-mode which-function-mode 238(define-minor-mode which-function-mode
239 "Toggle Which Function mode, globally. 239 "Toggle mode line display of current function (Which Function mode).
240When Which Function mode is enabled, the current function name is 240With a prefix argument ARG, enable Which Function mode if ARG is
241continuously displayed in the mode line, in certain major modes. 241positive, and disable it otherwise. If called from Lisp, enable
242 242the mode if ARG is omitted or nil.
243With prefix ARG, turn Which Function mode on if arg is positive, 243
244and off otherwise." 244Which Function mode is a global minor mode. When enabled, the
245current function name is continuously displayed in the mode line,
246in certain major modes."
245 :global t :group 'which-func 247 :global t :group 'which-func
246 (when (timerp which-func-update-timer) 248 (when (timerp which-func-update-timer)
247 (cancel-timer which-func-update-timer)) 249 (cancel-timer which-func-update-timer))
diff --git a/lisp/term/tvi970.el b/lisp/term/tvi970.el
index 5d852e52105..e154074a033 100644
--- a/lisp/term/tvi970.el
+++ b/lisp/term/tvi970.el
@@ -104,14 +104,17 @@
104 104
105;; Should keypad numbers send ordinary digits or distinct escape sequences? 105;; Should keypad numbers send ordinary digits or distinct escape sequences?
106(define-minor-mode tvi970-set-keypad-mode 106(define-minor-mode tvi970-set-keypad-mode
107 "Set the current mode of the TVI 970 numeric keypad. 107 "Toggle alternate keypad mode on TVI 970 keypad.
108In ``numeric keypad mode'', the number keys on the keypad act as 108With a prefix argument ARG, enable the mode if ARG is positive,
109ordinary digits. In ``alternate keypad mode'', the keys send distinct 109and disable it otherwise. If called from Lisp, enable the mode
110escape sequences, meaning that they can have their own bindings, 110if ARG is omitted or nil.
111
112In ``alternate keypad mode'', the keys send distinct escape
113sequences, meaning that they can have their own bindings,
111independent of the normal number keys. 114independent of the normal number keys.
112With no argument, toggle between the two possible modes. 115
113With a positive argument, select alternate keypad mode. 116When disabled, the terminal enters ``numeric keypad mode'', in
114With a negative argument, select numeric keypad mode." 117which the keypad's keys act as ordinary digits."
115 :variable (terminal-parameter nil 'tvi970-keypad-numeric) 118 :variable (terminal-parameter nil 'tvi970-keypad-numeric)
116 (send-string-to-terminal 119 (send-string-to-terminal
117 (if (terminal-parameter nil 'tvi970-keypad-numeric) "\e=" "\e>"))) 120 (if (terminal-parameter nil 'tvi970-keypad-numeric) "\e=" "\e>")))
diff --git a/lisp/term/vt100.el b/lisp/term/vt100.el
index 406c20a0e81..ca16f356b20 100644
--- a/lisp/term/vt100.el
+++ b/lisp/term/vt100.el
@@ -42,8 +42,9 @@
42;;; Controlling the screen width. 42;;; Controlling the screen width.
43(define-minor-mode vt100-wide-mode 43(define-minor-mode vt100-wide-mode
44 "Toggle 132/80 column mode for vt100s. 44 "Toggle 132/80 column mode for vt100s.
45With positive argument, switch to 132-column mode. 45With a prefix argument ARG, switch to 132-column mode if ARG is
46With negative argument, switch to 80-column mode." 46positive, and 80-column mode otherwise. If called from Lisp,
47switch to 132-column mode if ARG is omitted or nil."
47 :global t :init-value (= (frame-width) 132) 48 :global t :init-value (= (frame-width) 132)
48 (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l")) 49 (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l"))
49 (set-frame-width terminal-frame (if vt100-wide-mode 132 80))) 50 (set-frame-width terminal-frame (if vt100-wide-mode 132 80)))
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index d496298768d..4a57d00d702 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -469,12 +469,14 @@ See also `flyspell-duplicate-distance'."
469;;;###autoload(defvar flyspell-mode nil) 469;;;###autoload(defvar flyspell-mode nil)
470;;;###autoload 470;;;###autoload
471(define-minor-mode flyspell-mode 471(define-minor-mode flyspell-mode
472 "Minor mode performing on-the-fly spelling checking. 472 "Toggle on-the-fly spell checking (Flyspell mode).
473This spawns a single Ispell process and checks each word. 473With a prefix argument ARG, enable Flyspell mode if ARG is
474The default flyspell behavior is to highlight incorrect words. 474positive, and disable it otherwise. If called from Lisp, enable
475With no argument, this command toggles Flyspell mode. 475the mode if ARG is omitted or nil.
476With a prefix argument ARG, turn Flyspell minor mode on if ARG is positive, 476
477otherwise turn it off. 477Flyspell mode is a buffer-local minor mode. When enabled, it
478spawns a single Ispell process and checks each word. The default
479flyspell behavior is to highlight incorrect words.
478 480
479Bindings: 481Bindings:
480\\[ispell-word]: correct words (using Ispell). 482\\[ispell-word]: correct words (using Ispell).
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index b76b0a303df..62f899d1730 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -3462,15 +3462,21 @@ available on the net."
3462 3462
3463;;;###autoload 3463;;;###autoload
3464(define-minor-mode ispell-minor-mode 3464(define-minor-mode ispell-minor-mode
3465 "Toggle Ispell minor mode. 3465 "Toggle last-word spell checking (Ispell minor mode).
3466With prefix argument ARG, turn Ispell minor mode on if ARG is positive, 3466With a prefix argument ARG, enable Ispell minor mode if ARG is
3467otherwise turn it off. 3467positive, and disable it otherwise. If called from Lisp, enable
3468the mode if ARG is omitted or nil.
3468 3469
3469In Ispell minor mode, pressing SPC or RET 3470Ispell minor mode is a buffer-local mior mode. When enabled,
3470warns you if the previous word is incorrectly spelled. 3471typing SPC or RET warns you if the previous word is incorrectly
3472spelled.
3471 3473
3472All the buffer-local variables and dictionaries are ignored -- to read 3474All the buffer-local variables and dictionaries are ignored. To
3473them into the running ispell process, type \\[ispell-word] SPC." 3475read them into the running ispell process, type \\[ispell-word]
3476SPC.
3477
3478For spell-checking \"on the fly\", not just after typing SPC or
3479RET, use `flyspell-mode'."
3474 nil " Spell" ispell-minor-keymap) 3480 nil " Spell" ispell-minor-keymap)
3475 3481
3476(defun ispell-minor-check () 3482(defun ispell-minor-check ()
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index 8fb0bd85dab..1be78ed293f 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -297,11 +297,17 @@ automatically inserts the matching closing request after point."
297 (forward-char 1)))) 297 (forward-char 1))))
298 298
299(define-minor-mode nroff-electric-mode 299(define-minor-mode nroff-electric-mode
300 "Toggle `nroff-electric-newline' minor mode. 300 "Toggle automatic nroff request pairing (Nroff Electric mode).
301`nroff-electric-newline' forces Emacs to check for an nroff request at the 301With a prefix argument ARG, enable Nroff Electric mode if ARG is
302beginning of the line, and insert the matching closing request if necessary. 302positive, and disable it otherwise. If called from Lisp, enable
303This command toggles that mode (off->on, on->off), with an argument, 303the mode if ARG is omitted or nil.
304turns it on if arg is positive, otherwise off." 304
305Nroff Electric mode is a buffer-local minor mode, for use with
306`nroff-mode'. When enabled, Emacs checks for an nroff request at
307the beginning of the line, and inserts the matching closing
308request if necessary. This command toggles that mode (off->on,
309on->off), with an argument, turns it on if arg is positive,
310otherwise off."
305 :lighter " Electric" 311 :lighter " Electric"
306 (or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode"))) 312 (or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode")))
307 313
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index 8fd055f7d87..b47924bc1f2 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -35,19 +35,23 @@
35 35
36(put 'use-hard-newlines 'permanent-local t) 36(put 'use-hard-newlines 'permanent-local t)
37(define-minor-mode use-hard-newlines 37(define-minor-mode use-hard-newlines
38 "Minor mode to distinguish hard and soft newlines. 38 "Toggle distinguishing between hard and soft newlines.
39When active, the functions `newline' and `open-line' add the 39With a prefix argument ARG, enable the feature if ARG is
40positive, and disable it otherwise. If called from Lisp, enable
41it if ARG is omitted or nil.
42
43When enabled, the functions `newline' and `open-line' add the
40text-property `hard' to newlines that they insert, and a line is 44text-property `hard' to newlines that they insert, and a line is
41only considered as a candidate to match `paragraph-start' or 45only considered as a candidate to match `paragraph-start' or
42`paragraph-separate' if it follows a hard newline. 46`paragraph-separate' if it follows a hard newline.
43 47
44Prefix argument says to turn mode on if positive, off if negative. 48When enabling, if there are newlines in the buffer but no hard
45When the mode is turned on, if there are newlines in the buffer but no hard 49newlines, ask the user whether to mark as hard any newlines
46newlines, ask the user whether to mark as hard any newlines preceding a 50preceding a `paragraph-start' line. From a program, second arg
47`paragraph-start' line. From a program, second arg INSERT specifies whether 51INSERT specifies whether to do this; it can be `never' to change
48to do this; it can be `never' to change nothing, t or `always' to force 52nothing, t or `always' to force marking, `guess' to try to do the
49marking, `guess' to try to do the right thing with no questions, nil 53right thing with no questions, nil or anything else to ask the
50or anything else to ask the user. 54user.
51 55
52Newlines not marked hard are called \"soft\", and are always internal 56Newlines not marked hard are called \"soft\", and are always internal
53to paragraphs. The fill functions insert and delete only soft newlines." 57to paragraphs. The fill functions insert and delete only soft newlines."
diff --git a/lisp/textmodes/refill.el b/lisp/textmodes/refill.el
index 474872955b4..d60b7594c07 100644
--- a/lisp/textmodes/refill.el
+++ b/lisp/textmodes/refill.el
@@ -213,12 +213,17 @@ complex processing.")
213 213
214;;;###autoload 214;;;###autoload
215(define-minor-mode refill-mode 215(define-minor-mode refill-mode
216 "Toggle Refill minor mode. 216 "Toggle automatic refilling (Refill mode).
217With prefix arg, turn Refill mode on if arg is positive, otherwise turn it off. 217With a prefix argument ARG, enable Refill mode if ARG is
218positive, and disable it otherwise. If called from Lisp, enable
219the mode if ARG is omitted or nil.
218 220
219When Refill mode is on, the current paragraph will be formatted when 221Refill mode is a buffer-local minor mode. When enabled, the
220changes are made within it. Self-inserting characters only cause 222current paragraph is refilled as you edit. Self-inserting
221refilling if they would cause auto-filling." 223characters only cause refilling if they would cause
224auto-filling.
225
226For true \"word wrap\" behavior, use `visual-line-mode' instead."
222 :group 'refill 227 :group 'refill
223 :lighter " Refill" 228 :lighter " Refill"
224 :keymap '(("\177" . backward-delete-char-untabify)) 229 :keymap '(("\177" . backward-delete-char-untabify))
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 7e150bff997..6f6993980db 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -503,7 +503,13 @@
503(put 'reftex-mode :menu-tag "RefTeX Mode") 503(put 'reftex-mode :menu-tag "RefTeX Mode")
504;;;###autoload 504;;;###autoload
505(define-minor-mode reftex-mode 505(define-minor-mode reftex-mode
506 "Minor mode with distinct support for \\label, \\ref and \\cite in LaTeX. 506 "Toggle RefTeX mode.
507With a prefix argument ARG, enable RefTeX mode if ARG is
508positive, and disable it otherwise. If called from Lisp, enable
509the mode if ARG is omitted or nil.
510
511RefTeX mode is a buffer-local minor mode with distinct support
512for \\label, \\ref and \\cite in LaTeX.
507 513
508\\<reftex-mode-map>A Table of Contents of the entire (multifile) document with browsing 514\\<reftex-mode-map>A Table of Contents of the entire (multifile) document with browsing
509capabilities is available with `\\[reftex-toc]'. 515capabilities is available with `\\[reftex-toc]'.
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index c1ce950522c..f9fda7e0a74 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -442,11 +442,10 @@ font-locking of blocks.
442 442
443;;;###autoload 443;;;###autoload
444(define-minor-mode rst-minor-mode 444(define-minor-mode rst-minor-mode
445 "ReST Minor Mode. 445 "Toggle ReST minor mode.
446Toggle ReST minor mode. 446With a prefix argument ARG, enable ReST minor mode if ARG is
447With no argument, this command toggles the mode. 447positive, and disable it otherwise. If called from Lisp, enable
448Non-null prefix argument turns on the mode. 448the mode if ARG is omitted or nil.
449Null prefix argument turns off the mode.
450 449
451When ReST minor mode is enabled, the ReST mode keybindings 450When ReST minor mode is enabled, the ReST mode keybindings
452are installed on top of the major mode bindings. Use this 451are installed on top of the major mode bindings. Use this
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 314fbf9671b..be8dd9c9130 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -841,7 +841,14 @@ Return non-nil if we skipped over matched tags."
841 (delete-overlay (pop sgml-electric-tag-pair-overlays)))) 841 (delete-overlay (pop sgml-electric-tag-pair-overlays))))
842 842
843(define-minor-mode sgml-electric-tag-pair-mode 843(define-minor-mode sgml-electric-tag-pair-mode
844 "Automatically update the closing tag when editing the opening one." 844 "Toggle SGML Electric Tag Pair mode.
845With a prefix argument ARG, enable the mode if ARG is positive,
846and disable it otherwise. If called from Lisp, enable the mode
847if ARG is omitted or nil.
848
849SGML Electric Tag Pair mode is a buffer-local minor mode for use
850with `sgml-mode' and related maor modes. When enabled, editing
851an opening markup tag automatically updates the closing tag."
845 :lighter "/e" 852 :lighter "/e"
846 (if sgml-electric-tag-pair-mode 853 (if sgml-electric-tag-pair-mode
847 (progn 854 (progn
@@ -2024,9 +2031,14 @@ The third `match-string' will be the used in the menu.")
2024 (nreverse toc-index))) 2031 (nreverse toc-index)))
2025 2032
2026(define-minor-mode html-autoview-mode 2033(define-minor-mode html-autoview-mode
2027 "Toggle automatic viewing via `browse-url-of-buffer' upon saving buffer. 2034 "Toggle viewing of HTML files on save (HTML Autoview mode).
2028With positive prefix ARG always turns viewing on, with negative ARG always off. 2035With a prefix argument ARG, enable HTML Autoview mode if ARG is
2029Can be used as a value for `html-mode-hook'." 2036positive, and disable it otherwise. If called from Lisp, enable
2037the mode if ARG is omitted or nil.
2038
2039HTML Autoview mode is a buffer-local minor mode for use with
2040`html-mode'. If enabled, saving the file automatically runs
2041`browse-url-of-buffer' to view it."
2030 nil nil nil 2042 nil nil nil
2031 :group 'sgml 2043 :group 'sgml
2032 (if html-autoview-mode 2044 (if html-autoview-mode
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 428fc1db3a9..deb92fc0243 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -677,8 +677,14 @@ An alternative value is \" . \", if you use a font with a narrow period."
677 (put-text-property start end 'latex-env-pair t))) 677 (put-text-property start end 'latex-env-pair t)))
678 678
679(define-minor-mode latex-electric-env-pair-mode 679(define-minor-mode latex-electric-env-pair-mode
680 "Automatically update the \\end arg when editing the \\begin one. 680 "Toggle Latex Electric Env Pair mode.
681And vice-versa." 681With a prefix argument ARG, enable the mode if ARG is positive,
682and disable it otherwise. If called from Lisp, enable it if ARG
683is omitted or nil.
684
685Latex Electric Env Pair mode is a buffer-local minor mode for use
686with `latex-mode'. When enabled, typing a \\begin or \\end tag
687automatically inserts its partner."
682 :lighter "/e" 688 :lighter "/e"
683 (if latex-electric-env-pair-mode 689 (if latex-electric-env-pair-mode
684 (add-hook 'before-change-functions 690 (add-hook 'before-change-functions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index fbc267df44a..1b6890e5252 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,7 @@
12011-10-19 Chong Yidong <cyd@gnu.org>
2
3 * url-handlers.el (url-handler-mode): Doc fix.
4
12011-09-24 Christopher J. White <chris@grierwhite.com> (tiny change) 52011-09-24 Christopher J. White <chris@grierwhite.com> (tiny change)
2 6
3 * url-http.el (url-http-create-request): Avoid adding extra CRLF 7 * url-http.el (url-http-create-request): Avoid adding extra CRLF
diff --git a/lisp/url/url-handlers.el b/lisp/url/url-handlers.el
index fef0ef15e95..d5f7eb7dd36 100644
--- a/lisp/url/url-handlers.el
+++ b/lisp/url/url-handlers.el
@@ -100,7 +100,10 @@ particularly bad at this\).")
100 100
101;;;###autoload 101;;;###autoload
102(define-minor-mode url-handler-mode 102(define-minor-mode url-handler-mode
103 "Use URL to handle URL-like file names." 103 "Toggle using `url' library for URL filenames (URL Handler mode).
104With a prefix argument ARG, enable URL Handler mode if ARG is
105positive, and disable it otherwise. If called from Lisp, enable
106the mode if ARG is omitted or nil."
104 :global t :group 'url 107 :global t :group 'url
105 (if (not (boundp 'file-name-handler-alist)) 108 (if (not (boundp 'file-name-handler-alist))
106 ;; Can't be turned ON anyway. 109 ;; Can't be turned ON anyway.
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 392973e08fe..9f0fa584b0d 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -225,9 +225,16 @@ when editing big diffs)."
225 "Keymap for `diff-minor-mode'. See also `diff-mode-shared-map'.") 225 "Keymap for `diff-minor-mode'. See also `diff-mode-shared-map'.")
226 226
227(define-minor-mode diff-auto-refine-mode 227(define-minor-mode diff-auto-refine-mode
228 "Automatically highlight changes in detail as the user visits hunks. 228 "Toggle automatic diff hunk highlighting (Diff Auto Refine mode).
229When transitioning from disabled to enabled, 229With a prefix argument ARG, enable Diff Auto Refine mode if ARG
230try to refine the current hunk, as well." 230is positive, and disable it otherwise. If called from Lisp,
231enable the mode if ARG is omitted or nil.
232
233Diff Auto Refine mode is a buffer-local minor mode used with
234`diff-mode'. When enabled, Emacs automatically highlights
235changes in detail as the user visits hunks. When transitioning
236from disabled to enabled, it tries to refine the current hunk, as
237well."
231 :group 'diff-mode :init-value t :lighter nil ;; " Auto-Refine" 238 :group 'diff-mode :init-value t :lighter nil ;; " Auto-Refine"
232 (when diff-auto-refine-mode 239 (when diff-auto-refine-mode
233 (condition-case-no-debug nil (diff-refine-hunk) (error nil)))) 240 (condition-case-no-debug nil (diff-refine-hunk) (error nil))))
@@ -1306,7 +1313,11 @@ a diff with \\[diff-reverse-direction].
1306 1313
1307;;;###autoload 1314;;;###autoload
1308(define-minor-mode diff-minor-mode 1315(define-minor-mode diff-minor-mode
1309 "Minor mode for viewing/editing context diffs. 1316 "Toggle Diff minor mode.
1317With a prefix argument ARG, enable Diff minor mode if ARG is
1318positive, and disable it otherwise. If called from Lisp, enable
1319the mode if ARG is omitted or nil.
1320
1310\\{diff-minor-mode-map}" 1321\\{diff-minor-mode-map}"
1311 :group 'diff-mode :lighter " Diff" 1322 :group 'diff-mode :lighter " Diff"
1312 ;; FIXME: setup font-lock 1323 ;; FIXME: setup font-lock