Function: c-toggle-auto-hungry-state
c-toggle-auto-hungry-state is an interactive and byte-compiled
function defined in cc-cmds.el.gz.
Signature
(c-toggle-auto-hungry-state &optional ARG)
Documentation
Toggle auto-newline and hungry-delete-key features.
Optional numeric ARG, if supplied, turns on auto-newline and hungry-delete when positive, turns them off when negative, and just toggles them when zero or left out.
See c-toggle-auto-newline and c-toggle-hungry-state for details.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-toggle-auto-hungry-state (&optional arg)
"Toggle auto-newline and hungry-delete-key features.
Optional numeric ARG, if supplied, turns on auto-newline and
hungry-delete when positive, turns them off when negative, and just
toggles them when zero or left out.
See `c-toggle-auto-newline' and `c-toggle-hungry-state' for details."
(interactive "P")
(setq c-auto-newline (c-calculate-state arg c-auto-newline))
(setq c-hungry-delete-key (c-calculate-state arg c-hungry-delete-key))
(c-update-modeline)
(c-keep-region-active))