diff options
| author | Richard M. Stallman | 2007-12-25 16:56:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-12-25 16:56:28 +0000 |
| commit | 6143495cd6cb20700186b839bd5e5bd19a6519c8 (patch) | |
| tree | b070086e2b83eb373d3d9af2bd9beae3a566212c | |
| parent | 9d826ef2087381a1241029671ca942718c3a19d9 (diff) | |
| download | emacs-6143495cd6cb20700186b839bd5e5bd19a6519c8.tar.gz emacs-6143495cd6cb20700186b839bd5e5bd19a6519c8.zip | |
(comint-mode-map): Explicitly bind `delete' and `kp-delete'
so they never do EOF.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/comint.el | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6214d715b37..7ac2582e64c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-12-25 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * comint.el (comint-mode-map): Explicitly bind `delete' and `kp-delete' | ||
| 4 | so they never do EOF. | ||
| 5 | |||
| 1 | 2007-12-23 Richard Stallman <rms@gnu.org> | 6 | 2007-12-23 Richard Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * dired-aux.el: Load dired.el at run time too. | 8 | * dired-aux.el: Load dired.el at run time too. |
diff --git a/lisp/comint.el b/lisp/comint.el index 047cc3b80fb..96c36f3496f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -453,6 +453,10 @@ executed once when the buffer is created." | |||
| 453 | (define-key map "\e\C-l" 'comint-show-output) | 453 | (define-key map "\e\C-l" 'comint-show-output) |
| 454 | (define-key map "\C-m" 'comint-send-input) | 454 | (define-key map "\C-m" 'comint-send-input) |
| 455 | (define-key map "\C-d" 'comint-delchar-or-maybe-eof) | 455 | (define-key map "\C-d" 'comint-delchar-or-maybe-eof) |
| 456 | ;; The following two are standardly aliased to C-d, | ||
| 457 | ;; but they should never do EOF, just delete. | ||
| 458 | (define-key map [delete] 'delete-char) | ||
| 459 | (define-key map [kp-delete] 'delete-char) | ||
| 456 | (define-key map "\C-c " 'comint-accumulate) | 460 | (define-key map "\C-c " 'comint-accumulate) |
| 457 | (define-key map "\C-c\C-x" 'comint-get-next-from-history) | 461 | (define-key map "\C-c\C-x" 'comint-get-next-from-history) |
| 458 | (define-key map "\C-c\C-a" 'comint-bol-or-process-mark) | 462 | (define-key map "\C-c\C-a" 'comint-bol-or-process-mark) |