aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-04-14 09:51:15 +0300
committerEli Zaretskii2013-04-14 09:51:15 +0300
commitddd6b68524ba1f957e2f8ddd76eb23e641429b58 (patch)
tree880609b112d189a117240800179ebf414cc246ae /src/buffer.c
parent91e8293cc55d1de50796300412084e8774c60e7f (diff)
downloademacs-ddd6b68524ba1f957e2f8ddd76eb23e641429b58.tar.gz
emacs-ddd6b68524ba1f957e2f8ddd76eb23e641429b58.zip
Improve doc strings of left/right-margin/fringe-width.
src/buffer.c (syms_of_buffer) <left-margin-width, right-margin-width> <left-fringe-width, right-fringe-width, fringes-outside-margins>: Mention in the doc string that setting these variables takes effect only after a call to set-window-buffer. (Bug#14200)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8728b418812..3810d3db079 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5883,29 +5883,44 @@ See also the functions `display-table-slot' and `set-display-table-slot'. */);
5883 DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols), 5883 DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols),
5884 Qintegerp, 5884 Qintegerp,
5885 doc: /* Width of left marginal area for display of a buffer. 5885 doc: /* Width of left marginal area for display of a buffer.
5886A value of nil means no marginal area. */); 5886A value of nil means no marginal area.
5887
5888Setting this variable does not take effect until a new buffer is displayed
5889in a window. To make the change take effect, call `set-window-buffer'. */);
5887 5890
5888 DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols), 5891 DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols),
5889 Qintegerp, 5892 Qintegerp,
5890 doc: /* Width of right marginal area for display of a buffer. 5893 doc: /* Width of right marginal area for display of a buffer.
5891A value of nil means no marginal area. */); 5894A value of nil means no marginal area.
5895
5896Setting this variable does not take effect until a new buffer is displayed
5897in a window. To make the change take effect, call `set-window-buffer'. */);
5892 5898
5893 DEFVAR_PER_BUFFER ("left-fringe-width", &BVAR (current_buffer, left_fringe_width), 5899 DEFVAR_PER_BUFFER ("left-fringe-width", &BVAR (current_buffer, left_fringe_width),
5894 Qintegerp, 5900 Qintegerp,
5895 doc: /* Width of this buffer's left fringe (in pixels). 5901 doc: /* Width of this buffer's left fringe (in pixels).
5896A value of 0 means no left fringe is shown in this buffer's window. 5902A value of 0 means no left fringe is shown in this buffer's window.
5897A value of nil means to use the left fringe width from the window's frame. */); 5903A value of nil means to use the left fringe width from the window's frame.
5904
5905Setting this variable does not take effect until a new buffer is displayed
5906in a window. To make the change take effect, call `set-window-buffer'. */);
5898 5907
5899 DEFVAR_PER_BUFFER ("right-fringe-width", &BVAR (current_buffer, right_fringe_width), 5908 DEFVAR_PER_BUFFER ("right-fringe-width", &BVAR (current_buffer, right_fringe_width),
5900 Qintegerp, 5909 Qintegerp,
5901 doc: /* Width of this buffer's right fringe (in pixels). 5910 doc: /* Width of this buffer's right fringe (in pixels).
5902A value of 0 means no right fringe is shown in this buffer's window. 5911A value of 0 means no right fringe is shown in this buffer's window.
5903A value of nil means to use the right fringe width from the window's frame. */); 5912A value of nil means to use the right fringe width from the window's frame.
5913
5914Setting this variable does not take effect until a new buffer is displayed
5915in a window. To make the change take effect, call `set-window-buffer'. */);
5904 5916
5905 DEFVAR_PER_BUFFER ("fringes-outside-margins", &BVAR (current_buffer, fringes_outside_margins), 5917 DEFVAR_PER_BUFFER ("fringes-outside-margins", &BVAR (current_buffer, fringes_outside_margins),
5906 Qnil, 5918 Qnil,
5907 doc: /* Non-nil means to display fringes outside display margins. 5919 doc: /* Non-nil means to display fringes outside display margins.
5908A value of nil means to display fringes between margins and buffer text. */); 5920A value of nil means to display fringes between margins and buffer text.
5921
5922Setting this variable does not take effect until a new buffer is displayed
5923in a window. To make the change take effect, call `set-window-buffer'. */);
5909 5924
5910 DEFVAR_PER_BUFFER ("scroll-bar-width", &BVAR (current_buffer, scroll_bar_width), 5925 DEFVAR_PER_BUFFER ("scroll-bar-width", &BVAR (current_buffer, scroll_bar_width),
5911 Qintegerp, 5926 Qintegerp,