diff options
| author | Juri Linkov | 2005-03-18 07:06:45 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-03-18 07:06:45 +0000 |
| commit | 46fe9018aa05eed1fa6b0ea00f3c4b97eb3d48ea (patch) | |
| tree | d7e40a1b0043bd0013c5599b6c706490c8316a85 | |
| parent | 1ab06fdf11c104fff277ba0e109c8dc106a78d29 (diff) | |
| download | emacs-46fe9018aa05eed1fa6b0ea00f3c4b97eb3d48ea.tar.gz emacs-46fe9018aa05eed1fa6b0ea00f3c4b97eb3d48ea.zip | |
(lazy-highlight-cleanup) <command>: Rename from
`isearch-lazy-highlight-cleanup', add alias to old name and
declare obsolete. Add release numbers to other obsolete vars.
(isearch-done, isearch-lazy-highlight-new-loop): Rename
`isearch-lazy-highlight-cleanup' to `lazy-highlight-cleanup'.
(lazy-highlight-cleanup) <variable>: Doc fix.
(isearch-lazy-highlight-update): Rename obsolete
`isearch-lazy-highlight-face' to `lazy-highlight-face'.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/isearch.el | 23 |
2 files changed, 24 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 74c430734f2..59e2478abf2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2005-03-18 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * isearch.el (lazy-highlight-cleanup) <command>: Rename from | ||
| 4 | `isearch-lazy-highlight-cleanup', add alias to old name and | ||
| 5 | declare obsolete. Add release numbers to other obsolete vars. | ||
| 6 | (isearch-done, isearch-lazy-highlight-new-loop): Rename | ||
| 7 | `isearch-lazy-highlight-cleanup' to `lazy-highlight-cleanup'. | ||
| 8 | (lazy-highlight-cleanup) <variable>: Doc fix. | ||
| 9 | (isearch-lazy-highlight-update): Rename obsolete | ||
| 10 | `isearch-lazy-highlight-face' to `lazy-highlight-face'. | ||
| 11 | |||
| 1 | 2005-03-18 handa <handa@m17n.org> | 12 | 2005-03-18 handa <handa@m17n.org> |
| 2 | 13 | ||
| 3 | * language/thai-util.el: Fix categorization of Thai characters in | 14 | * language/thai-util.el: Fix categorization of Thai characters in |
diff --git a/lisp/isearch.el b/lisp/isearch.el index f44b20b3eda..2a952272873 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -238,25 +238,25 @@ and `lazy-highlight-interval')." | |||
| 238 | (defcustom lazy-highlight-cleanup t | 238 | (defcustom lazy-highlight-cleanup t |
| 239 | "*Controls whether to remove extra highlighting after a search. | 239 | "*Controls whether to remove extra highlighting after a search. |
| 240 | If this is nil, extra highlighting can be \"manually\" removed with | 240 | If this is nil, extra highlighting can be \"manually\" removed with |
| 241 | \\[isearch-lazy-highlight-cleanup]." | 241 | \\[lazy-highlight-cleanup]." |
| 242 | :type 'boolean | 242 | :type 'boolean |
| 243 | :group 'lazy-highlight) | 243 | :group 'lazy-highlight) |
| 244 | (defvaralias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup) | 244 | (defvaralias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup) |
| 245 | (make-obsolete-variable 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup) | 245 | (make-obsolete-variable 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup "22.1") |
| 246 | 246 | ||
| 247 | (defcustom lazy-highlight-initial-delay 0.25 | 247 | (defcustom lazy-highlight-initial-delay 0.25 |
| 248 | "*Seconds to wait before beginning to lazily highlight all matches." | 248 | "*Seconds to wait before beginning to lazily highlight all matches." |
| 249 | :type 'number | 249 | :type 'number |
| 250 | :group 'lazy-highlight) | 250 | :group 'lazy-highlight) |
| 251 | (defvaralias 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay) | 251 | (defvaralias 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay) |
| 252 | (make-obsolete-variable 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay) | 252 | (make-obsolete-variable 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay "22.1") |
| 253 | 253 | ||
| 254 | (defcustom lazy-highlight-interval 0 ; 0.0625 | 254 | (defcustom lazy-highlight-interval 0 ; 0.0625 |
| 255 | "*Seconds between lazily highlighting successive matches." | 255 | "*Seconds between lazily highlighting successive matches." |
| 256 | :type 'number | 256 | :type 'number |
| 257 | :group 'lazy-highlight) | 257 | :group 'lazy-highlight) |
| 258 | (defvaralias 'isearch-lazy-highlight-interval 'lazy-highlight-interval) | 258 | (defvaralias 'isearch-lazy-highlight-interval 'lazy-highlight-interval) |
| 259 | (make-obsolete-variable 'isearch-lazy-highlight-interval 'lazy-highlight-interval) | 259 | (make-obsolete-variable 'isearch-lazy-highlight-interval 'lazy-highlight-interval "22.1") |
| 260 | 260 | ||
| 261 | (defcustom lazy-highlight-max-at-a-time 20 | 261 | (defcustom lazy-highlight-max-at-a-time 20 |
| 262 | "*Maximum matches to highlight at a time (for `lazy-highlight'). | 262 | "*Maximum matches to highlight at a time (for `lazy-highlight'). |
| @@ -267,7 +267,7 @@ A value of nil means highlight all matches." | |||
| 267 | (integer :tag "Some")) | 267 | (integer :tag "Some")) |
| 268 | :group 'lazy-highlight) | 268 | :group 'lazy-highlight) |
| 269 | (defvaralias 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time) | 269 | (defvaralias 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time) |
| 270 | (make-obsolete-variable 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time) | 270 | (make-obsolete-variable 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time "22.1") |
| 271 | 271 | ||
| 272 | (defface lazy-highlight | 272 | (defface lazy-highlight |
| 273 | '((((class color) (min-colors 88) (background light)) | 273 | '((((class color) (min-colors 88) (background light)) |
| @@ -284,7 +284,7 @@ A value of nil means highlight all matches." | |||
| 284 | (put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight) | 284 | (put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight) |
| 285 | (defvar lazy-highlight-face 'lazy-highlight) | 285 | (defvar lazy-highlight-face 'lazy-highlight) |
| 286 | (defvaralias 'isearch-lazy-highlight-face 'lazy-highlight-face) | 286 | (defvaralias 'isearch-lazy-highlight-face 'lazy-highlight-face) |
| 287 | (make-obsolete-variable 'isearch-lazy-highlight-face 'lazy-highlight-face) | 287 | (make-obsolete-variable 'isearch-lazy-highlight-face 'lazy-highlight-face "22.1") |
| 288 | 288 | ||
| 289 | ;; Define isearch-mode keymap. | 289 | ;; Define isearch-mode keymap. |
| 290 | 290 | ||
| @@ -768,7 +768,7 @@ is treated as a regexp. See \\[isearch-forward] for more info." | |||
| 768 | ;; (setq pre-command-hook isearch-old-pre-command-hook) ; for lemacs | 768 | ;; (setq pre-command-hook isearch-old-pre-command-hook) ; for lemacs |
| 769 | (setq minibuffer-message-timeout isearch-original-minibuffer-message-timeout) | 769 | (setq minibuffer-message-timeout isearch-original-minibuffer-message-timeout) |
| 770 | (isearch-dehighlight) | 770 | (isearch-dehighlight) |
| 771 | (isearch-lazy-highlight-cleanup lazy-highlight-cleanup) | 771 | (lazy-highlight-cleanup lazy-highlight-cleanup) |
| 772 | (let ((found-start (window-start (selected-window))) | 772 | (let ((found-start (window-start (selected-window))) |
| 773 | (found-point (point))) | 773 | (found-point (point))) |
| 774 | (if isearch-window-configuration | 774 | (if isearch-window-configuration |
| @@ -2329,7 +2329,7 @@ since they have special meaning in a regexp." | |||
| 2329 | (defvar isearch-lazy-highlight-case-fold-search nil) | 2329 | (defvar isearch-lazy-highlight-case-fold-search nil) |
| 2330 | (defvar isearch-lazy-highlight-regexp nil) | 2330 | (defvar isearch-lazy-highlight-regexp nil) |
| 2331 | 2331 | ||
| 2332 | (defun isearch-lazy-highlight-cleanup (&optional force) | 2332 | (defun lazy-highlight-cleanup (&optional force) |
| 2333 | "Stop lazy highlighting and remove extra highlighting from current buffer. | 2333 | "Stop lazy highlighting and remove extra highlighting from current buffer. |
| 2334 | FORCE non-nil means do it whether or not `lazy-highlight-cleanup' | 2334 | FORCE non-nil means do it whether or not `lazy-highlight-cleanup' |
| 2335 | is nil. This function is called when exiting an incremental search if | 2335 | is nil. This function is called when exiting an incremental search if |
| @@ -2344,6 +2344,9 @@ is nil. This function is called when exiting an incremental search if | |||
| 2344 | (cancel-timer isearch-lazy-highlight-timer) | 2344 | (cancel-timer isearch-lazy-highlight-timer) |
| 2345 | (setq isearch-lazy-highlight-timer nil))) | 2345 | (setq isearch-lazy-highlight-timer nil))) |
| 2346 | 2346 | ||
| 2347 | (defalias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup) | ||
| 2348 | (make-obsolete 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup "22.1") | ||
| 2349 | |||
| 2347 | (defun isearch-lazy-highlight-new-loop (beg end) | 2350 | (defun isearch-lazy-highlight-new-loop (beg end) |
| 2348 | "Cleanup any previous `lazy-highlight' loop and begin a new one. | 2351 | "Cleanup any previous `lazy-highlight' loop and begin a new one. |
| 2349 | BEG and END specify the bounds within which highlighting should occur. | 2352 | BEG and END specify the bounds within which highlighting should occur. |
| @@ -2365,7 +2368,7 @@ by other Emacs features." | |||
| 2365 | (not (= (window-end) ; Window may have been split/joined. | 2368 | (not (= (window-end) ; Window may have been split/joined. |
| 2366 | isearch-lazy-highlight-window-end)))) | 2369 | isearch-lazy-highlight-window-end)))) |
| 2367 | ;; something important did indeed change | 2370 | ;; something important did indeed change |
| 2368 | (isearch-lazy-highlight-cleanup t) ;kill old loop & remove overlays | 2371 | (lazy-highlight-cleanup t) ;kill old loop & remove overlays |
| 2369 | (when (not isearch-error) | 2372 | (when (not isearch-error) |
| 2370 | (setq isearch-lazy-highlight-start-limit beg | 2373 | (setq isearch-lazy-highlight-start-limit beg |
| 2371 | isearch-lazy-highlight-end-limit end) | 2374 | isearch-lazy-highlight-end-limit end) |
| @@ -2443,7 +2446,7 @@ Attempt to do the search exactly the way the pending isearch would." | |||
| 2443 | ;; non-zero-length match | 2446 | ;; non-zero-length match |
| 2444 | (let ((ov (make-overlay mb me))) | 2447 | (let ((ov (make-overlay mb me))) |
| 2445 | (push ov isearch-lazy-highlight-overlays) | 2448 | (push ov isearch-lazy-highlight-overlays) |
| 2446 | (overlay-put ov 'face isearch-lazy-highlight-face) | 2449 | (overlay-put ov 'face lazy-highlight-face) |
| 2447 | (overlay-put ov 'priority 0) ;lower than main overlay | 2450 | (overlay-put ov 'priority 0) ;lower than main overlay |
| 2448 | (overlay-put ov 'window (selected-window)))) | 2451 | (overlay-put ov 'window (selected-window)))) |
| 2449 | (if isearch-forward | 2452 | (if isearch-forward |