diff options
| author | Juri Linkov | 2008-11-11 20:11:34 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-11-11 20:11:34 +0000 |
| commit | ee9b85a84ab3238e9c86c65c6cbef759bc2d942d (patch) | |
| tree | b1dab1c1662ab160bc279d28a099669810499653 | |
| parent | 83659220290b6078d97844a1fd4bd2e874265502 (diff) | |
| download | emacs-ee9b85a84ab3238e9c86c65c6cbef759bc2d942d.tar.gz emacs-ee9b85a84ab3238e9c86c65c6cbef759bc2d942d.zip | |
(isearch-message-prefix-add)
(isearch-message-suffix-add): New variables.
(isearch-message-prefix): Show additional text from
`isearch-message-prefix-add' before "I-search".
(isearch-message-suffix): Show additional text from
`isearch-message-suffix-add' at the end.
| -rw-r--r-- | lisp/isearch.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index cf51d44a0f8..c3434727677 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -533,6 +533,9 @@ Each set is a vector of the form: | |||
| 533 | (defvar isearch-string "") ; The current search string. | 533 | (defvar isearch-string "") ; The current search string. |
| 534 | (defvar isearch-message "") ; text-char-description version of isearch-string | 534 | (defvar isearch-message "") ; text-char-description version of isearch-string |
| 535 | 535 | ||
| 536 | (defvar isearch-message-prefix-add nil) ; Additonal text for the message prefix | ||
| 537 | (defvar isearch-message-suffix-add nil) ; Additonal text for the message suffix | ||
| 538 | |||
| 536 | (defvar isearch-success t) ; Searching is currently successful. | 539 | (defvar isearch-success t) ; Searching is currently successful. |
| 537 | (defvar isearch-error nil) ; Error message for failed search. | 540 | (defvar isearch-error nil) ; Error message for failed search. |
| 538 | (defvar isearch-other-end nil) ; Start (end) of match if forward (backward). | 541 | (defvar isearch-other-end nil) ; Start (end) of match if forward (backward). |
| @@ -2163,6 +2166,7 @@ If there is no completion possible, say so and continue searching." | |||
| 2163 | (if isearch-word "word " "") | 2166 | (if isearch-word "word " "") |
| 2164 | (if isearch-regexp "regexp " "") | 2167 | (if isearch-regexp "regexp " "") |
| 2165 | (if multi-isearch-next-buffer-current-function "multi " "") | 2168 | (if multi-isearch-next-buffer-current-function "multi " "") |
| 2169 | (or isearch-message-prefix-add "") | ||
| 2166 | (if nonincremental "search" "I-search") | 2170 | (if nonincremental "search" "I-search") |
| 2167 | (if isearch-forward "" " backward") | 2171 | (if isearch-forward "" " backward") |
| 2168 | (if current-input-method | 2172 | (if current-input-method |
| @@ -2176,7 +2180,8 @@ If there is no completion possible, say so and continue searching." | |||
| 2176 | (concat (if c-q-hack "^Q" "") | 2180 | (concat (if c-q-hack "^Q" "") |
| 2177 | (if isearch-error | 2181 | (if isearch-error |
| 2178 | (concat " [" isearch-error "]") | 2182 | (concat " [" isearch-error "]") |
| 2179 | ""))) | 2183 | "") |
| 2184 | (or isearch-message-suffix-add ""))) | ||
| 2180 | 2185 | ||
| 2181 | 2186 | ||
| 2182 | ;; Searching | 2187 | ;; Searching |