aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2019-05-23 10:53:23 +0900
committerYAMAMOTO Mitsuharu2019-05-23 10:53:23 +0900
commitb40dde705af4d53853de6185a2468153b442dc9a (patch)
treee8dabba695163c2d07439fad6accff761f8f714c /src/buffer.c
parent5d7dafacf4afc888511649f6fc24c28210cd0dfc (diff)
parent03feb9376b54c489e24478954a11061e9b0d6db7 (diff)
downloademacs-b40dde705af4d53853de6185a2468153b442dc9a.tar.gz
emacs-b40dde705af4d53853de6185a2468153b442dc9a.zip
Merge branch 'master' into harfbuzz
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/buffer.c b/src/buffer.c
index ab477481912..209e29f0f19 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2264,7 +2264,7 @@ validate_region (register Lisp_Object *b, register Lisp_Object *e)
2264/* Advance BYTE_POS up to a character boundary 2264/* Advance BYTE_POS up to a character boundary
2265 and return the adjusted position. */ 2265 and return the adjusted position. */
2266 2266
2267static ptrdiff_t 2267ptrdiff_t
2268advance_to_char_boundary (ptrdiff_t byte_pos) 2268advance_to_char_boundary (ptrdiff_t byte_pos)
2269{ 2269{
2270 int c; 2270 int c;
@@ -2702,6 +2702,9 @@ current buffer is cleared. */)
2702 2702
2703 /* Do this last, so it can calculate the new correspondences 2703 /* Do this last, so it can calculate the new correspondences
2704 between chars and bytes. */ 2704 between chars and bytes. */
2705 /* FIXME: Is it worth the trouble, really? Couldn't we just throw
2706 away all the text-properties instead of trying to guess how
2707 to adjust them? AFAICT the result is not reliable anyway. */
2705 set_intervals_multibyte (1); 2708 set_intervals_multibyte (1);
2706 } 2709 }
2707 2710
@@ -5600,17 +5603,17 @@ Use the command `abbrev-mode' to change this variable. */);
5600 doc: /* Non-nil if searches and matches should ignore case. */); 5603 doc: /* Non-nil if searches and matches should ignore case. */);
5601 5604
5602 DEFVAR_PER_BUFFER ("fill-column", &BVAR (current_buffer, fill_column), 5605 DEFVAR_PER_BUFFER ("fill-column", &BVAR (current_buffer, fill_column),
5603 Qfixnump, 5606 Qintegerp,
5604 doc: /* Column beyond which automatic line-wrapping should happen. 5607 doc: /* Column beyond which automatic line-wrapping should happen.
5605Interactively, you can set the buffer local value using \\[set-fill-column]. */); 5608Interactively, you can set the buffer local value using \\[set-fill-column]. */);
5606 5609
5607 DEFVAR_PER_BUFFER ("left-margin", &BVAR (current_buffer, left_margin), 5610 DEFVAR_PER_BUFFER ("left-margin", &BVAR (current_buffer, left_margin),
5608 Qfixnump, 5611 Qintegerp,
5609 doc: /* Column for the default `indent-line-function' to indent to. 5612 doc: /* Column for the default `indent-line-function' to indent to.
5610Linefeed indents to this column in Fundamental mode. */); 5613Linefeed indents to this column in Fundamental mode. */);
5611 5614
5612 DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width), 5615 DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width),
5613 Qfixnump, 5616 Qintegerp,
5614 doc: /* Distance between tab stops (for display of tab characters), in columns. 5617 doc: /* Distance between tab stops (for display of tab characters), in columns.
5615NOTE: This controls the display width of a TAB character, and not 5618NOTE: This controls the display width of a TAB character, and not
5616the size of an indentation step. 5619the size of an indentation step.
@@ -5781,7 +5784,7 @@ If it is nil, that means don't auto-save this buffer. */);
5781Backing up is done before the first time the file is saved. */); 5784Backing up is done before the first time the file is saved. */);
5782 5785
5783 DEFVAR_PER_BUFFER ("buffer-saved-size", &BVAR (current_buffer, save_length), 5786 DEFVAR_PER_BUFFER ("buffer-saved-size", &BVAR (current_buffer, save_length),
5784 Qfixnump, 5787 Qintegerp,
5785 doc: /* Length of current buffer when last read in, saved or auto-saved. 5788 doc: /* Length of current buffer when last read in, saved or auto-saved.
57860 initially. 57890 initially.
5787-1 means auto-saving turned off until next real save. 5790-1 means auto-saving turned off until next real save.
@@ -5855,7 +5858,7 @@ In addition, a char-table has six extra slots to control the display of:
5855See also the functions `display-table-slot' and `set-display-table-slot'. */); 5858See also the functions `display-table-slot' and `set-display-table-slot'. */);
5856 5859
5857 DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols), 5860 DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols),
5858 Qfixnump, 5861 Qintegerp,
5859 doc: /* Width in columns of left marginal area for display of a buffer. 5862 doc: /* Width in columns of left marginal area for display of a buffer.
5860A value of nil means no marginal area. 5863A value of nil means no marginal area.
5861 5864
@@ -5863,7 +5866,7 @@ Setting this variable does not take effect until a new buffer is displayed
5863in a window. To make the change take effect, call `set-window-buffer'. */); 5866in a window. To make the change take effect, call `set-window-buffer'. */);
5864 5867
5865 DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols), 5868 DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols),
5866 Qfixnump, 5869 Qintegerp,
5867 doc: /* Width in columns of right marginal area for display of a buffer. 5870 doc: /* Width in columns of right marginal area for display of a buffer.
5868A value of nil means no marginal area. 5871A value of nil means no marginal area.
5869 5872
@@ -5871,7 +5874,7 @@ Setting this variable does not take effect until a new buffer is displayed
5871in a window. To make the change take effect, call `set-window-buffer'. */); 5874in a window. To make the change take effect, call `set-window-buffer'. */);
5872 5875
5873 DEFVAR_PER_BUFFER ("left-fringe-width", &BVAR (current_buffer, left_fringe_width), 5876 DEFVAR_PER_BUFFER ("left-fringe-width", &BVAR (current_buffer, left_fringe_width),
5874 Qfixnump, 5877 Qintegerp,
5875 doc: /* Width of this buffer's left fringe (in pixels). 5878 doc: /* Width of this buffer's left fringe (in pixels).
5876A value of 0 means no left fringe is shown in this buffer's window. 5879A value of 0 means no left fringe is shown in this buffer's window.
5877A value of nil means to use the left fringe width from the window's frame. 5880A value of nil means to use the left fringe width from the window's frame.
@@ -5880,7 +5883,7 @@ Setting this variable does not take effect until a new buffer is displayed
5880in a window. To make the change take effect, call `set-window-buffer'. */); 5883in a window. To make the change take effect, call `set-window-buffer'. */);
5881 5884
5882 DEFVAR_PER_BUFFER ("right-fringe-width", &BVAR (current_buffer, right_fringe_width), 5885 DEFVAR_PER_BUFFER ("right-fringe-width", &BVAR (current_buffer, right_fringe_width),
5883 Qfixnump, 5886 Qintegerp,
5884 doc: /* Width of this buffer's right fringe (in pixels). 5887 doc: /* Width of this buffer's right fringe (in pixels).
5885A value of 0 means no right fringe is shown in this buffer's window. 5888A value of 0 means no right fringe is shown in this buffer's window.
5886A value of nil means to use the right fringe width from the window's frame. 5889A value of nil means to use the right fringe width from the window's frame.
@@ -5897,12 +5900,12 @@ Setting 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'. */); 5900in a window. To make the change take effect, call `set-window-buffer'. */);
5898 5901
5899 DEFVAR_PER_BUFFER ("scroll-bar-width", &BVAR (current_buffer, scroll_bar_width), 5902 DEFVAR_PER_BUFFER ("scroll-bar-width", &BVAR (current_buffer, scroll_bar_width),
5900 Qfixnump, 5903 Qintegerp,
5901 doc: /* Width of this buffer's vertical scroll bars in pixels. 5904 doc: /* Width of this buffer's vertical scroll bars in pixels.
5902A value of nil means to use the scroll bar width from the window's frame. */); 5905A value of nil means to use the scroll bar width from the window's frame. */);
5903 5906
5904 DEFVAR_PER_BUFFER ("scroll-bar-height", &BVAR (current_buffer, scroll_bar_height), 5907 DEFVAR_PER_BUFFER ("scroll-bar-height", &BVAR (current_buffer, scroll_bar_height),
5905 Qfixnump, 5908 Qintegerp,
5906 doc: /* Height of this buffer's horizontal scroll bars in pixels. 5909 doc: /* Height of this buffer's horizontal scroll bars in pixels.
5907A value of nil means to use the scroll bar height from the window's frame. */); 5910A value of nil means to use the scroll bar height from the window's frame. */);
5908 5911
@@ -6172,7 +6175,7 @@ Setting this variable is very fast, much faster than scanning all the text in
6172the buffer looking for properties to change. */); 6175the buffer looking for properties to change. */);
6173 6176
6174 DEFVAR_PER_BUFFER ("buffer-display-count", 6177 DEFVAR_PER_BUFFER ("buffer-display-count",
6175 &BVAR (current_buffer, display_count), Qfixnump, 6178 &BVAR (current_buffer, display_count), Qintegerp,
6176 doc: /* A number incremented each time this buffer is displayed in a window. 6179 doc: /* A number incremented each time this buffer is displayed in a window.
6177The function `set-window-buffer' increments it. */); 6180The function `set-window-buffer' increments it. */);
6178 6181