# HG changeset patch # User Richard M. Stallman # Date 1198601780 0 # Node ID 4a3bc3d3d49284f8a2d6755beab66fe3aa591d41 # Parent f21bb04cb3ab4de7f60895d8ec6ca70fa511fa8a (comint-mode-map): Explicitly bind `delete' and `kp-delete' so they never do EOF. diff -r f21bb04cb3ab -r 4a3bc3d3d492 lisp/comint.el --- a/lisp/comint.el Mon Dec 24 05:26:06 2007 +0000 +++ b/lisp/comint.el Tue Dec 25 16:56:20 2007 +0000 @@ -453,6 +453,10 @@ (define-key map "\e\C-l" 'comint-show-output) (define-key map "\C-m" 'comint-send-input) (define-key map "\C-d" 'comint-delchar-or-maybe-eof) + ;; The following two are standardly aliased to C-d, + ;; but they should never do EOF, just delete. + (define-key map [delete] 'delete-char) + (define-key map [kp-delete] 'delete-char) (define-key map "\C-c " 'comint-accumulate) (define-key map "\C-c\C-x" 'comint-get-next-from-history) (define-key map "\C-c\C-a" 'comint-bol-or-process-mark)