diff options
| -rw-r--r-- | lisp/isearch.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index e31abb94655..8e945312ef1 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/11/15 16:56:44 $|$Revision: 1.77 $ | 7 | ;; |$Date: 94/11/15 19:41:36 $|$Revision: 1.78 $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -209,6 +209,8 @@ Default value, nil, means edit the string instead.") | |||
| 209 | (define-key map "\C-r" 'isearch-repeat-backward) | 209 | (define-key map "\C-r" 'isearch-repeat-backward) |
| 210 | (define-key map "\177" 'isearch-delete-char) | 210 | (define-key map "\177" 'isearch-delete-char) |
| 211 | (define-key map "\C-g" 'isearch-abort) | 211 | (define-key map "\C-g" 'isearch-abort) |
| 212 | (define-key map "\e\e\e" 'isearch-cancel) | ||
| 213 | (define-key map [escape escape escape] 'isearch-cancel) | ||
| 212 | 214 | ||
| 213 | (define-key map "\C-q" 'isearch-quote-char) | 215 | (define-key map "\C-q" 'isearch-quote-char) |
| 214 | 216 | ||
| @@ -773,6 +775,12 @@ If first char entered is \\[isearch-yank-word], then do word search instead." | |||
| 773 | (setq isearch-new-forward nil) | 775 | (setq isearch-new-forward nil) |
| 774 | (exit-minibuffer)) | 776 | (exit-minibuffer)) |
| 775 | 777 | ||
| 778 | (defun isearch-cancel () | ||
| 779 | "Terminate the search and go back to the starting point." | ||
| 780 | (interactive) | ||
| 781 | (goto-char isearch-opoint) | ||
| 782 | (isearch-done t) | ||
| 783 | (signal 'quit nil)) ; and pass on quit signal | ||
| 776 | 784 | ||
| 777 | (defun isearch-abort () | 785 | (defun isearch-abort () |
| 778 | "Abort incremental search mode if searching is successful, signalling quit. | 786 | "Abort incremental search mode if searching is successful, signalling quit. |