diff options
| author | Richard M. Stallman | 1994-06-11 18:59:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-11 18:59:38 +0000 |
| commit | eccd311755c7a15fc2158e9292b4e34e395cddda (patch) | |
| tree | ce663152342485f7e7533f269019d46f8607ee9f | |
| parent | af9239811c32abe72d9869a131da8e4f6e857b52 (diff) | |
| download | emacs-eccd311755c7a15fc2158e9292b4e34e395cddda.tar.gz emacs-eccd311755c7a15fc2158e9292b4e34e395cddda.zip | |
(isearch-mode-map):
Bind the ASCII-equivalent fcn keys explicitly to nil.
| -rw-r--r-- | lisp/isearch.el | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 1e38883d047..59dd22f236b 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> | 5 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> |
| 6 | 6 | ||
| 7 | ;; |$Date: 1994/05/07 01:33:23 $|$Revision: 1.68 $ | 7 | ;; |$Date: 1994/05/14 09:50:26 $|$Revision: 1.69 $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -236,35 +236,36 @@ Default value, nil, means edit the string instead.") | |||
| 236 | ;; This overrides the default binding for t. | 236 | ;; This overrides the default binding for t. |
| 237 | (define-key map [down-mouse-2] 'nil) | 237 | (define-key map [down-mouse-2] 'nil) |
| 238 | 238 | ||
| 239 | ;; Bind the ASCII-equivalent "function keys" explicitly | 239 | ;; Bind the ASCII-equivalent "function keys" explicitly to nil |
| 240 | ;; if we bind their equivalents, | 240 | ;; so that the default binding does not apply. |
| 241 | ;; since otherwise the default binding would override. | 241 | ;; As a result, these keys translate thru function-key-map |
| 242 | ;; as normal, and they have the effect of the equivalent ASCII char. | ||
| 242 | ;; We bind [escape] below. | 243 | ;; We bind [escape] below. |
| 243 | (define-key map [tab] 'isearch-printing-char) | 244 | (define-key map [tab] 'nil) |
| 244 | (define-key map [kp-0] 'isearch-printing-char) | 245 | (define-key map [kp-0] 'nil) |
| 245 | (define-key map [kp-1] 'isearch-printing-char) | 246 | (define-key map [kp-1] 'nil) |
| 246 | (define-key map [kp-2] 'isearch-printing-char) | 247 | (define-key map [kp-2] 'nil) |
| 247 | (define-key map [kp-3] 'isearch-printing-char) | 248 | (define-key map [kp-3] 'nil) |
| 248 | (define-key map [kp-4] 'isearch-printing-char) | 249 | (define-key map [kp-4] 'nil) |
| 249 | (define-key map [kp-5] 'isearch-printing-char) | 250 | (define-key map [kp-5] 'nil) |
| 250 | (define-key map [kp-6] 'isearch-printing-char) | 251 | (define-key map [kp-6] 'nil) |
| 251 | (define-key map [kp-7] 'isearch-printing-char) | 252 | (define-key map [kp-7] 'nil) |
| 252 | (define-key map [kp-8] 'isearch-printing-char) | 253 | (define-key map [kp-8] 'nil) |
| 253 | (define-key map [kp-9] 'isearch-printing-char) | 254 | (define-key map [kp-9] 'nil) |
| 254 | (define-key map [kp-add] 'isearch-printing-char) | 255 | (define-key map [kp-add] 'nil) |
| 255 | (define-key map [kp-subtract] 'isearch-printing-char) | 256 | (define-key map [kp-subtract] 'nil) |
| 256 | (define-key map [kp-multiply] 'isearch-printing-char) | 257 | (define-key map [kp-multiply] 'nil) |
| 257 | (define-key map [kp-divide] 'isearch-printing-char) | 258 | (define-key map [kp-divide] 'nil) |
| 258 | (define-key map [kp-decimal] 'isearch-printing-char) | 259 | (define-key map [kp-decimal] 'nil) |
| 259 | (define-key map [kp-separator] 'isearch-printing-char) | 260 | (define-key map [kp-separator] 'nil) |
| 260 | (define-key map [kp-equal] 'isearch-printing-char) | 261 | (define-key map [kp-equal] 'nil) |
| 261 | (define-key map [kp-tab] 'isearch-printing-char) | 262 | (define-key map [kp-tab] 'nil) |
| 262 | (define-key map [kp-space] 'isearch-printing-char) | 263 | (define-key map [kp-space] 'nil) |
| 263 | (define-key map [kp-enter] 'isearch-exit) | 264 | (define-key map [kp-enter] 'nil) |
| 264 | (define-key map [delete] 'isearch-delete-char) | 265 | (define-key map [delete] 'nil) |
| 265 | (define-key map [backspace] 'isearch-delete-char) | 266 | (define-key map [backspace] 'nil) |
| 266 | (define-key map [return] 'isearch-exit) | 267 | (define-key map [return] 'nil) |
| 267 | (define-key map [newline] 'isearch-printing-char) | 268 | (define-key map [newline] 'nil) |
| 268 | 269 | ||
| 269 | ;; Define keys for regexp chars * ? |. | 270 | ;; Define keys for regexp chars * ? |. |
| 270 | ;; Nothing special for + because it matches at least once. | 271 | ;; Nothing special for + because it matches at least once. |