Variable: overwrite-mode

overwrite-mode is a buffer-local variable defined in buffer.c.

Documentation

Non-nil if self-insertion should replace existing text.

The value should be one of overwrite-mode-textual, overwrite-mode-binary, or nil. If it is overwrite-mode-textual, self-insertion still inserts at the end of a line, and inserts when point is before a tab, until the tab is filled in. If overwrite-mode-binary, self-insertion replaces newlines and tabs too.

View in manual

Probably introduced at or before Emacs version 18.

Key Bindings

Source Code

// Defined in /usr/src/emacs/src/buffer.c
  DEFVAR_PER_BUFFER ("overwrite-mode", &BVAR (current_buffer, overwrite_mode),
		     Qoverwrite_mode,
		     doc: /* Non-nil if self-insertion should replace existing text.
The value should be one of `overwrite-mode-textual',
`overwrite-mode-binary', or nil.
If it is `overwrite-mode-textual', self-insertion still
inserts at the end of a line, and inserts when point is before a tab,
until the tab is filled in.
If `overwrite-mode-binary', self-insertion replaces newlines and tabs too.  */);