aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2003-10-13 16:18:28 +0000
committerLute Kamstra2003-10-13 16:18:28 +0000
commitaf15cfe8fa848467bd113999ace3c5e2d2e2c95a (patch)
treead1dc2d0a59d19af42b1139ee4d929d6bc60ded7
parent154b6114a3744e0ae2faee9d59062fb02cd72cb1 (diff)
downloademacs-af15cfe8fa848467bd113999ace3c5e2d2e2c95a.tar.gz
emacs-af15cfe8fa848467bd113999ace3c5e2d2e2c95a.zip
(fringe-mode): Fix docstring.
(set-fringe-style): Ditto.
-rw-r--r--lisp/fringe.el58
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.
143Valid values for MODE include `none', `default', `left-only', 143
144`right-only', `minimal' and `half'. MODE can also be a cons cell 144When called interactively, the user is queried for MODE. Valid
145where the integer in car will be used as left fringe width and the 145values for MODE include `none', `default', `left-only',
146integer in cdr will be used as right fringe width. If MODE is not 146`right-only', `minimal' and `half'.
147specified, the user is queried. 147
148It applies to all frames that exist and frames to be created in the 148When used in a Lisp program, MODE can be a cons cell where the
149future. 149integer in car specifies the left fringe width and the integer in
150If you want to set appearance of fringes on the selected frame only, 150cdr specifies the right fringe width. MODE can also be a single
151see `set-fringe-style'." 151integer that specifies both the left and the right fringe width.
152When nil is used instead of an integer, that means to use the
153default fringe width (8 pixels). These width specifications may
154be rounded up to ensure that their sum is a multiple of the
155character width of a frame. A fringe width of 0 is never rounded
156up.
157
158Fringe widths set by `set-window-fringes' override the default
159fringe widths set by this command. This command applies to all
160frames that exist and frames to be created in the future. If you
161want to set the default appearance of fringes on the selected
162frame 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.
158Valid values for MODE include `none', `default', `left-only', 169
159`right-only', `minimal' and `half'. MODE can also be a cons cell 170When called interactively, the user is queried for MODE. Valid
160where the integer in car will be used as left fringe width and the 171values for MODE include `none', `default', `left-only',
161integer in cdr will be used as right fringe width. If MODE is not 172`right-only', `minimal' and `half'.
162specified, the user is queried. 173
163If you want to set appearance of fringes on all frames, see `fringe-mode'." 174When used in a Lisp program, MODE can be a cons cell where the
175integer in car specifies the left fringe width and the integer in
176cdr specifies the right fringe width. MODE can also be a single
177integer that specifies both the left and the right fringe width.
178When nil is used instead of an integer, that means to use the
179default fringe width (8 pixels). These width specifications may
180be rounded up to ensure that their sum is a multiple of the
181character width of the frame. A fringe width of 0 is never
182rounded up.
183
184Fringe widths set by `set-window-fringes' override the default
185fringe widths set by this command. If you want to set the
186default 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)