buf = XBUFFER (buffer);
}
- return make_number (BUF_MODIFF (buf));
+ return make_fixnum (BUF_MODIFF (buf));
}
\f
DEFUN ("rename-buffer", Frename_buffer, Srename_buffer, 1, 2,
}
}
if (narrowed)
- Fnarrow_to_region (make_number (begv), make_number (zv));
+ Fnarrow_to_region (make_fixnum (begv), make_fixnum (zv));
}
else
{
TEMP_SET_PT (pt);
if (narrowed)
- Fnarrow_to_region (make_number (begv), make_number (zv));
+ Fnarrow_to_region (make_fixnum (begv), make_fixnum (zv));
/* Do this first, so that chars_in_text asks the right question.
set_intervals_multibyte needs it too. */
sortvec[j].beg = OVERLAY_POSITION (OVERLAY_START (overlay));
sortvec[j].end = OVERLAY_POSITION (OVERLAY_END (overlay));
tem = Foverlay_get (overlay, Qpriority);
- if (INTEGERP (tem))
+ if (FIXNUMP (tem))
sortvec[j].priority = XINT (tem);
else
sortvec[j].priority = 0;
ssl->buf[ssl->used].string = str;
ssl->buf[ssl->used].string2 = str2;
ssl->buf[ssl->used].size = size;
- ssl->buf[ssl->used].priority = (INTEGERP (pri) ? XINT (pri) : 0);
+ ssl->buf[ssl->used].priority = (FIXNUMP (pri) ? XINT (pri) : 0);
ssl->used++;
if (NILP (current_buffer->enable_multibyte_characters))
if (startpos > endpos)
{
int tem;
- Fset_marker (OVERLAY_START (overlay), make_number (endpos),
+ Fset_marker (OVERLAY_START (overlay), make_fixnum (endpos),
Qnil);
- Fset_marker (OVERLAY_END (overlay), make_number (startpos),
+ Fset_marker (OVERLAY_END (overlay), make_fixnum (startpos),
Qnil);
tem = startpos; startpos = endpos; endpos = tem;
}
if (startpos > endpos)
{
int tem;
- Fset_marker (OVERLAY_START (overlay), make_number (endpos),
+ Fset_marker (OVERLAY_START (overlay), make_fixnum (endpos),
Qnil);
- Fset_marker (OVERLAY_END (overlay), make_number (startpos),
+ Fset_marker (OVERLAY_END (overlay), make_fixnum (startpos),
Qnil);
tem = startpos; startpos = endpos; endpos = tem;
}
}
xfree (overlay_vec);
- return make_number (endpos);
+ return make_fixnum (endpos);
}
DEFUN ("previous-overlay-change", Fprevious_overlay_change,
(int *) 0, &prevpos, 1);
xfree (overlay_vec);
- return make_number (prevpos);
+ return make_fixnum (prevpos);
}
\f
/* These functions are for debugging overlays. */
Lisp_Object old;
old = last_overlay_modification_hooks;
last_overlay_modification_hooks
- = Fmake_vector (make_number (oldsize * 2), Qnil);
+ = Fmake_vector (make_fixnum (oldsize * 2), Qnil);
bcopy (XVECTOR (old)->contents,
XVECTOR (last_overlay_modification_hooks)->contents,
sizeof (Lisp_Object) * oldsize);
{
staticpro (&last_overlay_modification_hooks);
last_overlay_modification_hooks
- = Fmake_vector (make_number (10), Qnil);
+ = Fmake_vector (make_fixnum (10), Qnil);
staticpro (&Vbuffer_defaults);
staticpro (&Vbuffer_local_symbols);
nil here means use current buffer's major mode.");
DEFVAR_PER_BUFFER ("major-mode", ¤t_buffer->major_mode,
- make_number (Lisp_Symbol),
+ make_fixnum (Lisp_Symbol),
"Symbol for current buffer's major mode.");
DEFVAR_PER_BUFFER ("mode-name", ¤t_buffer->mode_name,
- make_number (Lisp_String),
+ make_fixnum (Lisp_String),
"Pretty name of current buffer's major mode (a string).");
DEFVAR_PER_BUFFER ("abbrev-mode", ¤t_buffer->abbrev_mode, Qnil,
Automatically becomes buffer-local when set in any fashion.");
DEFVAR_PER_BUFFER ("fill-column", ¤t_buffer->fill_column,
- make_number (Lisp_Int),
+ make_fixnum (Lisp_Int),
"*Column beyond which automatic line-wrapping should happen.\n\
Automatically becomes buffer-local when set in any fashion.");
DEFVAR_PER_BUFFER ("left-margin", ¤t_buffer->left_margin,
- make_number (Lisp_Int),
+ make_fixnum (Lisp_Int),
"*Column for the default indent-line-function to indent to.\n\
Linefeed indents to this column in Fundamental mode.\n\
Automatically becomes buffer-local when set in any fashion.");
DEFVAR_PER_BUFFER ("tab-width", ¤t_buffer->tab_width,
- make_number (Lisp_Int),
+ make_fixnum (Lisp_Int),
"*Distance between tab stops (for display of tab characters), in columns.\n\
Automatically becomes buffer-local when set in any fashion.");
DEFVAR_PER_BUFFER ("enable-multibyte-characters",
¤t_buffer->enable_multibyte_characters,
- make_number (-1),
+ make_fixnum (-1),
"Non-nil means the buffer contents are regarded as multi-byte characters.\n\
Otherwise they are regarded as unibyte. This affects the display,\n\
file I/O and the behavior of various editing commands.\n\
#endif
DEFVAR_PER_BUFFER ("default-directory", ¤t_buffer->directory,
- make_number (Lisp_String),
+ make_fixnum (Lisp_String),
"Name of default directory of current buffer. Should end with slash.\n\
Each buffer has its own value of this variable.");
its value may not be a list of functions.");
DEFVAR_PER_BUFFER ("buffer-file-name", ¤t_buffer->filename,
- make_number (Lisp_String),
+ make_fixnum (Lisp_String),
"Name of file visited in current buffer, or nil if not visiting a file.\n\
Each buffer has its own value of this variable.");
DEFVAR_PER_BUFFER ("buffer-file-truename", ¤t_buffer->file_truename,
- make_number (Lisp_String),
+ make_fixnum (Lisp_String),
"Abbreviated truename of file visited in current buffer, or nil if none.\n\
The truename of a file is calculated by `file-truename'\n\
and then abbreviated with `abbreviate-file-name'.\n\
DEFVAR_PER_BUFFER ("buffer-auto-save-file-name",
¤t_buffer->auto_save_file_name,
- make_number (Lisp_String),
+ make_fixnum (Lisp_String),
"Name of file for auto-saving current buffer,\n\
or nil if buffer should not be auto-saved.\n\
Each buffer has its own value of this variable.");
Each buffer has its own value of this variable.");
DEFVAR_PER_BUFFER ("buffer-saved-size", ¤t_buffer->save_length,
- make_number (Lisp_Int),
+ make_fixnum (Lisp_Int),
"Length of current buffer when last read in, saved or auto-saved.\n\
0 initially.\n\
Each buffer has its own value of this variable.");