diff options
| author | Chong Yidong | 2011-10-19 20:26:14 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-10-19 20:26:14 -0400 |
| commit | ac6c8639bdb115cf57c65a383b4564aa98505389 (patch) | |
| tree | 7271460be2206ea711f46b06e895b6b701976769 | |
| parent | aa42ab43f2e3ea06adb21f82abb3d4c502bc9d40 (diff) | |
| download | emacs-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).
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-10-19 Juri Linkov <juri@jurta.org> | 35 | 2011-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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-07-30 Chong Yidong <cyd@stupidchicken.com> | 7 | 2011-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. |
| 401 | With non-nil argument ARG, enable EDE minor mode if ARG is | 401 | With a prefix argument ARG, enable EDE minor mode if ARG is |
| 402 | positive; otherwise, disable it. | 402 | positive, and disable it otherwise. If called from Lisp, enable |
| 403 | EDE minor mode if ARG is omitted or nil. | ||
| 403 | 404 | ||
| 404 | If this file is contained, or could be contained in an EDE | 405 | If this file is contained, or could be contained in an EDE |
| 405 | controlled project, then this mode is activated automatically | 406 | controlled 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. |
| 461 | With non-nil argument ARG, enable global EDE mode if ARG is | 462 | With a prefix argument ARG, enable global EDE mode if ARG is |
| 462 | positive; otherwise, disable it. | 463 | positive, and disable it otherwise. If called from Lisp, enable |
| 464 | the mode if ARG is omitted or nil. | ||
| 463 | 465 | ||
| 464 | This global minor mode enables `ede-minor-mode' in all buffers in | 466 | This global minor mode enables `ede-minor-mode' in all buffers in |
| 465 | an EDE controlled project." | 467 | an 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). |
| 1059 | With ARG, turn Semantic mode on if ARG is positive, off otherwise. | 1059 | With a prefix argument ARG, enable Semantic mode if ARG is |
| 1060 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 1061 | Semantic mode if ARG is omitted or nil. | ||
| 1060 | 1062 | ||
| 1061 | In Semantic mode, Emacs parses the buffers you visit for their | 1063 | In Semantic mode, Emacs parses the buffers you visit for their |
| 1062 | semantic content. This information is used by a variety of | 1064 | semantic 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). |
| 1241 | With prefix ARG, turn Checkdoc minor mode on if ARG is positive, otherwise | 1241 | With a prefix argument ARG, enable Checkdoc minor mode if ARG is |
| 1242 | turn it off. | 1242 | positive, and disable it otherwise. If called from Lisp, enable |
| 1243 | the mode if ARG is omitted or nil. | ||
| 1243 | 1244 | ||
| 1244 | In Checkdoc minor mode, the usual bindings for `eval-defun' which is | 1245 | In Checkdoc minor mode, the usual bindings for `eval-defun' which is |
| 1245 | bound to \\<checkdoc-minor-mode-map>\\[checkdoc-eval-defun] and `checkdoc-eval-current-buffer' are overridden to include | 1246 | bound 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). |
| 153 | In ElDoc mode, the echo area displays information about a | 153 | With a prefix argument ARG, enable ElDoc mode if ARG is positive, |
| 154 | function or variable in the text where point is. If point is | 154 | and disable it otherwise. If called from Lisp, enable ElDoc mode |
| 155 | on a documented variable, it displays the first line of that | 155 | if ARG is omitted or nil. |
| 156 | variable's doc string. Otherwise it displays the argument list | 156 | |
| 157 | of the function called in the expression point is on. | 157 | ElDoc mode is a buffer-local minor mode. When enabled, the echo |
| 158 | 158 | area displays information about a function or variable in the | |
| 159 | With prefix ARG, turn ElDoc mode on if and only if ARG is positive." | 159 | text where point is. If point is on a documented variable, it |
| 160 | displays the first line of that variable's doc string. Otherwise | ||
| 161 | it displays the argument list of the function called in the | ||
| 162 | expression 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). |
| 353 | With ARG, turn CRiSP mode on if ARG is positive, off otherwise." | 353 | With a prefix argument ARG, enable CRiSP mode if ARG is positive, |
| 354 | and disable it otherwise. If called from Lisp, enable the mode | ||
| 355 | if 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). |
| 1535 | When enabled, using shifted movement keys will activate the | 1535 | With a prefix argument ARG, enable CUA mode if ARG is positive, |
| 1536 | region (and highlight the region using `transient-mark-mode'), | 1536 | and disable it otherwise. If called from Lisp, enable the mode |
| 1537 | and typed text replaces the active selection. | 1537 | if ARG is omitted or nil. |
| 1538 | 1538 | ||
| 1539 | Also when enabled, you can use C-z, C-x, C-c, and C-v to undo, | 1539 | CUA mode is a global minor mode. When enabled, typed text |
| 1540 | cut, copy, and paste in addition to the normal Emacs bindings. | 1540 | replaces the active selection, and you can use C-z, C-x, C-c, and |
| 1541 | The C-x and C-c keys only do cut and copy when the region is | 1541 | C-v to undo, cut, copy, and paste in addition to the normal Emacs |
| 1542 | active, so in most cases, they do not conflict with the normal | 1542 | bindings. The C-x and C-c keys only do cut and copy when the |
| 1543 | function of these prefix keys. | 1543 | region is active, so in most cases, they do not conflict with the |
| 1544 | normal function of these prefix keys. | ||
| 1544 | 1545 | ||
| 1545 | If you really need to perform a command which starts with one of | 1546 | If you really need to perform a command which starts with one of |
| 1546 | the prefix keys even when the region is active, you have three | 1547 | the 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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-09-23 Antoine Levitt <antoine.levitt@gmail.com> | 9 | 2011-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. |
| 42 | With numeric arg, turn ERC fill mode on if and only if arg is | 42 | With a prefix argument ARG, enable ERC fill mode if ARG is |
| 43 | positive. In ERC fill mode, messages in the channel buffers are | 43 | positive, and disable it otherwise. If called from Lisp, enable |
| 44 | filled." | 44 | the mode if ARG is omitted or nil. |
| 45 | |||
| 46 | ERC fill mode is a global minor mode. When enabled, messages in | ||
| 47 | the 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). |
| 592 | mode line. | 592 | With a prefix argument ARG, enable ERC Track minor mode if ARG is |
| 593 | 593 | positive, and disable it otherwise. If called from Lisp, enable | |
| 594 | This exists for the sole purpose of providing the C-c C-SPC and | 594 | the mode if ARG is omitted or nil. |
| 595 | C-c C-@ keybindings. Make sure that you have enabled the track | 595 | |
| 596 | module, otherwise the keybindings will not do anything useful." | 596 | ERC Track minor mode is a global minor mode. It exists for the |
| 597 | sole purpose of providing the C-c C-SPC and C-c C-@ keybindings. | ||
| 598 | Make sure that you have enabled the track module, otherwise the | ||
| 599 | keybindings 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. |
| 1245 | With arg, turn ERC %S mode on if and only if arg is positive. | 1245 | With a prefix argument ARG, enable %s if ARG is positive, |
| 1246 | and disable it otherwise. If called from Lisp, enable the mode | ||
| 1247 | if 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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-10-18 Teodor Zlatanov <tzz@lifelogs.com> | 7 | 2011-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. |
| 1228 | This buffer local minor mode provides additional font-lock support for | 1228 | When enabled, it automatically turns on `font-lock-mode'." |
| 1229 | nested citations. | ||
| 1230 | With prefix ARG, turn `gnus-message-citation-mode' on if and only if ARG | ||
| 1231 | is positive. | ||
| 1232 | Automatically turn `font-lock-mode' on when `gnus-message-citation-mode' | ||
| 1233 | is 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. |
| 792 | This minor mode provides footnote support for `message-mode'. To get | 792 | With a prefix argument ARG, enable Footnote mode if ARG is |
| 793 | started, play around with the following keys: | 793 | positive, and disable it otherwise. If called from Lisp, enable |
| 794 | the mode if ARG is omitted or nil. | ||
| 795 | |||
| 796 | Footnode mode is a buffer-local minor mode. If enabled, it | ||
| 797 | provides footnote support for `message-mode'. To get started, | ||
| 798 | play 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). |
| 137 | With a prefix argument ARG, enable Mail Abbrevs mode if ARG is | ||
| 138 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 139 | the mode if ARG is omitted or nil. | ||
| 140 | |||
| 141 | Mail Abbrevs mode is a global minor mode. When enabled, | ||
| 142 | abbrev-like expansion is performed when editing certain mail | ||
| 143 | headers (those specified by `mail-abbrev-mode-regexp'), based on | ||
| 144 | the 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. |
| 519 | With no argument, this command toggles the mode. | 519 | With a prefix argument ARG, enable Xesam minor mode if ARG is |
| 520 | Non-null prefix argument turns on the mode. | 520 | positive, and disable it otherwise. If called from Lisp, enable |
| 521 | Null prefix argument turns off the mode. | 521 | the mode if ARG is omitted or nil. |
| 522 | 522 | ||
| 523 | When Xesam minor mode is enabled, all text which matches a | 523 | When Xesam minor mode is enabled, all text which matches a |
| 524 | previous Xesam query in this buffer is highlighted." | 524 | previous 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). |
| 131 | With a prefix argument ARG, enable Bug Reference mode if ARG is | ||
| 132 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 133 | the 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. |
| 63 | With a prefix argument ARG, enable Capitalized Words mode if ARG | ||
| 64 | is positive, and disable it otherwise. If called from Lisp, | ||
| 65 | enable the mode if ARG is omitted or nil. | ||
| 63 | 66 | ||
| 64 | In this minor mode, a word boundary occurs immediately before an | 67 | Capitalized Words mode is a buffer-local minor mode. When |
| 65 | uppercase letter in a symbol. This is in addition to all the normal | 68 | enabled, a word boundary occurs immediately before an uppercase |
| 69 | letter in a symbol. This is in addition to all the normal | ||
| 66 | boundaries given by the syntax and category tables. There is no | 70 | boundaries given by the syntax and category tables. There is no |
| 67 | restriction to ASCII. | 71 | restriction 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. |
| 1972 | With arg, turn compilation mode on if and only if arg is positive. | 1972 | With a prefix argument ARG, enable Compilation Shell minor mode |
| 1973 | In this minor mode, all the error-parsing commands of the | 1973 | if ARG is positive, and disable it otherwise. If called from |
| 1974 | Compilation major mode are available but bound to keys that don't | 1974 | Lisp, enable the mode if ARG is omitted or nil. |
| 1975 | collide with Shell mode. See `compilation-mode'. | 1975 | |
| 1976 | Turning the mode on runs the normal hook `compilation-shell-minor-mode-hook'." | 1976 | When Compilation Shell minor mode is enabled, all the |
| 1977 | error-parsing commands of the Compilation major mode are | ||
| 1978 | available but bound to keys that don't collide with Shell mode. | ||
| 1979 | See `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. |
| 1986 | With arg, turn compilation mode on if and only if arg is positive. | 1989 | With a prefix argument ARG, enable Compilation minor mode if ARG |
| 1987 | In this minor mode, all the error-parsing commands of the | 1990 | is positive, and disable it otherwise. If called from Lisp, |
| 1988 | Compilation major mode are available. See `compilation-mode'. | 1991 | enable the mode if ARG is omitted or nil. |
| 1989 | Turning the mode on runs the normal hook `compilation-minor-mode-hook'." | 1992 | |
| 1993 | When Compilation minor mode is enabled, all the error-parsing | ||
| 1994 | commands 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. |
| 3259 | With a prefix argument ARG, enable the feature if ARG is | ||
| 3260 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 3261 | it 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). |
| 218 | With ARG, turn Hide-Ifdef mode on if arg is positive, off otherwise. | 218 | With a prefix argument ARG, enable Hide-Ifdef mode if ARG is |
| 219 | In Hide-Ifdef mode, code within #ifdef constructs that the C preprocessor | 219 | positive, and disable it otherwise. If called from Lisp, enable |
| 220 | would eliminate may be hidden from view. Several variables affect | 220 | the mode if ARG is omitted or nil. |
| 221 | how the hiding is done: | 221 | |
| 222 | Hide-Ifdef mode is a buffer-local minor mode for use with C and | ||
| 223 | C-like major modes. When enabled, code within #ifdef constructs | ||
| 224 | that the C preprocessor would eliminate may be hidden from view. | ||
| 225 | Several 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. |
| 4281 | With no argument, this command toggles the mode. | 4281 | With a prefix argument ARG, enable the mode if ARG is positive, |
| 4282 | Non-null prefix argument turns on the mode. | 4282 | and disable it otherwise. If called from Lisp, enable the mode |
| 4283 | Null prefix argument turns off the mode. | 4283 | if ARG is omitted or nil. |
| 4284 | 4284 | ||
| 4285 | When Electric Debug mode is enabled, the many debugging commands are | 4285 | When Idlwave Shell Electric Debug mode is enabled, the Idlwave |
| 4286 | available as single key sequences." | 4286 | Shell debugging commands are available as single key sequences." |
| 4287 | nil | 4287 | nil " *Debugging*" idlwave-shell-electric-debug-mode-map) |
| 4288 | " *Debugging*" | ||
| 4289 | idlwave-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). |
| 98 | In spite of GNU Coding Standards, it is popular to name a symbol by | 98 | With a prefix argument ARG, enable Subword mode if ARG is |
| 99 | mixing uppercase and lowercase letters, e.g. \"GtkWidget\", | 99 | positive, and disable it otherwise. If called from Lisp, enable |
| 100 | \"EmacsFrameClass\", \"NSGraphicsContext\", etc. Here we call these | 100 | the mode if ARG is omitted or nil. |
| 101 | mixed case symbols `nomenclatures'. Also, each capitalized (or | 101 | |
| 102 | completely uppercase) part of a nomenclature is called a `subword'. | 102 | Subword mode is a buffer-local minor mode. Enabling it remaps |
| 103 | Here are some examples: | 103 | word-based editing commands to subword-based commands that handle |
| 104 | symbols with mixed uppercase and lowercase letters, | ||
| 105 | e.g. \"GtkWidget\", \"EmacsFrameClass\", \"NSGraphicsContext\". | ||
| 106 | |||
| 107 | Here we call these mixed case symbols `nomenclatures'. Each | ||
| 108 | capitalized (or completely uppercase) part of a nomenclature is | ||
| 109 | called 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. |
| 8032 | Turn on if ARG positive, turn off if ARG negative, toggle if ARG zero or nil." | 8032 | With a prefix argument ARG, enable the mode if ARG is positive, |
| 8033 | and disable it otherwise. If called from Lisp, enable it if ARG | ||
| 8034 | is 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. |
| 8037 | Turn on if ARG positive, turn off if ARG negative, toggle if ARG zero or nil." | 8039 | With a prefix argument ARG, enable the mode if ARG is positive, |
| 8040 | and disable it otherwise. If called from Lisp, enable it if ARG | ||
| 8041 | is 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). |
| 240 | When Which Function mode is enabled, the current function name is | 240 | With a prefix argument ARG, enable Which Function mode if ARG is |
| 241 | continuously displayed in the mode line, in certain major modes. | 241 | positive, and disable it otherwise. If called from Lisp, enable |
| 242 | 242 | the mode if ARG is omitted or nil. | |
| 243 | With prefix ARG, turn Which Function mode on if arg is positive, | 243 | |
| 244 | and off otherwise." | 244 | Which Function mode is a global minor mode. When enabled, the |
| 245 | current function name is continuously displayed in the mode line, | ||
| 246 | in 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. |
| 108 | In ``numeric keypad mode'', the number keys on the keypad act as | 108 | With a prefix argument ARG, enable the mode if ARG is positive, |
| 109 | ordinary digits. In ``alternate keypad mode'', the keys send distinct | 109 | and disable it otherwise. If called from Lisp, enable the mode |
| 110 | escape sequences, meaning that they can have their own bindings, | 110 | if ARG is omitted or nil. |
| 111 | |||
| 112 | In ``alternate keypad mode'', the keys send distinct escape | ||
| 113 | sequences, meaning that they can have their own bindings, | ||
| 111 | independent of the normal number keys. | 114 | independent of the normal number keys. |
| 112 | With no argument, toggle between the two possible modes. | 115 | |
| 113 | With a positive argument, select alternate keypad mode. | 116 | When disabled, the terminal enters ``numeric keypad mode'', in |
| 114 | With a negative argument, select numeric keypad mode." | 117 | which 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. |
| 45 | With positive argument, switch to 132-column mode. | 45 | With a prefix argument ARG, switch to 132-column mode if ARG is |
| 46 | With negative argument, switch to 80-column mode." | 46 | positive, and 80-column mode otherwise. If called from Lisp, |
| 47 | switch 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). |
| 473 | This spawns a single Ispell process and checks each word. | 473 | With a prefix argument ARG, enable Flyspell mode if ARG is |
| 474 | The default flyspell behavior is to highlight incorrect words. | 474 | positive, and disable it otherwise. If called from Lisp, enable |
| 475 | With no argument, this command toggles Flyspell mode. | 475 | the mode if ARG is omitted or nil. |
| 476 | With a prefix argument ARG, turn Flyspell minor mode on if ARG is positive, | 476 | |
| 477 | otherwise turn it off. | 477 | Flyspell mode is a buffer-local minor mode. When enabled, it |
| 478 | spawns a single Ispell process and checks each word. The default | ||
| 479 | flyspell behavior is to highlight incorrect words. | ||
| 478 | 480 | ||
| 479 | Bindings: | 481 | Bindings: |
| 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). |
| 3466 | With prefix argument ARG, turn Ispell minor mode on if ARG is positive, | 3466 | With a prefix argument ARG, enable Ispell minor mode if ARG is |
| 3467 | otherwise turn it off. | 3467 | positive, and disable it otherwise. If called from Lisp, enable |
| 3468 | the mode if ARG is omitted or nil. | ||
| 3468 | 3469 | ||
| 3469 | In Ispell minor mode, pressing SPC or RET | 3470 | Ispell minor mode is a buffer-local mior mode. When enabled, |
| 3470 | warns you if the previous word is incorrectly spelled. | 3471 | typing SPC or RET warns you if the previous word is incorrectly |
| 3472 | spelled. | ||
| 3471 | 3473 | ||
| 3472 | All the buffer-local variables and dictionaries are ignored -- to read | 3474 | All the buffer-local variables and dictionaries are ignored. To |
| 3473 | them into the running ispell process, type \\[ispell-word] SPC." | 3475 | read them into the running ispell process, type \\[ispell-word] |
| 3476 | SPC. | ||
| 3477 | |||
| 3478 | For spell-checking \"on the fly\", not just after typing SPC or | ||
| 3479 | RET, 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 | 301 | With a prefix argument ARG, enable Nroff Electric mode if ARG is |
| 302 | beginning of the line, and insert the matching closing request if necessary. | 302 | positive, and disable it otherwise. If called from Lisp, enable |
| 303 | This command toggles that mode (off->on, on->off), with an argument, | 303 | the mode if ARG is omitted or nil. |
| 304 | turns it on if arg is positive, otherwise off." | 304 | |
| 305 | Nroff Electric mode is a buffer-local minor mode, for use with | ||
| 306 | `nroff-mode'. When enabled, Emacs checks for an nroff request at | ||
| 307 | the beginning of the line, and inserts the matching closing | ||
| 308 | request if necessary. This command toggles that mode (off->on, | ||
| 309 | on->off), with an argument, turns it on if arg is positive, | ||
| 310 | otherwise 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. |
| 39 | When active, the functions `newline' and `open-line' add the | 39 | With a prefix argument ARG, enable the feature if ARG is |
| 40 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 41 | it if ARG is omitted or nil. | ||
| 42 | |||
| 43 | When enabled, the functions `newline' and `open-line' add the | ||
| 40 | text-property `hard' to newlines that they insert, and a line is | 44 | text-property `hard' to newlines that they insert, and a line is |
| 41 | only considered as a candidate to match `paragraph-start' or | 45 | only 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 | ||
| 44 | Prefix argument says to turn mode on if positive, off if negative. | 48 | When enabling, if there are newlines in the buffer but no hard |
| 45 | When the mode is turned on, if there are newlines in the buffer but no hard | 49 | newlines, ask the user whether to mark as hard any newlines |
| 46 | newlines, ask the user whether to mark as hard any newlines preceding a | 50 | preceding a `paragraph-start' line. From a program, second arg |
| 47 | `paragraph-start' line. From a program, second arg INSERT specifies whether | 51 | INSERT specifies whether to do this; it can be `never' to change |
| 48 | to do this; it can be `never' to change nothing, t or `always' to force | 52 | nothing, t or `always' to force marking, `guess' to try to do the |
| 49 | marking, `guess' to try to do the right thing with no questions, nil | 53 | right thing with no questions, nil or anything else to ask the |
| 50 | or anything else to ask the user. | 54 | user. |
| 51 | 55 | ||
| 52 | Newlines not marked hard are called \"soft\", and are always internal | 56 | Newlines not marked hard are called \"soft\", and are always internal |
| 53 | to paragraphs. The fill functions insert and delete only soft newlines." | 57 | to 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). |
| 217 | With prefix arg, turn Refill mode on if arg is positive, otherwise turn it off. | 217 | With a prefix argument ARG, enable Refill mode if ARG is |
| 218 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 219 | the mode if ARG is omitted or nil. | ||
| 218 | 220 | ||
| 219 | When Refill mode is on, the current paragraph will be formatted when | 221 | Refill mode is a buffer-local minor mode. When enabled, the |
| 220 | changes are made within it. Self-inserting characters only cause | 222 | current paragraph is refilled as you edit. Self-inserting |
| 221 | refilling if they would cause auto-filling." | 223 | characters only cause refilling if they would cause |
| 224 | auto-filling. | ||
| 225 | |||
| 226 | For 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. |
| 507 | With a prefix argument ARG, enable RefTeX mode if ARG is | ||
| 508 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 509 | the mode if ARG is omitted or nil. | ||
| 510 | |||
| 511 | RefTeX mode is a buffer-local minor mode with distinct support | ||
| 512 | for \\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 |
| 509 | capabilities is available with `\\[reftex-toc]'. | 515 | capabilities 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. |
| 446 | Toggle ReST minor mode. | 446 | With a prefix argument ARG, enable ReST minor mode if ARG is |
| 447 | With no argument, this command toggles the mode. | 447 | positive, and disable it otherwise. If called from Lisp, enable |
| 448 | Non-null prefix argument turns on the mode. | 448 | the mode if ARG is omitted or nil. |
| 449 | Null prefix argument turns off the mode. | ||
| 450 | 449 | ||
| 451 | When ReST minor mode is enabled, the ReST mode keybindings | 450 | When ReST minor mode is enabled, the ReST mode keybindings |
| 452 | are installed on top of the major mode bindings. Use this | 451 | are 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. |
| 845 | With a prefix argument ARG, enable the mode if ARG is positive, | ||
| 846 | and disable it otherwise. If called from Lisp, enable the mode | ||
| 847 | if ARG is omitted or nil. | ||
| 848 | |||
| 849 | SGML Electric Tag Pair mode is a buffer-local minor mode for use | ||
| 850 | with `sgml-mode' and related maor modes. When enabled, editing | ||
| 851 | an 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). |
| 2028 | With positive prefix ARG always turns viewing on, with negative ARG always off. | 2035 | With a prefix argument ARG, enable HTML Autoview mode if ARG is |
| 2029 | Can be used as a value for `html-mode-hook'." | 2036 | positive, and disable it otherwise. If called from Lisp, enable |
| 2037 | the mode if ARG is omitted or nil. | ||
| 2038 | |||
| 2039 | HTML 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. |
| 681 | And vice-versa." | 681 | With a prefix argument ARG, enable the mode if ARG is positive, |
| 682 | and disable it otherwise. If called from Lisp, enable it if ARG | ||
| 683 | is omitted or nil. | ||
| 684 | |||
| 685 | Latex Electric Env Pair mode is a buffer-local minor mode for use | ||
| 686 | with `latex-mode'. When enabled, typing a \\begin or \\end tag | ||
| 687 | automatically 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 @@ | |||
| 1 | 2011-10-19 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * url-handlers.el (url-handler-mode): Doc fix. | ||
| 4 | |||
| 1 | 2011-09-24 Christopher J. White <chris@grierwhite.com> (tiny change) | 5 | 2011-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). |
| 104 | With a prefix argument ARG, enable URL Handler mode if ARG is | ||
| 105 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 106 | the 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). |
| 229 | When transitioning from disabled to enabled, | 229 | With a prefix argument ARG, enable Diff Auto Refine mode if ARG |
| 230 | try to refine the current hunk, as well." | 230 | is positive, and disable it otherwise. If called from Lisp, |
| 231 | enable the mode if ARG is omitted or nil. | ||
| 232 | |||
| 233 | Diff Auto Refine mode is a buffer-local minor mode used with | ||
| 234 | `diff-mode'. When enabled, Emacs automatically highlights | ||
| 235 | changes in detail as the user visits hunks. When transitioning | ||
| 236 | from disabled to enabled, it tries to refine the current hunk, as | ||
| 237 | well." | ||
| 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. |
| 1317 | With a prefix argument ARG, enable Diff minor mode if ARG is | ||
| 1318 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 1319 | the 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 |