diff options
| author | Richard M. Stallman | 1995-08-10 23:19:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-10 23:19:22 +0000 |
| commit | d94eb6ebc8fa99288a2e19c6e57909a8bfc8cdbf (patch) | |
| tree | 8898d7d32f033760a56167b18fc2ddb19c49fc9c | |
| parent | f1f32df9a910697d88b93c88cbd4c28099748ac3 (diff) | |
| download | emacs-d94eb6ebc8fa99288a2e19c6e57909a8bfc8cdbf.tar.gz emacs-d94eb6ebc8fa99288a2e19c6e57909a8bfc8cdbf.zip | |
(isearch-other-meta-char): Avoid bug checking whether
a key is defined in the function key map.
Call cancel-kbd-macro-events.
| -rw-r--r-- | lisp/isearch.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index fca09b9decd..8a63446c5b7 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1007,12 +1007,14 @@ and the meta character is unread so that it applies to editing the string." | |||
| 1007 | (main-event (aref key 0)) | 1007 | (main-event (aref key 0)) |
| 1008 | (keylist (listify-key-sequence key))) | 1008 | (keylist (listify-key-sequence key))) |
| 1009 | (cond ((and (= (length key) 1) | 1009 | (cond ((and (= (length key) 1) |
| 1010 | (lookup-key function-key-map key)) | 1010 | (let ((lookup (lookup-key function-key-map key))) |
| 1011 | (not (or (null lookup) (integerp lookup))))) | ||
| 1011 | ;; Handle a function key that translates into something else. | 1012 | ;; Handle a function key that translates into something else. |
| 1012 | ;; If the key has a global definition too, | 1013 | ;; If the key has a global definition too, |
| 1013 | ;; exit and unread the key itself, so its global definition runs. | 1014 | ;; exit and unread the key itself, so its global definition runs. |
| 1014 | ;; Otherwise, unread the translation, | 1015 | ;; Otherwise, unread the translation, |
| 1015 | ;; so that the translated key takes effect within isearch. | 1016 | ;; so that the translated key takes effect within isearch. |
| 1017 | (cancel-kbd-macro-events) | ||
| 1016 | (if (lookup-key global-map key) | 1018 | (if (lookup-key global-map key) |
| 1017 | (progn | 1019 | (progn |
| 1018 | (isearch-done) | 1020 | (isearch-done) |
| @@ -1035,12 +1037,14 @@ and the meta character is unread so that it applies to editing the string." | |||
| 1035 | copy) | 1037 | copy) |
| 1036 | nil))) | 1038 | nil))) |
| 1037 | (setcar keylist (- main-event (- ?\C-\S-a ?\C-a))) | 1039 | (setcar keylist (- main-event (- ?\C-\S-a ?\C-a))) |
| 1040 | (cancel-kbd-macro-events) | ||
| 1038 | (apply 'isearch-unread keylist)) | 1041 | (apply 'isearch-unread keylist)) |
| 1039 | ((eq search-exit-option 'edit) | 1042 | ((eq search-exit-option 'edit) |
| 1040 | (apply 'isearch-unread keylist) | 1043 | (apply 'isearch-unread keylist) |
| 1041 | (isearch-edit-string)) | 1044 | (isearch-edit-string)) |
| 1042 | (search-exit-option | 1045 | (search-exit-option |
| 1043 | (let (window) | 1046 | (let (window) |
| 1047 | (cancel-kbd-macro-events) | ||
| 1044 | (apply 'isearch-unread keylist) | 1048 | (apply 'isearch-unread keylist) |
| 1045 | ;; Properly handle scroll-bar and mode-line clicks | 1049 | ;; Properly handle scroll-bar and mode-line clicks |
| 1046 | ;; for which a dummy prefix event was generated as (aref key 0). | 1050 | ;; for which a dummy prefix event was generated as (aref key 0). |