comparison lisp/isearch.el @ 7378:8d05fd49a9ed

(isearch-edit-string): Doc fix. (isearch-message-prefix): Initialize `isearch-within-brackets'.
author Karl Heuer <kwzh@gnu.org>
date Sat, 07 May 1994 01:33:23 +0000
parents 4fd40bd394fe
children 0a30e271186f
comparison
equal deleted inserted replaced
7377:027616e7b1e4 7378:8d05fd49a9ed
2 2
3 ;; Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
4 4
5 ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> 5 ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu>
6 6
7 ;; |$Date: 1994/05/03 08:27:40 $|$Revision: 1.66 $ 7 ;; |$Date: 1994/05/03 22:34:16 $|$Revision: 1.67 $
8 8
9 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
10 10
11 ;; GNU Emacs is free software; you can redistribute it and/or modify 11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by 12 ;; it under the terms of the GNU General Public License as published by
667 The following additional command keys are active while editing. 667 The following additional command keys are active while editing.
668 \\<minibuffer-local-isearch-map> 668 \\<minibuffer-local-isearch-map>
669 \\[exit-minibuffer] to resume incremental searching with the edited string. 669 \\[exit-minibuffer] to resume incremental searching with the edited string.
670 \\[isearch-nonincremental-exit-minibuffer] to do one nonincremental search. 670 \\[isearch-nonincremental-exit-minibuffer] to do one nonincremental search.
671 \\[isearch-forward-exit-minibuffer] to resume isearching forward. 671 \\[isearch-forward-exit-minibuffer] to resume isearching forward.
672 \\[isearch-backward-exit-minibuffer] to resume isearching backward. 672 \\[isearch-reverse-exit-minibuffer] to resume isearching backward.
673 \\[isearch-ring-advance-edit] to replace the search string with the next item in the search ring. 673 \\[isearch-ring-advance-edit] to replace the search string with the next item in the search ring.
674 \\[isearch-ring-retreat-edit] to replace the search string with the previous item in the search ring. 674 \\[isearch-ring-retreat-edit] to replace the search string with the previous item in the search ring.
675 \\[isearch-complete-edit] to complete the search string using the search ring. 675 \\[isearch-complete-edit] to complete the search string using the search ring.
676 676 \\<isearch-mode-map>
677 If first char entered is \\[isearch-yank-word], then do word search instead." 677 If first char entered is \\[isearch-yank-word], then do word search instead."
678 678
679 ;; This code is very hairy for several reasons, explained in the code. 679 ;; This code is very hairy for several reasons, explained in the code.
680 ;; Mainly, isearch-mode must be terminated while editing and then restarted. 680 ;; Mainly, isearch-mode must be terminated while editing and then restarted.
681 ;; If there were a way to catch any change of buffer from the minibuffer, 681 ;; If there were a way to catch any change of buffer from the minibuffer,
1293 ;; check that it still is. If it is valid now, 1293 ;; check that it still is. If it is valid now,
1294 ;; let the message we display while searching say that it is valid. 1294 ;; let the message we display while searching say that it is valid.
1295 (and isearch-invalid-regexp ellipsis 1295 (and isearch-invalid-regexp ellipsis
1296 (condition-case () 1296 (condition-case ()
1297 (progn (re-search-forward isearch-string (point) t) 1297 (progn (re-search-forward isearch-string (point) t)
1298 (setq isearch-invalid-regexp nil)) 1298 (setq isearch-invalid-regexp nil
1299 isearch-within-brackets nil))
1299 (error nil))) 1300 (error nil)))
1300 ;; If currently failing, display no ellipsis. 1301 ;; If currently failing, display no ellipsis.
1301 (or isearch-success (setq ellipsis nil)) 1302 (or isearch-success (setq ellipsis nil))
1302 (let ((m (concat (if isearch-success "" "failing ") 1303 (let ((m (concat (if isearch-success "" "failing ")
1303 (if isearch-wrapped "wrapped ") 1304 (if isearch-wrapped "wrapped ")