changeset 79623:4a3bc3d3d492

(comint-mode-map): Explicitly bind `delete' and `kp-delete' so they never do EOF.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Dec 2007 16:56:20 +0000
parents f21bb04cb3ab
children 23d24b6712f6
files lisp/comint.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)