Function: edt-delete-to-beginning-of-word

edt-delete-to-beginning-of-word is an interactive and byte-compiled function defined in edt.el.gz.

Signature

(edt-delete-to-beginning-of-word NUM)

Documentation

Delete from cursor to beginning of word.

Argument NUM is the number of words to delete.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; DELETE TO BEGINNING OF WORD
;;;

(defun edt-delete-to-beginning-of-word (num)
  "Delete from cursor to beginning of word.
Argument NUM is the number of words to delete."
  (interactive "*p")
  (edt-check-prefix num)
  (let ((beg (point)))
    (edt-word-backward num)
    (setq edt-last-deleted-words (buffer-substring (point) beg))
    (delete-region beg (point))))