Function: c-hungry-delete-forward

c-hungry-delete-forward is an interactive and byte-compiled function defined in cc-cmds.el.gz.

Signature

(c-hungry-delete-forward)

Documentation

Delete the following character or all following whitespace up to the next non-whitespace character. See also M-x c-hungry-delete-backwards (c-hungry-delete-backwards).

View in manual

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-hungry-delete-forward ()
  "Delete the following character or all following whitespace
up to the next non-whitespace character.
See also \\[c-hungry-delete-backwards]."
  (interactive)
  (c-with-string-fences
   (let ((here (point)))
     (c-skip-ws-forward)
     (if (/= (point) here)
	 (delete-region (point) here)
       (funcall c-delete-function 1)))))