diff options
| author | Lute Kamstra | 2003-10-13 16:18:28 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2003-10-13 16:18:28 +0000 |
| commit | af15cfe8fa848467bd113999ace3c5e2d2e2c95a (patch) | |
| tree | ad1dc2d0a59d19af42b1139ee4d929d6bc60ded7 | |
| parent | 154b6114a3744e0ae2faee9d59062fb02cd72cb1 (diff) | |
| download | emacs-af15cfe8fa848467bd113999ace3c5e2d2e2c95a.tar.gz emacs-af15cfe8fa848467bd113999ace3c5e2d2e2c95a.zip | |
(fringe-mode): Fix docstring.
(set-fringe-style): Ditto.
| -rw-r--r-- | lisp/fringe.el | 58 |
1 files changed, 41 insertions, 17 deletions
diff --git a/lisp/fringe.el b/lisp/fringe.el index 5aeeef6c09f..fdda854e251 100644 --- a/lisp/fringe.el +++ b/lisp/fringe.el | |||
| @@ -139,28 +139,52 @@ frame parameter is used." | |||
| 139 | 139 | ||
| 140 | ;;;###autoload | 140 | ;;;###autoload |
| 141 | (defun fringe-mode (&optional mode) | 141 | (defun fringe-mode (&optional mode) |
| 142 | "Toggle appearance of fringes on all frames. | 142 | "Set default appearance of fringes on all frames. |
| 143 | Valid values for MODE include `none', `default', `left-only', | 143 | |
| 144 | `right-only', `minimal' and `half'. MODE can also be a cons cell | 144 | When called interactively, the user is queried for MODE. Valid |
| 145 | where the integer in car will be used as left fringe width and the | 145 | values for MODE include `none', `default', `left-only', |
| 146 | integer in cdr will be used as right fringe width. If MODE is not | 146 | `right-only', `minimal' and `half'. |
| 147 | specified, the user is queried. | 147 | |
| 148 | It applies to all frames that exist and frames to be created in the | 148 | When used in a Lisp program, MODE can be a cons cell where the |
| 149 | future. | 149 | integer in car specifies the left fringe width and the integer in |
| 150 | If you want to set appearance of fringes on the selected frame only, | 150 | cdr specifies the right fringe width. MODE can also be a single |
| 151 | see `set-fringe-style'." | 151 | integer that specifies both the left and the right fringe width. |
| 152 | When nil is used instead of an integer, that means to use the | ||
| 153 | default fringe width (8 pixels). These width specifications may | ||
| 154 | be rounded up to ensure that their sum is a multiple of the | ||
| 155 | character width of a frame. A fringe width of 0 is never rounded | ||
| 156 | up. | ||
| 157 | |||
| 158 | Fringe widths set by `set-window-fringes' override the default | ||
| 159 | fringe widths set by this command. This command applies to all | ||
| 160 | frames that exist and frames to be created in the future. If you | ||
| 161 | want to set the default appearance of fringes on the selected | ||
| 162 | frame only, see the command `set-fringe-style'." | ||
| 152 | (interactive (list (fringe-query-style 'all-frames))) | 163 | (interactive (list (fringe-query-style 'all-frames))) |
| 153 | (set-fringe-mode mode)) | 164 | (set-fringe-mode mode)) |
| 154 | 165 | ||
| 155 | ;;;###autoload | 166 | ;;;###autoload |
| 156 | (defun set-fringe-style (&optional mode) | 167 | (defun set-fringe-style (&optional mode) |
| 157 | "Set appearance of fringes on selected frame. | 168 | "Set default appearance of fringes on selected frame. |
| 158 | Valid values for MODE include `none', `default', `left-only', | 169 | |
| 159 | `right-only', `minimal' and `half'. MODE can also be a cons cell | 170 | When called interactively, the user is queried for MODE. Valid |
| 160 | where the integer in car will be used as left fringe width and the | 171 | values for MODE include `none', `default', `left-only', |
| 161 | integer in cdr will be used as right fringe width. If MODE is not | 172 | `right-only', `minimal' and `half'. |
| 162 | specified, the user is queried. | 173 | |
| 163 | If you want to set appearance of fringes on all frames, see `fringe-mode'." | 174 | When used in a Lisp program, MODE can be a cons cell where the |
| 175 | integer in car specifies the left fringe width and the integer in | ||
| 176 | cdr specifies the right fringe width. MODE can also be a single | ||
| 177 | integer that specifies both the left and the right fringe width. | ||
| 178 | When nil is used instead of an integer, that means to use the | ||
| 179 | default fringe width (8 pixels). These width specifications may | ||
| 180 | be rounded up to ensure that their sum is a multiple of the | ||
| 181 | character width of the frame. A fringe width of 0 is never | ||
| 182 | rounded up. | ||
| 183 | |||
| 184 | Fringe widths set by `set-window-fringes' override the default | ||
| 185 | fringe widths set by this command. If you want to set the | ||
| 186 | default appearance of fringes on all frames, see the command | ||
| 187 | `fringe-mode'." | ||
| 164 | (interactive (list (fringe-query-style))) | 188 | (interactive (list (fringe-query-style))) |
| 165 | (modify-frame-parameters | 189 | (modify-frame-parameters |
| 166 | (selected-frame) | 190 | (selected-frame) |