Function: eshell-delchar-or-maybe-eof

eshell-delchar-or-maybe-eof is an interactive and byte-compiled function defined in em-rebind.el.gz.

Signature

(eshell-delchar-or-maybe-eof ARG)

Documentation

Delete ARG characters forward or send an EOF to subprocess.

Sends an EOF only if point is at the end of the buffer and there is no input.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-rebind.el.gz
(defun eshell-delchar-or-maybe-eof (arg)
  "Delete ARG characters forward or send an EOF to subprocess.
Sends an EOF only if point is at the end of the buffer and there is no
input."
  (interactive "p")
  (let ((proc (eshell-interactive-process)))
    (if (eobp)
	(cond
	 ((/= (point) eshell-last-output-end)
	  (beep))
	 (proc
	  (process-send-eof))
	 (t
	  (eshell-life-is-too-much)))
      (eshell-delete-backward-char (- arg)))))