Function: edt-delete-to-end-of-line

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

Signature

(edt-delete-to-end-of-line NUM)

Documentation

Delete from cursor up to but excluding the end of line mark.

Argument NUM is the number of lines to delete.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; DEL EOL
;;;

(defun edt-delete-to-end-of-line (num)
  "Delete from cursor up to but excluding the end of line mark.
Argument NUM is the number of lines to delete."
  (interactive "*p")
  (edt-check-prefix num)
  (let ((beg (point)))
    (forward-char 1)
    (end-of-line num)
    (setq edt-last-deleted-lines
          (buffer-substring beg (point)))
    (delete-region beg (point))))