diff options
| author | Eli Zaretskii | 2016-09-16 12:46:15 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-09-23 17:09:51 +0300 |
| commit | 3a9866e203dd263accfb8f9d0a12f5337eb4cff1 (patch) | |
| tree | 8e228b5eaf8d100619705e156bed747e671659dc | |
| parent | 2e2469bbfeb6c1865012f34a180c9beda9e56862 (diff) | |
| download | emacs-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.el | 24 |
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). |
| 1033 | With a prefix argument ARG, enable Whitespace mode if ARG is | 1033 | With a prefix argument ARG, enable Whitespace mode if ARG is |
| 1034 | positive, and disable it otherwise. If called from Lisp, enable | 1034 | positive, and disable it otherwise. |
| 1035 | the mode if ARG is omitted or nil. | 1035 | |
| 1036 | If called from Lisp, also enables the mode if ARG is omitted or nil, | ||
| 1037 | and toggles it if ARG is `toggle'. | ||
| 1036 | 1038 | ||
| 1037 | See also `whitespace-style', `whitespace-newline' and | 1039 | See 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). |
| 1056 | With a prefix argument ARG, enable Whitespace Newline mode if ARG | 1058 | With a prefix argument ARG, enable Whitespace Newline mode if ARG |
| 1057 | is positive, and disable it otherwise. If called from Lisp, | 1059 | is positive, and disable it otherwise. |
| 1058 | enable the mode if ARG is omitted or nil. | 1060 | |
| 1061 | If called from Lisp, also enables the mode if ARG is omitted or nil, | ||
| 1062 | and toggles it if ARG is `toggle'. | ||
| 1059 | 1063 | ||
| 1060 | Use `whitespace-newline-mode' only for NEWLINE visualization | 1064 | Use `whitespace-newline-mode' only for NEWLINE visualization |
| 1061 | exclusively. For other visualizations, including NEWLINE | 1065 | exclusively. 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). |
| 1084 | With a prefix argument ARG, enable Global Whitespace mode if ARG | 1088 | With a prefix argument ARG, enable Global Whitespace mode if ARG |
| 1085 | is positive, and disable it otherwise. If called from Lisp, | 1089 | is positive, and disable it otherwise. |
| 1086 | enable it if ARG is omitted or nil. | 1090 | |
| 1091 | If called from Lisp, also enables the mode if ARG is omitted or nil, | ||
| 1092 | and toggles it if ARG is `toggle'. | ||
| 1087 | 1093 | ||
| 1088 | See also `whitespace-style', `whitespace-newline' and | 1094 | See 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). |
| 1143 | With a prefix argument ARG, enable Global Whitespace Newline mode | 1149 | With a prefix argument ARG, enable Global Whitespace Newline mode |
| 1144 | if ARG is positive, and disable it otherwise. If called from | 1150 | if ARG is positive, and disable it otherwise. |
| 1145 | Lisp, enable it if ARG is omitted or nil. | 1151 | |
| 1152 | If called from Lisp, also enables the mode if ARG is omitted or nil, | ||
| 1153 | and toggles it if ARG is `toggle'. | ||
| 1146 | 1154 | ||
| 1147 | Use `global-whitespace-newline-mode' only for NEWLINE | 1155 | Use `global-whitespace-newline-mode' only for NEWLINE |
| 1148 | visualization exclusively. For other visualizations, including | 1156 | visualization exclusively. For other visualizations, including |