diff options
| author | Mark A. Hershberger | 2010-05-21 01:16:19 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-05-21 01:16:19 +0300 |
| commit | a602033560060cf8b1a7ca2faed46257441047c2 (patch) | |
| tree | 5754a570af7581adbb873a09f99e0df99cf3d2cf | |
| parent | 50de6a38df9b32d34247784e5dc937c175bf1f2b (diff) | |
| download | emacs-a602033560060cf8b1a7ca2faed46257441047c2.tar.gz emacs-a602033560060cf8b1a7ca2faed46257441047c2.zip | |
* isearch.el (isearch-update-post-hook): New hook.
(isearch-update): Use the new hook. (Bug#6225)
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/isearch.el | 6 |
3 files changed, 14 insertions, 1 deletions
| @@ -255,6 +255,10 @@ by the Graphic Control Extension of the image. | |||
| 255 | 255 | ||
| 256 | *** `image-extension-data' is renamed to `image-metadata'. | 256 | *** `image-extension-data' is renamed to `image-metadata'. |
| 257 | 257 | ||
| 258 | ** Isearch | ||
| 259 | |||
| 260 | *** New hook `isearch-update-post-hook' that runs in `isearch-update'. | ||
| 261 | |||
| 258 | ** Progress reporters can now "spin". | 262 | ** Progress reporters can now "spin". |
| 259 | The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can | 263 | The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can |
| 260 | now be nil, or omitted. This makes a "non-numeric" reporter. Each | 264 | now be nil, or omitted. This makes a "non-numeric" reporter. Each |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b0dbec2f6b2..15dc5d2aa9a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-20 Mark A. Hershberger <mah@everybody.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-update-post-hook): New hook. | ||
| 4 | (isearch-update): Use the new hook. (Bug#6225) | ||
| 5 | |||
| 1 | 2010-05-20 Juri Linkov <juri@jurta.org> | 6 | 2010-05-20 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * isearch.el (isearch-mode-map): Bind more keys to isearch-help-map: | 8 | * isearch.el (isearch-mode-map): Bind more keys to isearch-help-map: |
diff --git a/lisp/isearch.el b/lisp/isearch.el index b3d121512c2..c44238ede24 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -156,6 +156,9 @@ command history." | |||
| 156 | (defvar isearch-mode-hook nil | 156 | (defvar isearch-mode-hook nil |
| 157 | "Function(s) to call after starting up an incremental search.") | 157 | "Function(s) to call after starting up an incremental search.") |
| 158 | 158 | ||
| 159 | (defvar isearch-update-post-hook nil | ||
| 160 | "Function(s) to call after isearch has found matches in the buffer.") | ||
| 161 | |||
| 159 | (defvar isearch-mode-end-hook nil | 162 | (defvar isearch-mode-end-hook nil |
| 160 | "Function(s) to call after terminating an incremental search. | 163 | "Function(s) to call after terminating an incremental search. |
| 161 | When these functions are called, `isearch-mode-end-hook-quit' | 164 | When these functions are called, `isearch-mode-end-hook-quit' |
| @@ -870,7 +873,8 @@ It is called by the function `isearch-forward' and other related functions." | |||
| 870 | (isearch-lazy-highlight-new-loop)) | 873 | (isearch-lazy-highlight-new-loop)) |
| 871 | ;; We must prevent the point moving to the end of composition when a | 874 | ;; We must prevent the point moving to the end of composition when a |
| 872 | ;; part of the composition has just been searched. | 875 | ;; part of the composition has just been searched. |
| 873 | (setq disable-point-adjustment t)) | 876 | (setq disable-point-adjustment t) |
| 877 | (run-hooks 'isearch-update-post-hook)) | ||
| 874 | 878 | ||
| 875 | (defun isearch-done (&optional nopush edit) | 879 | (defun isearch-done (&optional nopush edit) |
| 876 | "Exit Isearch mode. | 880 | "Exit Isearch mode. |