aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-03 22:35:40 +0000
committerRichard M. Stallman1997-05-03 22:35:40 +0000
commit9c1db9293cae2b1b0a3b6a5f0e55e75a9bf1bcdf (patch)
tree95a1bf772aeae267c99535c8ee0e40460650dea6
parent3b558d418cec800616a040cb0f822c6901d948dd (diff)
downloademacs-9c1db9293cae2b1b0a3b6a5f0e55e75a9bf1bcdf.tar.gz
emacs-9c1db9293cae2b1b0a3b6a5f0e55e75a9bf1bcdf.zip
Use defgroup and defcustom.
-rw-r--r--lisp/isearch.el71
1 files changed, 50 insertions, 21 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index f2536570e98..538cb6a3ed1 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1,6 +1,6 @@
1;;; isearch.el --- incremental search minor mode. 1;;; isearch.el --- incremental search minor mode.
2 2
3;; Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
4 4
5;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> 5;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -105,38 +105,61 @@
105 105
106;;; Some additional options and constants. 106;;; Some additional options and constants.
107 107
108(defvar search-exit-option t 108(defgroup isearch nil
109 "*Non-nil means random control characters terminate incremental search.") 109 "Incremental search minor mode."
110 :prefix "isearch-"
111 :prefix "search-"
112 :group 'matching)
110 113
111(defvar search-slow-window-lines 1 114
115(defcustom search-exit-option t
116 "*Non-nil means random control characters terminate incremental search."
117 :type 'boolean
118 :group 'isearch)
119
120(defcustom search-slow-window-lines 1
112 "*Number of lines in slow search display windows. 121 "*Number of lines in slow search display windows.
113These are the short windows used during incremental search on slow terminals. 122These are the short windows used during incremental search on slow terminals.
114Negative means put the slow search window at the top (normally it's at bottom) 123Negative means put the slow search window at the top (normally it's at bottom)
115and the value is minus the number of lines.") 124and the value is minus the number of lines."
125 :type 'integer
126 :group 'isearch)
116 127
117(defvar search-slow-speed 1200 128(defcustom search-slow-speed 1200
118 "*Highest terminal speed at which to use \"slow\" style incremental search. 129 "*Highest terminal speed at which to use \"slow\" style incremental search.
119This is the style where a one-line window is created to show the line 130This is the style where a one-line window is created to show the line
120that the search has reached.") 131that the search has reached."
132 :type 'integer
133 :group 'isearch)
121 134
122(defvar search-upper-case 'not-yanks 135(defcustom search-upper-case 'not-yanks
123 "*If non-nil, upper case chars disable case fold searching. 136 "*If non-nil, upper case chars disable case fold searching.
124That is, upper and lower case chars must match exactly. 137That is, upper and lower case chars must match exactly.
125This applies no matter where the chars come from, but does not 138This applies no matter where the chars come from, but does not
126apply to chars in regexps that are prefixed with `\\'. 139apply to chars in regexps that are prefixed with `\\'.
127If this value is `not-yanks', yanked text is always downcased.") 140If this value is `not-yanks', yanked text is always downcased."
141 :type '(choice (const :tag "off" nil)
142 (const not-yanks)
143 (sexp :tag "on" :format "%t\n" t))
144 :group 'isearch)
128 145
129(defvar search-nonincremental-instead t 146(defcustom search-nonincremental-instead t
130 "*If non-nil, do a nonincremental search instead if exiting immediately. 147 "*If non-nil, do a nonincremental search instead if exiting immediately.
131Actually, `isearch-edit-string' is called to let you enter the search 148Actually, `isearch-edit-string' is called to let you enter the search
132string, and RET terminates editing and does a nonincremental search.") 149string, and RET terminates editing and does a nonincremental search."
150 :type 'boolean
151 :group 'isearch)
133 152
134(defvar search-whitespace-regexp "\\s-+" 153(defcustom search-whitespace-regexp "\\s-+"
135 "*If non-nil, regular expression to match a sequence of whitespace chars. 154 "*If non-nil, regular expression to match a sequence of whitespace chars.
136You might want to use something like \"[ \\t\\r\\n]+\" instead.") 155You might want to use something like \"[ \\t\\r\\n]+\" instead."
156 :type 'regexp
157 :group 'isearch)
137 158
138(defvar search-highlight nil 159(defcustom search-highlight nil
139 "*Non-nil means incremental search highlights the current match.") 160 "*Non-nil means incremental search highlights the current match."
161 :type 'boolean
162 :group 'isearch)
140 163
141(defvar search-invisible nil 164(defvar search-invisible nil
142 "*Non-nil means incremental search can match text hidden by an overlay. 165 "*Non-nil means incremental search can match text hidden by an overlay.
@@ -155,10 +178,14 @@ You might want to use something like \"[ \\t\\r\\n]+\" instead.")
155(defvar regexp-search-ring nil 178(defvar regexp-search-ring nil
156 "List of regular expression search string sequences.") 179 "List of regular expression search string sequences.")
157 180
158(defvar search-ring-max 16 181(defcustom search-ring-max 16
159 "*Maximum length of search ring before oldest elements are thrown away.") 182 "*Maximum length of search ring before oldest elements are thrown away."
160(defvar regexp-search-ring-max 16 183 :type 'integer
161 "*Maximum length of regexp search ring before oldest elements are thrown away.") 184 :group 'isearch)
185(defcustom regexp-search-ring-max 16
186 "*Maximum length of regexp search ring before oldest elements are thrown away."
187 :type 'integer
188 :group 'isearch)
162 189
163(defvar search-ring-yank-pointer nil 190(defvar search-ring-yank-pointer nil
164 "Index in `search-ring' of last string reused. 191 "Index in `search-ring' of last string reused.
@@ -167,9 +194,11 @@ nil if none yet.")
167 "Index in `regexp-search-ring' of last string reused. 194 "Index in `regexp-search-ring' of last string reused.
168nil if none yet.") 195nil if none yet.")
169 196
170(defvar search-ring-update nil 197(defcustom search-ring-update nil
171 "*Non-nil if advancing or retreating in the search ring should cause search. 198 "*Non-nil if advancing or retreating in the search ring should cause search.
172Default value, nil, means edit the string instead.") 199Default value, nil, means edit the string instead."
200 :type 'boolean
201 :group 'isearch)
173 202
174;;; Define isearch-mode keymap. 203;;; Define isearch-mode keymap.
175 204