comparison lisp/isearch.el @ 110533:b799d38f522a

Merge changes from emacs-23 branch
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 23 Sep 2010 15:00:31 -0400
parents 1b38d71f516b 7060c3b16693
children 515d80e174ba
comparison
equal deleted inserted replaced
110506:2cac83f5f8bc 110533:b799d38f522a
273 :prefix "lazy-highlight-" 273 :prefix "lazy-highlight-"
274 :version "21.1" 274 :version "21.1"
275 :group 'isearch 275 :group 'isearch
276 :group 'matching) 276 :group 'matching)
277 277
278 (define-obsolete-variable-alias 'isearch-lazy-highlight-cleanup
279 'lazy-highlight-cleanup
280 "22.1")
281
278 (defcustom lazy-highlight-cleanup t 282 (defcustom lazy-highlight-cleanup t
279 "Controls whether to remove extra highlighting after a search. 283 "Controls whether to remove extra highlighting after a search.
280 If this is nil, extra highlighting can be \"manually\" removed with 284 If this is nil, extra highlighting can be \"manually\" removed with
281 \\[lazy-highlight-cleanup]." 285 \\[lazy-highlight-cleanup]."
282 :type 'boolean 286 :type 'boolean
283 :group 'lazy-highlight) 287 :group 'lazy-highlight)
284 (define-obsolete-variable-alias 'isearch-lazy-highlight-cleanup 288
285 'lazy-highlight-cleanup 289 (define-obsolete-variable-alias 'isearch-lazy-highlight-initial-delay
290 'lazy-highlight-initial-delay
286 "22.1") 291 "22.1")
287 292
288 (defcustom lazy-highlight-initial-delay 0.25 293 (defcustom lazy-highlight-initial-delay 0.25
289 "Seconds to wait before beginning to lazily highlight all matches." 294 "Seconds to wait before beginning to lazily highlight all matches."
290 :type 'number 295 :type 'number
291 :group 'lazy-highlight) 296 :group 'lazy-highlight)
292 (define-obsolete-variable-alias 'isearch-lazy-highlight-initial-delay 297
293 'lazy-highlight-initial-delay 298 (define-obsolete-variable-alias 'isearch-lazy-highlight-interval
299 'lazy-highlight-interval
294 "22.1") 300 "22.1")
295 301
296 (defcustom lazy-highlight-interval 0 ; 0.0625 302 (defcustom lazy-highlight-interval 0 ; 0.0625
297 "Seconds between lazily highlighting successive matches." 303 "Seconds between lazily highlighting successive matches."
298 :type 'number 304 :type 'number
299 :group 'lazy-highlight) 305 :group 'lazy-highlight)
300 (define-obsolete-variable-alias 'isearch-lazy-highlight-interval 306
301 'lazy-highlight-interval 307 (define-obsolete-variable-alias 'isearch-lazy-highlight-max-at-a-time
308 'lazy-highlight-max-at-a-time
302 "22.1") 309 "22.1")
303 310
304 (defcustom lazy-highlight-max-at-a-time 20 311 (defcustom lazy-highlight-max-at-a-time 20
305 "Maximum matches to highlight at a time (for `lazy-highlight'). 312 "Maximum matches to highlight at a time (for `lazy-highlight').
306 Larger values may reduce Isearch's responsiveness to user input; 313 Larger values may reduce Isearch's responsiveness to user input;
307 smaller values make matches highlight slowly. 314 smaller values make matches highlight slowly.
308 A value of nil means highlight all matches." 315 A value of nil means highlight all matches."
309 :type '(choice (const :tag "All" nil) 316 :type '(choice (const :tag "All" nil)
310 (integer :tag "Some")) 317 (integer :tag "Some"))
311 :group 'lazy-highlight) 318 :group 'lazy-highlight)
312 (define-obsolete-variable-alias 'isearch-lazy-highlight-max-at-a-time
313 'lazy-highlight-max-at-a-time
314 "22.1")
315 319
316 (defface lazy-highlight 320 (defface lazy-highlight
317 '((((class color) (min-colors 88) (background light)) 321 '((((class color) (min-colors 88) (background light))
318 (:background "paleturquoise")) 322 (:background "paleturquoise"))
319 (((class color) (min-colors 88) (background dark)) 323 (((class color) (min-colors 88) (background dark))
325 (t (:underline t))) 329 (t (:underline t)))
326 "Face for lazy highlighting of matches other than the current one." 330 "Face for lazy highlighting of matches other than the current one."
327 :group 'lazy-highlight 331 :group 'lazy-highlight
328 :group 'basic-faces) 332 :group 'basic-faces)
329 (define-obsolete-face-alias 'isearch-lazy-highlight-face 'lazy-highlight "22.1") 333 (define-obsolete-face-alias 'isearch-lazy-highlight-face 'lazy-highlight "22.1")
330 (defvar lazy-highlight-face 'lazy-highlight)
331 (define-obsolete-variable-alias 'isearch-lazy-highlight-face 334 (define-obsolete-variable-alias 'isearch-lazy-highlight-face
332 'lazy-highlight-face 335 'lazy-highlight-face
333 "22.1") 336 "22.1")
337 (defvar lazy-highlight-face 'lazy-highlight)
334 338
335 ;; Define isearch help map. 339 ;; Define isearch help map.
336 340
337 (defvar isearch-help-map 341 (defvar isearch-help-map
338 (let ((map (make-sparse-keymap))) 342 (let ((map (make-sparse-keymap)))