aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-09-14 11:40:24 +0200
committerJoakim Verona2013-09-14 11:40:24 +0200
commit2b483f0f59ff7f125dfbe490e42eb84c238ac971 (patch)
treeba1528a35fc63b414fe981fe335b053beec4bfe3
parent9523ac3289ca64bd74c42a1cc20ed1df7a9896e7 (diff)
parent08a209bff2e8f91720e5b2dfbac071ea2286814b (diff)
downloademacs-2b483f0f59ff7f125dfbe490e42eb84c238ac971.tar.gz
emacs-2b483f0f59ff7f125dfbe490e42eb84c238ac971.zip
merge from trunk
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/display.texi26
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c4
4 files changed, 28 insertions, 12 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index b37fa4e64f3..a1503ea4dde 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12013-09-14 Eli Zaretskii <eliz@gnu.org>
2
3 * display.texi (Display Margins): State the units of measuring
4 margin width. (Bug#15375)
5
12013-09-13 Eli Zaretskii <eliz@gnu.org> 62013-09-13 Eli Zaretskii <eliz@gnu.org>
2 7
3 * text.texi (Not Intervals): Minor wording fix. 8 * text.texi (Not Intervals): Minor wording fix.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index ff9d98170d1..2e7d4f4c010 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4189,13 +4189,15 @@ them a nonzero width. The usual way to do that is to set these
4189variables: 4189variables:
4190 4190
4191@defvar left-margin-width 4191@defvar left-margin-width
4192This variable specifies the width of the left margin. 4192This variable specifies the width of the left margin, in character
4193It is buffer-local in all buffers. 4193cell units. It is buffer-local in all buffers. A value of @code{nil}
4194means no left marginal area.
4194@end defvar 4195@end defvar
4195 4196
4196@defvar right-margin-width 4197@defvar right-margin-width
4197This variable specifies the width of the right margin. 4198This variable specifies the width of the right margin, in character
4198It is buffer-local in all buffers. 4199cell units. It is buffer-local in all buffers. A value of @code{nil}
4200means no right marginal area.
4199@end defvar 4201@end defvar
4200 4202
4201 Setting these variables does not immediately affect the window. These 4203 Setting these variables does not immediately affect the window. These
@@ -4206,15 +4208,19 @@ Thus, you can make changes take effect by calling
4206 You can also set the margin widths immediately. 4208 You can also set the margin widths immediately.
4207 4209
4208@defun set-window-margins window left &optional right 4210@defun set-window-margins window left &optional right
4209This function specifies the margin widths for window @var{window}. 4211This function specifies the margin widths for window @var{window}, in
4210The argument @var{left} controls the left margin and 4212character cell (a.k.a.@: ``column''), units. The argument @var{left}
4211@var{right} controls the right margin (default @code{0}). 4213controls the left margin and @var{right} controls the right margin
4214(default @code{0}).
4212@end defun 4215@end defun
4213 4216
4214@defun window-margins &optional window 4217@defun window-margins &optional window
4215This function returns the left and right margins of @var{window} 4218This function returns the width of the left and right margins of
4216as a cons cell of the form @code{(@var{left} . @var{right})}. 4219@var{window} as a cons cell of the form @w{@code{(@var{left}
4217If @var{window} is @code{nil}, the selected window is used. 4220. @var{right})}}. If one of the two marginal areas does not exist,
4221its width is returned as @code{nil}; if none of the two margins exist,
4222the function returns @code{nil}. If @var{window} is @code{nil}, the
4223selected window is used.
4218@end defun 4224@end defun
4219 4225
4220@node Images 4226@node Images
diff --git a/src/ChangeLog b/src/ChangeLog
index cc8704da2a1..00f3fa8eccf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-09-14 Eli Zaretskii <eliz@gnu.org>
2
3 * buffer.c (syms_of_buffer) <left-margin-width, right-margin-width>:
4 Doc fix. (Bug#15375)
5
12013-09-13 Dmitry Antipov <dmantipov@yandex.ru> 62013-09-13 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 Unify Fx_focus_frame between all ports. 8 Unify Fx_focus_frame between all ports.
diff --git a/src/buffer.c b/src/buffer.c
index ff05da6d0d9..71c01237205 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5909,7 +5909,7 @@ See also the functions `display-table-slot' and `set-display-table-slot'. */);
5909 5909
5910 DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols), 5910 DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols),
5911 Qintegerp, 5911 Qintegerp,
5912 doc: /* Width of left marginal area for display of a buffer. 5912 doc: /* Width in columns of left marginal area for display of a buffer.
5913A value of nil means no marginal area. 5913A value of nil means no marginal area.
5914 5914
5915Setting this variable does not take effect until a new buffer is displayed 5915Setting this variable does not take effect until a new buffer is displayed
@@ -5917,7 +5917,7 @@ in a window. To make the change take effect, call `set-window-buffer'. */);
5917 5917
5918 DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols), 5918 DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols),
5919 Qintegerp, 5919 Qintegerp,
5920 doc: /* Width of right marginal area for display of a buffer. 5920 doc: /* Width in columns of right marginal area for display of a buffer.
5921A value of nil means no marginal area. 5921A value of nil means no marginal area.
5922 5922
5923Setting this variable does not take effect until a new buffer is displayed 5923Setting this variable does not take effect until a new buffer is displayed