Function: c-toggle-auto-state

c-toggle-auto-state is a and interactive for c-toggle-auto-newline, defined in cc-cmds.el.gz.

This command is obsolete since 22.1; use c-toggle-auto-newline instead.

Signature

(c-toggle-auto-state &optional ARG)

Documentation

Toggle auto-newline feature.

Optional numeric ARG, if supplied, turns on auto-newline when positive, turns it off when negative, and just toggles it when zero or left out.

Turning on auto-newline automatically enables electric indentation.

When the auto-newline feature is enabled (indicated by "/la" on the mode line after the mode name) newlines are automatically inserted after special characters such as brace, comma, semi-colon, and colon.

Probably introduced at or before Emacs version 22.1.

Key Bindings

Aliases

c-toggle-auto-state (obsolete since 22.1)