[gnu.emacs] send-eof for comint

worley@EDDIE.MIT.EDU (Dale Worley) (02/25/89)

Olin forgot the C-c C-d command.  Add the following in the appropriate
places in comint.el:

(define-key comint-mode-map "\C-c\C-d" 'comint-eof-subjob)

(defun comint-eof-subjob ()
  "Send end-of-file (control-D) to the current subjob."
  (interactive)
  (process-send-eof))

Dale
worley@compass.com

shivers@centro.soar.cs.cmu.edu (Olin Shivers) (02/25/89)

From Dale Worley:
    Olin forgot the C-c C-d command.  Add the following in the appropriate
    places in comint.el:

    (define-key comint-mode-map "\C-c\C-d" 'comint-eof-subjob)

    (defun comint-eof-subjob ()
      "Send end-of-file (control-D) to the current subjob."
      (interactive)
      (process-send-eof))

    Dale
    worley@compass.com
    ------

This is not necessary. C-d is already bound to the command
    comint-delchar-or-maybe-eof
which has the following doc string:
    Delete ARG characters forward, or send an EOF to process
    if at end of buffer.
This is probably what you want.
    -Olin
--