diff options
| author | YAMAMOTO Mitsuharu | 2019-05-23 10:53:23 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2019-05-23 10:53:23 +0900 |
| commit | b40dde705af4d53853de6185a2468153b442dc9a (patch) | |
| tree | e8dabba695163c2d07439fad6accff761f8f714c /src/buffer.c | |
| parent | 5d7dafacf4afc888511649f6fc24c28210cd0dfc (diff) | |
| parent | 03feb9376b54c489e24478954a11061e9b0d6db7 (diff) | |
| download | emacs-b40dde705af4d53853de6185a2468153b442dc9a.tar.gz emacs-b40dde705af4d53853de6185a2468153b442dc9a.zip | |
Merge branch 'master' into harfbuzz
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 27 |
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 | ||
| 2267 | static ptrdiff_t | 2267 | ptrdiff_t |
| 2268 | advance_to_char_boundary (ptrdiff_t byte_pos) | 2268 | advance_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. |
| 5605 | Interactively, you can set the buffer local value using \\[set-fill-column]. */); | 5608 | Interactively, 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. |
| 5610 | Linefeed indents to this column in Fundamental mode. */); | 5613 | Linefeed 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. |
| 5615 | NOTE: This controls the display width of a TAB character, and not | 5618 | NOTE: This controls the display width of a TAB character, and not |
| 5616 | the size of an indentation step. | 5619 | the size of an indentation step. |
| @@ -5781,7 +5784,7 @@ If it is nil, that means don't auto-save this buffer. */); | |||
| 5781 | Backing up is done before the first time the file is saved. */); | 5784 | Backing 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. |
| 5786 | 0 initially. | 5789 | 0 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: | |||
| 5855 | See also the functions `display-table-slot' and `set-display-table-slot'. */); | 5858 | See 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. |
| 5860 | A value of nil means no marginal area. | 5863 | A 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 | |||
| 5863 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5866 | in 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. |
| 5868 | A value of nil means no marginal area. | 5871 | A 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 | |||
| 5871 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5874 | in 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). |
| 5876 | A value of 0 means no left fringe is shown in this buffer's window. | 5879 | A value of 0 means no left fringe is shown in this buffer's window. |
| 5877 | A value of nil means to use the left fringe width from the window's frame. | 5880 | A 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 | |||
| 5880 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5883 | in 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). |
| 5885 | A value of 0 means no right fringe is shown in this buffer's window. | 5888 | A value of 0 means no right fringe is shown in this buffer's window. |
| 5886 | A value of nil means to use the right fringe width from the window's frame. | 5889 | A 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 | |||
| 5897 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5900 | in 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. |
| 5902 | A value of nil means to use the scroll bar width from the window's frame. */); | 5905 | A 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. |
| 5907 | A value of nil means to use the scroll bar height from the window's frame. */); | 5910 | A 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 | |||
| 6172 | the buffer looking for properties to change. */); | 6175 | the 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. |
| 6177 | The function `set-window-buffer' increments it. */); | 6180 | The function `set-window-buffer' increments it. */); |
| 6178 | 6181 | ||