Function: c-hungry-delete

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

Signature

(c-hungry-delete)

Documentation

Delete non-whitespace char, or all whitespace up to next non-whitespace char.

The direction of deletion depends on the configuration: If the function delete-forward-p is defined and returns non-nil, it deletes forward using c-hungry-delete-forward. Otherwise it deletes backward using c-hungry-backspace.

Note: This is the way in XEmacs to choose the correct action for the
[delete] key, whichever key that means. Other flavors don't use this
function to control that.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
;; This function is only used in XEmacs.
(defun c-hungry-delete ()
  "Delete non-whitespace char, or all whitespace up to next non-whitespace char.
The direction of deletion depends on the configuration: If the
function `delete-forward-p' is defined and returns non-nil, it deletes
forward using `c-hungry-delete-forward'.  Otherwise it deletes
backward using `c-hungry-backspace'.

Note: This is the way in XEmacs to choose the correct action for the
[delete] key, whichever key that means.  Other flavors don't use this
function to control that."
  (interactive)
  (if (and (fboundp 'delete-forward-p)
	   (delete-forward-p))
      (c-hungry-delete-forward)
    (c-hungry-delete-backwards)))