aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-09-16 12:46:15 +0300
committerEli Zaretskii2016-09-23 17:09:51 +0300
commit3a9866e203dd263accfb8f9d0a12f5337eb4cff1 (patch)
tree8e228b5eaf8d100619705e156bed747e671659dc
parent2e2469bbfeb6c1865012f34a180c9beda9e56862 (diff)
downloademacs-3a9866e203dd263accfb8f9d0a12f5337eb4cff1.tar.gz
emacs-3a9866e203dd263accfb8f9d0a12f5337eb4cff1.zip
Improve doc strings in whitespace.el
* lisp/whitespace.el (whitespace-mode, whitespace-newline-mode) (global-whitespace-mode, global-whitespace-newline-mode): Improve the doc strings. (Bug#24413) This was backported from master (cherry picked from commit 3462fe73351f3da5bc3ebf8296ee44dd2e6b1dbc)
-rw-r--r--lisp/whitespace.el24
1 files changed, 16 insertions, 8 deletions
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index af906bab38f..0f6b8df03de 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -1031,8 +1031,10 @@ Any other value is treated as nil."
1031(define-minor-mode whitespace-mode 1031(define-minor-mode whitespace-mode
1032 "Toggle whitespace visualization (Whitespace mode). 1032 "Toggle whitespace visualization (Whitespace mode).
1033With a prefix argument ARG, enable Whitespace mode if ARG is 1033With a prefix argument ARG, enable Whitespace mode if ARG is
1034positive, and disable it otherwise. If called from Lisp, enable 1034positive, and disable it otherwise.
1035the mode if ARG is omitted or nil. 1035
1036If called from Lisp, also enables the mode if ARG is omitted or nil,
1037and toggles it if ARG is `toggle'.
1036 1038
1037See also `whitespace-style', `whitespace-newline' and 1039See also `whitespace-style', `whitespace-newline' and
1038`whitespace-display-mappings'." 1040`whitespace-display-mappings'."
@@ -1054,8 +1056,10 @@ See also `whitespace-style', `whitespace-newline' and
1054(define-minor-mode whitespace-newline-mode 1056(define-minor-mode whitespace-newline-mode
1055 "Toggle newline visualization (Whitespace Newline mode). 1057 "Toggle newline visualization (Whitespace Newline mode).
1056With a prefix argument ARG, enable Whitespace Newline mode if ARG 1058With a prefix argument ARG, enable Whitespace Newline mode if ARG
1057is positive, and disable it otherwise. If called from Lisp, 1059is positive, and disable it otherwise.
1058enable the mode if ARG is omitted or nil. 1060
1061If called from Lisp, also enables the mode if ARG is omitted or nil,
1062and toggles it if ARG is `toggle'.
1059 1063
1060Use `whitespace-newline-mode' only for NEWLINE visualization 1064Use `whitespace-newline-mode' only for NEWLINE visualization
1061exclusively. For other visualizations, including NEWLINE 1065exclusively. For other visualizations, including NEWLINE
@@ -1082,8 +1086,10 @@ See also `whitespace-newline' and `whitespace-display-mappings'."
1082(define-minor-mode global-whitespace-mode 1086(define-minor-mode global-whitespace-mode
1083 "Toggle whitespace visualization globally (Global Whitespace mode). 1087 "Toggle whitespace visualization globally (Global Whitespace mode).
1084With a prefix argument ARG, enable Global Whitespace mode if ARG 1088With a prefix argument ARG, enable Global Whitespace mode if ARG
1085is positive, and disable it otherwise. If called from Lisp, 1089is positive, and disable it otherwise.
1086enable it if ARG is omitted or nil. 1090
1091If called from Lisp, also enables the mode if ARG is omitted or nil,
1092and toggles it if ARG is `toggle'.
1087 1093
1088See also `whitespace-style', `whitespace-newline' and 1094See also `whitespace-style', `whitespace-newline' and
1089`whitespace-display-mappings'." 1095`whitespace-display-mappings'."
@@ -1141,8 +1147,10 @@ This variable is normally modified via `add-function'.")
1141(define-minor-mode global-whitespace-newline-mode 1147(define-minor-mode global-whitespace-newline-mode
1142 "Toggle global newline visualization (Global Whitespace Newline mode). 1148 "Toggle global newline visualization (Global Whitespace Newline mode).
1143With a prefix argument ARG, enable Global Whitespace Newline mode 1149With a prefix argument ARG, enable Global Whitespace Newline mode
1144if ARG is positive, and disable it otherwise. If called from 1150if ARG is positive, and disable it otherwise.
1145Lisp, enable it if ARG is omitted or nil. 1151
1152If called from Lisp, also enables the mode if ARG is omitted or nil,
1153and toggles it if ARG is `toggle'.
1146 1154
1147Use `global-whitespace-newline-mode' only for NEWLINE 1155Use `global-whitespace-newline-mode' only for NEWLINE
1148visualization exclusively. For other visualizations, including 1156visualization exclusively. For other visualizations, including