diff options
| author | Martin Rudalics | 2019-03-13 10:45:28 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2019-03-13 10:45:28 +0100 |
| commit | bc75589b905f70753ce2ce5f854efb423781287e (patch) | |
| tree | 216c3ff030157fcd334638a99d1daefbe678a009 /src/window.c | |
| parent | cc4cebf5f7f23be26d89ec6cd7890cb5ac36326c (diff) | |
| download | emacs-bc75589b905f70753ce2ce5f854efb423781287e.tar.gz emacs-bc75589b905f70753ce2ce5f854efb423781287e.zip | |
Document restrictions when setting window margins, fringes or scroll bars
* src/window.c (Fset_window_margins, Fset_window_fringes)
(Fset_window_scroll_bars): In doc-strings tell that a window
must be large enough to accommodate fringes, sroll bars and
margins of the desired size.
* doc/lispref/display.texi (Fringe Size/Pos, Scroll Bars)
(Display Margins): Tell that windows must be large enough to
accommodate fringes, sroll bars and margins of the desired
size.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 7b879d0e1eb..04183abb7c5 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -7076,7 +7076,9 @@ reserve for the left marginal area. Optional third arg RIGHT-WIDTH | |||
| 7076 | does the same for the right marginal area. A nil width parameter | 7076 | does the same for the right marginal area. A nil width parameter |
| 7077 | means no margin. | 7077 | means no margin. |
| 7078 | 7078 | ||
| 7079 | Return t if any margin was actually changed and nil otherwise. */) | 7079 | Leave margins unchanged if WINDOW is not large enough to accommodate |
| 7080 | margins of the desired width. Return t if any margin was actually | ||
| 7081 | changed and nil otherwise. */) | ||
| 7080 | (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width) | 7082 | (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width) |
| 7081 | { | 7083 | { |
| 7082 | struct window *w = set_window_margins (decode_live_window (window), | 7084 | struct window *w = set_window_margins (decode_live_window (window), |
| @@ -7158,11 +7160,14 @@ the left fringe. Optional third arg RIGHT-WIDTH specifies the right | |||
| 7158 | fringe width. If a fringe width arg is nil, that means to use the | 7160 | fringe width. If a fringe width arg is nil, that means to use the |
| 7159 | frame's default fringe width. Default fringe widths can be set with | 7161 | frame's default fringe width. Default fringe widths can be set with |
| 7160 | the command `set-fringe-style'. | 7162 | the command `set-fringe-style'. |
| 7163 | |||
| 7161 | If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes | 7164 | If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes |
| 7162 | outside of the display margins. By default, fringes are drawn between | 7165 | outside of the display margins. By default, fringes are drawn between |
| 7163 | display marginal areas and the text area. | 7166 | display marginal areas and the text area. |
| 7164 | 7167 | ||
| 7165 | Return t if any fringe was actually changed and nil otherwise. */) | 7168 | Leave fringes unchanged if WINDOW is not large enough to accommodate |
| 7169 | fringes of the desired width. Return t if any fringe was actually | ||
| 7170 | changed and nil otherwise. */) | ||
| 7166 | (Lisp_Object window, Lisp_Object left_width, | 7171 | (Lisp_Object window, Lisp_Object left_width, |
| 7167 | Lisp_Object right_width, Lisp_Object outside_margins) | 7172 | Lisp_Object right_width, Lisp_Object outside_margins) |
| 7168 | { | 7173 | { |
| @@ -7287,6 +7292,8 @@ horizontal scroll bar: bottom, nil, or t where nil means to not display | |||
| 7287 | a horizontal scroll bar on WINDOW and t means to use WINDOW frame's | 7292 | a horizontal scroll bar on WINDOW and t means to use WINDOW frame's |
| 7288 | horizontal scroll bar type. | 7293 | horizontal scroll bar type. |
| 7289 | 7294 | ||
| 7295 | If WINDOW is not large enough to accommodate a scroll bar of the | ||
| 7296 | desired dimension, leave the corresponding scroll bar unchanged. | ||
| 7290 | Return t if scroll bars were actually changed and nil otherwise. */) | 7297 | Return t if scroll bars were actually changed and nil otherwise. */) |
| 7291 | (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, | 7298 | (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, |
| 7292 | Lisp_Object height, Lisp_Object horizontal_type) | 7299 | Lisp_Object height, Lisp_Object horizontal_type) |