diff options
| author | Tom Tromey | 2018-07-08 09:31:13 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-07-12 22:12:28 -0600 |
| commit | 45eb3b3513619d97d046a8efbe0d16fafc75a734 (patch) | |
| tree | 1a5d9a2eebfbdf040c45d7b0874b6b56b52110b3 /src/buffer.c | |
| parent | 27980e36040d0693fe997de6b6b73c09c3ce1cb5 (diff) | |
| download | emacs-45eb3b3513619d97d046a8efbe0d16fafc75a734.tar.gz emacs-45eb3b3513619d97d046a8efbe0d16fafc75a734.zip | |
Use fixnump rather than integerp in some spots
* src/buffer.c (syms_of_buffer): Use Qfixnump, not Qintegerp.
* src/data.c (syms_of_data): Define fixnump symbol.
* src/lisp.h (lisp_h_CHECK_FIXNUM): Use Qfixnump.
(struct Lisp_Buffer_Objfwd): Update comment.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/buffer.c b/src/buffer.c index 29248855632..2a165c5f547 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5584,17 +5584,17 @@ Use the command `abbrev-mode' to change this variable. */); | |||
| 5584 | doc: /* Non-nil if searches and matches should ignore case. */); | 5584 | doc: /* Non-nil if searches and matches should ignore case. */); |
| 5585 | 5585 | ||
| 5586 | DEFVAR_PER_BUFFER ("fill-column", &BVAR (current_buffer, fill_column), | 5586 | DEFVAR_PER_BUFFER ("fill-column", &BVAR (current_buffer, fill_column), |
| 5587 | Qintegerp, | 5587 | Qfixnump, |
| 5588 | doc: /* Column beyond which automatic line-wrapping should happen. | 5588 | doc: /* Column beyond which automatic line-wrapping should happen. |
| 5589 | Interactively, you can set the buffer local value using \\[set-fill-column]. */); | 5589 | Interactively, you can set the buffer local value using \\[set-fill-column]. */); |
| 5590 | 5590 | ||
| 5591 | DEFVAR_PER_BUFFER ("left-margin", &BVAR (current_buffer, left_margin), | 5591 | DEFVAR_PER_BUFFER ("left-margin", &BVAR (current_buffer, left_margin), |
| 5592 | Qintegerp, | 5592 | Qfixnump, |
| 5593 | doc: /* Column for the default `indent-line-function' to indent to. | 5593 | doc: /* Column for the default `indent-line-function' to indent to. |
| 5594 | Linefeed indents to this column in Fundamental mode. */); | 5594 | Linefeed indents to this column in Fundamental mode. */); |
| 5595 | 5595 | ||
| 5596 | DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width), | 5596 | DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width), |
| 5597 | Qintegerp, | 5597 | Qfixnump, |
| 5598 | doc: /* Distance between tab stops (for display of tab characters), in columns. | 5598 | doc: /* Distance between tab stops (for display of tab characters), in columns. |
| 5599 | NOTE: This controls the display width of a TAB character, and not | 5599 | NOTE: This controls the display width of a TAB character, and not |
| 5600 | the size of an indentation step. | 5600 | the size of an indentation step. |
| @@ -5765,7 +5765,7 @@ If it is nil, that means don't auto-save this buffer. */); | |||
| 5765 | Backing up is done before the first time the file is saved. */); | 5765 | Backing up is done before the first time the file is saved. */); |
| 5766 | 5766 | ||
| 5767 | DEFVAR_PER_BUFFER ("buffer-saved-size", &BVAR (current_buffer, save_length), | 5767 | DEFVAR_PER_BUFFER ("buffer-saved-size", &BVAR (current_buffer, save_length), |
| 5768 | Qintegerp, | 5768 | Qfixnump, |
| 5769 | doc: /* Length of current buffer when last read in, saved or auto-saved. | 5769 | doc: /* Length of current buffer when last read in, saved or auto-saved. |
| 5770 | 0 initially. | 5770 | 0 initially. |
| 5771 | -1 means auto-saving turned off until next real save. | 5771 | -1 means auto-saving turned off until next real save. |
| @@ -5839,7 +5839,7 @@ In addition, a char-table has six extra slots to control the display of: | |||
| 5839 | See also the functions `display-table-slot' and `set-display-table-slot'. */); | 5839 | See also the functions `display-table-slot' and `set-display-table-slot'. */); |
| 5840 | 5840 | ||
| 5841 | DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols), | 5841 | DEFVAR_PER_BUFFER ("left-margin-width", &BVAR (current_buffer, left_margin_cols), |
| 5842 | Qintegerp, | 5842 | Qfixnump, |
| 5843 | doc: /* Width in columns of left marginal area for display of a buffer. | 5843 | doc: /* Width in columns of left marginal area for display of a buffer. |
| 5844 | A value of nil means no marginal area. | 5844 | A value of nil means no marginal area. |
| 5845 | 5845 | ||
| @@ -5847,7 +5847,7 @@ Setting this variable does not take effect until a new buffer is displayed | |||
| 5847 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5847 | in a window. To make the change take effect, call `set-window-buffer'. */); |
| 5848 | 5848 | ||
| 5849 | DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols), | 5849 | DEFVAR_PER_BUFFER ("right-margin-width", &BVAR (current_buffer, right_margin_cols), |
| 5850 | Qintegerp, | 5850 | Qfixnump, |
| 5851 | doc: /* Width in columns of right marginal area for display of a buffer. | 5851 | doc: /* Width in columns of right marginal area for display of a buffer. |
| 5852 | A value of nil means no marginal area. | 5852 | A value of nil means no marginal area. |
| 5853 | 5853 | ||
| @@ -5855,7 +5855,7 @@ Setting this variable does not take effect until a new buffer is displayed | |||
| 5855 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5855 | in a window. To make the change take effect, call `set-window-buffer'. */); |
| 5856 | 5856 | ||
| 5857 | DEFVAR_PER_BUFFER ("left-fringe-width", &BVAR (current_buffer, left_fringe_width), | 5857 | DEFVAR_PER_BUFFER ("left-fringe-width", &BVAR (current_buffer, left_fringe_width), |
| 5858 | Qintegerp, | 5858 | Qfixnump, |
| 5859 | doc: /* Width of this buffer's left fringe (in pixels). | 5859 | doc: /* Width of this buffer's left fringe (in pixels). |
| 5860 | A value of 0 means no left fringe is shown in this buffer's window. | 5860 | A value of 0 means no left fringe is shown in this buffer's window. |
| 5861 | A value of nil means to use the left fringe width from the window's frame. | 5861 | A value of nil means to use the left fringe width from the window's frame. |
| @@ -5864,7 +5864,7 @@ Setting this variable does not take effect until a new buffer is displayed | |||
| 5864 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5864 | in a window. To make the change take effect, call `set-window-buffer'. */); |
| 5865 | 5865 | ||
| 5866 | DEFVAR_PER_BUFFER ("right-fringe-width", &BVAR (current_buffer, right_fringe_width), | 5866 | DEFVAR_PER_BUFFER ("right-fringe-width", &BVAR (current_buffer, right_fringe_width), |
| 5867 | Qintegerp, | 5867 | Qfixnump, |
| 5868 | doc: /* Width of this buffer's right fringe (in pixels). | 5868 | doc: /* Width of this buffer's right fringe (in pixels). |
| 5869 | A value of 0 means no right fringe is shown in this buffer's window. | 5869 | A value of 0 means no right fringe is shown in this buffer's window. |
| 5870 | A value of nil means to use the right fringe width from the window's frame. | 5870 | A value of nil means to use the right fringe width from the window's frame. |
| @@ -5881,12 +5881,12 @@ Setting this variable does not take effect until a new buffer is displayed | |||
| 5881 | in a window. To make the change take effect, call `set-window-buffer'. */); | 5881 | in a window. To make the change take effect, call `set-window-buffer'. */); |
| 5882 | 5882 | ||
| 5883 | DEFVAR_PER_BUFFER ("scroll-bar-width", &BVAR (current_buffer, scroll_bar_width), | 5883 | DEFVAR_PER_BUFFER ("scroll-bar-width", &BVAR (current_buffer, scroll_bar_width), |
| 5884 | Qintegerp, | 5884 | Qfixnump, |
| 5885 | doc: /* Width of this buffer's vertical scroll bars in pixels. | 5885 | doc: /* Width of this buffer's vertical scroll bars in pixels. |
| 5886 | A value of nil means to use the scroll bar width from the window's frame. */); | 5886 | A value of nil means to use the scroll bar width from the window's frame. */); |
| 5887 | 5887 | ||
| 5888 | DEFVAR_PER_BUFFER ("scroll-bar-height", &BVAR (current_buffer, scroll_bar_height), | 5888 | DEFVAR_PER_BUFFER ("scroll-bar-height", &BVAR (current_buffer, scroll_bar_height), |
| 5889 | Qintegerp, | 5889 | Qfixnump, |
| 5890 | doc: /* Height of this buffer's horizontal scroll bars in pixels. | 5890 | doc: /* Height of this buffer's horizontal scroll bars in pixels. |
| 5891 | A value of nil means to use the scroll bar height from the window's frame. */); | 5891 | A value of nil means to use the scroll bar height from the window's frame. */); |
| 5892 | 5892 | ||
| @@ -6156,7 +6156,7 @@ Setting this variable is very fast, much faster than scanning all the text in | |||
| 6156 | the buffer looking for properties to change. */); | 6156 | the buffer looking for properties to change. */); |
| 6157 | 6157 | ||
| 6158 | DEFVAR_PER_BUFFER ("buffer-display-count", | 6158 | DEFVAR_PER_BUFFER ("buffer-display-count", |
| 6159 | &BVAR (current_buffer, display_count), Qintegerp, | 6159 | &BVAR (current_buffer, display_count), Qfixnump, |
| 6160 | doc: /* A number incremented each time this buffer is displayed in a window. | 6160 | doc: /* A number incremented each time this buffer is displayed in a window. |
| 6161 | The function `set-window-buffer' increments it. */); | 6161 | The function `set-window-buffer' increments it. */); |
| 6162 | 6162 | ||