comparison lisp/isearch.el @ 792:45d748a65f24

*** empty log message ***
author Eric S. Raymond <esr@snark.thyrsus.com>
date Thu, 16 Jul 1992 06:28:10 +0000
parents 75e4ec1e938f
children 20674ae6bf52
comparison
equal deleted inserted replaced
791:203c23c9f22c 792:45d748a65f24
1 ;; Incremental search minor mode. 1 ;; isearch-mode.el --- incremental search minor mode.
2
3 ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu>
4 ;; Version: 1.2
5 ;; Last-Modified: 27 May 1992
6
2 ;; Copyright (C) 1992 Free Software Foundation, Inc. 7 ;; Copyright (C) 1992 Free Software Foundation, Inc.
3
4 ;; LCD Archive Entry:
5 ;; isearch-mode|Daniel LaLiberte|liberte@cs.uiuc.edu
6 ;; |A minor mode replacement for isearch.el.
7 ;; |$Date: 92/05/27 11:33:57 $|$Revision: 1.2 $|~/modes/isearch-mode.el
8 8
9 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
10 10
11 ;; GNU Emacs is distributed in the hope that it will be useful, 11 ;; GNU Emacs is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY. No author or distributor 12 ;; but WITHOUT ANY WARRANTY. No author or distributor
21 ;; supposed to have been given to you along with GNU Emacs so you 21 ;; supposed to have been given to you along with GNU Emacs so you
22 ;; can know your rights and responsibilities. It should be in a 22 ;; can know your rights and responsibilities. It should be in a
23 ;; file named COPYING. Among other things, the copyright notice 23 ;; file named COPYING. Among other things, the copyright notice
24 ;; and this notice must be preserved on all copies. 24 ;; and this notice must be preserved on all copies.
25 25
26 ;;; Commentary:
27
26 ;;;==================================================================== 28 ;;;====================================================================
27 ;;; Change History 29 ;; Instructions
30
31 ;; Searching with isearch-mode.el should work just like isearch.el,
32 ;; except it is done in a temporary minor mode that terminates when
33 ;; you finish searching.
34
35 ;; To use isearch-mode instead of the standard isearch.el, add the
36 ;; following to your .emacs file. The standard key bindings to
37 ;; isearch-forward, etc, will then use isearch-mode instead of
38 ;; isearch.
39
40 ;; (fset 'isearch 'isearch-mode)
41 ;; (autoload 'isearch-mode "isearch-mode")
42
43 ;; The key bindings active within isearch-mode are defined below in
44 ;; `isearch-mode-map' and `isearch-mode-meta-map' which are given
45 ;; bindings close to the default characters of isearch.el for
46 ;; version 19. With `isearch-mode', however, you can bind
47 ;; multi-character keys and it should be easier to add new commands.
48
49 ;; Note to epoch and emacs version 19 users: isearch-mode should
50 ;; work even if you switch windows with the mouse. However, if
51 ;; you isearch in a buffer that is also displayed in another window,
52 ;; when you switch to that other window you will still be in
53 ;; isearch mode but not necessarily in the right state for it to work.
54 ;; So ... don't do it unless you are in an experimental mood.
55 ;; You can also experiment with the window-local-variable routines
56 ;; contained in this package but not yet used.
57 ;; Also, I am not sure what happens when you return to an isearching
58 ;; buffer; ideally, the echo area should redisplay the searching status.
59 ;; A select-window-hook might be useful.
60
61 ;;; Change Log:
62
63 ;;;====================================================================
28 64
29 ;;; $Header: /import/kaplan/kaplan/liberte/Isearch/RCS/isearch-mode.el,v 1.2 92/05/27 11:33:57 liberte Exp Locker: liberte $ 65 ;;; $Header: /import/kaplan/kaplan/liberte/Isearch/RCS/isearch-mode.el,v 1.2 92/05/27 11:33:57 liberte Exp Locker: liberte $
30 ;;; $Log: isearch-mode.el,v $ 66 ;;; $Log: isearch-mode.el,v $
31 ;;; Revision 1.2 92/05/27 11:33:57 liberte 67 ;;; Revision 1.2 92/05/27 11:33:57 liberte
32 ;;; Several new commands and features have been added. Emacs version 68 ;;; Several new commands and features have been added. Emacs version
45 81
46 ;;; Changes for 1.1 82 ;;; Changes for 1.1
47 ;;; 3/18/92 Fixed invalid-regexp. 83 ;;; 3/18/92 Fixed invalid-regexp.
48 ;;; 3/18/92 Fixed yanking in regexps. 84 ;;; 3/18/92 Fixed yanking in regexps.
49 85
50 ;;;==================================================================== 86 ;;; Code:
51 ;; Instructions
52
53 ;; Searching with isearch-mode.el should work just like isearch.el,
54 ;; except it is done in a temporary minor mode that terminates when
55 ;; you finish searching.
56
57 ;; To use isearch-mode instead of the standard isearch.el, add the
58 ;; following to your .emacs file. The standard key bindings to
59 ;; isearch-forward, etc, will then use isearch-mode instead of
60 ;; isearch.
61
62 ;; (fset 'isearch 'isearch-mode)
63 ;; (autoload 'isearch-mode "isearch-mode")
64
65 ;; The key bindings active within isearch-mode are defined below in
66 ;; `isearch-mode-map' and `isearch-mode-meta-map' which are given
67 ;; bindings close to the default characters of isearch.el for
68 ;; version 19. With `isearch-mode', however, you can bind
69 ;; multi-character keys and it should be easier to add new commands.
70
71 ;; Note to epoch and emacs version 19 users: isearch-mode should
72 ;; work even if you switch windows with the mouse. However, if
73 ;; you isearch in a buffer that is also displayed in another window,
74 ;; when you switch to that other window you will still be in
75 ;; isearch mode but not necessarily in the right state for it to work.
76 ;; So ... don't do it unless you are in an experimental mood.
77 ;; You can also experiment with the window-local-variable routines
78 ;; contained in this package but not yet used.
79 ;; Also, I am not sure what happens when you return to an isearching
80 ;; buffer; ideally, the echo area should redisplay the searching status.
81 ;; A select-window-hook might be useful.
82 87
83 ;;;========================================================================= 88 ;;;=========================================================================
84 ;;; The following, defined in loaddefs.el, are still used with isearch-mode. 89 ;;; The following, defined in loaddefs.el, are still used with isearch-mode.
85 90
86 ;(defvar search-last-string "" 91 ;(defvar search-last-string ""