Function: insert-byte

insert-byte is a function defined in editfns.c.

Signature

(insert-byte BYTE COUNT &optional INHERIT)

Documentation

Insert COUNT (second arg) copies of BYTE (first arg).

Both arguments are required. BYTE is a number of the range 0..255.

If BYTE is 128..255 and the current buffer is multibyte, the corresponding eight-bit character is inserted.

Point and markers are relocated as in the function insert.

The optional third arg INHERIT, if non-nil, says to inherit text properties from adjoining text, if those properties are sticky.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  CHECK_FIXNUM (byte);
  if (XFIXNUM (byte) < 0 || XFIXNUM (byte) > 255)
    args_out_of_range_3 (byte, make_fixnum (0), make_fixnum (255));
  if (XFIXNUM (byte) >= 128
      && ! NILP (BVAR (current_buffer, enable_multibyte_characters)))
    XSETFASTINT (byte, BYTE8_TO_CHAR (XFIXNUM (byte)));
  return Finsert_char (byte, count, inherit);
}