Function: set-buffer-auto-saved

set-buffer-auto-saved is a function defined in fileio.c.

Signature

(set-buffer-auto-saved)

Documentation

Mark current buffer as auto-saved with its current text.

No auto-save file will be written until the buffer changes again.

View in manual

Source Code

// Defined in /usr/src/emacs/src/fileio.c
{
  /* FIXME: This should not be called in indirect buffers, since
     they're not autosaved.  */
  BUF_AUTOSAVE_MODIFF (current_buffer) = MODIFF;
  XSETFASTINT (BVAR (current_buffer, save_length), Z - BEG);
  current_buffer->auto_save_failure_time = 0;
  return Qnil;
}