diff options
| author | Juanma Barranquero | 2008-11-21 10:12:57 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-11-21 10:12:57 +0000 |
| commit | 4b65254d80f365d56f09efcdd7e601863b65bd56 (patch) | |
| tree | a1997cf25024a2ab6c7cc300a46362ae49bee6bd | |
| parent | af1a5cd5ae1c0e15d84b4b92f3c2fc46d445d9d3 (diff) | |
| download | emacs-4b65254d80f365d56f09efcdd7e601863b65bd56.tar.gz emacs-4b65254d80f365d56f09efcdd7e601863b65bd56.zip | |
* isearch.el (isearch-search-string): Doc fix.
(search-exit-option, search-slow-window-lines, search-slow-speed)
(search-upper-case, search-nonincremental-instead)
(search-whitespace-regexp, search-ring-max, regexp-search-ring-max)
(search-ring-update, search-highlight, isearch-lazy-highlight)
(lazy-highlight-cleanup, lazy-highlight-initial-delay)
(lazy-highlight-interval): Remove * from defcustom docstrings.
(isearch-resume-in-command-history, lazy-highlight-max-at-a-time):
Remove * from defcustom docstrings; fix typos.
(isearch-push-state-function, isearch-help-for-help-internal)
(isearch-help-for-help, isearch-describe-bindings)
(isearch-describe-mode, minibuffer-local-isearch-map, isearch-mode)
(isearch-pop-fun-state, isearch-search-fun-function)
(isearch-lazy-highlight-search): Fix typos in docstrings.
(isearch-yank-internal, isearch-fallback): Reflow docstrings.
(isearch-forward): Fix typo and reflow docstring.
(isearch-help-map): Remove unused `i' binding. Fix typos in docstring.
(isearch-mode-map): Don't use `let*'.
| -rw-r--r-- | lisp/ChangeLog | 24 | ||||
| -rw-r--r-- | lisp/isearch.el | 110 |
2 files changed, 77 insertions, 57 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 21cab5fe241..5c053175ee0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,27 @@ | |||
| 1 | 2008-11-21 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * isearch.el (isearch-search-string): Doc fix. | ||
| 4 | (search-exit-option, search-slow-window-lines, search-slow-speed) | ||
| 5 | (search-upper-case, search-nonincremental-instead) | ||
| 6 | (search-whitespace-regexp, search-ring-max, regexp-search-ring-max) | ||
| 7 | (search-ring-update, search-highlight, isearch-lazy-highlight) | ||
| 8 | (lazy-highlight-cleanup, lazy-highlight-initial-delay) | ||
| 9 | (lazy-highlight-interval): Remove * from defcustom docstrings. | ||
| 10 | (isearch-resume-in-command-history, lazy-highlight-max-at-a-time): | ||
| 11 | Remove * from defcustom docstrings; fix typos. | ||
| 12 | (isearch-push-state-function, isearch-help-for-help-internal) | ||
| 13 | (isearch-help-for-help, isearch-describe-bindings) | ||
| 14 | (isearch-describe-mode, minibuffer-local-isearch-map, isearch-mode) | ||
| 15 | (isearch-pop-fun-state, isearch-search-fun-function) | ||
| 16 | (isearch-lazy-highlight-search): Fix typos in docstrings. | ||
| 17 | (isearch-yank-internal, isearch-fallback): Reflow docstrings. | ||
| 18 | (isearch-forward): Fix typo and reflow docstring. | ||
| 19 | (isearch-help-map): Remove unused `i' binding. Fix typos in docstring. | ||
| 20 | (isearch-mode-map): Don't use `let*'. | ||
| 21 | |||
| 1 | 2008-11-21 Chong Yidong <cyd@stupidchicken.com> | 22 | 2008-11-21 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 23 | ||
| 3 | * files.el (confirm-nonexistent-file-or-buffer): Change default to | 24 | * files.el (confirm-nonexistent-file-or-buffer): Change default to nil. |
| 4 | nil. | ||
| 5 | 25 | ||
| 6 | 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca> | 26 | 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 27 | ||
diff --git a/lisp/isearch.el b/lisp/isearch.el index 0a86834ff12..a8c76ec9620 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -70,12 +70,12 @@ | |||
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | (defcustom search-exit-option t | 72 | (defcustom search-exit-option t |
| 73 | "*Non-nil means random control characters terminate incremental search." | 73 | "Non-nil means random control characters terminate incremental search." |
| 74 | :type 'boolean | 74 | :type 'boolean |
| 75 | :group 'isearch) | 75 | :group 'isearch) |
| 76 | 76 | ||
| 77 | (defcustom search-slow-window-lines 1 | 77 | (defcustom search-slow-window-lines 1 |
| 78 | "*Number of lines in slow search display windows. | 78 | "Number of lines in slow search display windows. |
| 79 | These are the short windows used during incremental search on slow terminals. | 79 | These are the short windows used during incremental search on slow terminals. |
| 80 | Negative means put the slow search window at the top (normally it's at bottom) | 80 | Negative means put the slow search window at the top (normally it's at bottom) |
| 81 | and the value is minus the number of lines." | 81 | and the value is minus the number of lines." |
| @@ -83,14 +83,14 @@ and the value is minus the number of lines." | |||
| 83 | :group 'isearch) | 83 | :group 'isearch) |
| 84 | 84 | ||
| 85 | (defcustom search-slow-speed 1200 | 85 | (defcustom search-slow-speed 1200 |
| 86 | "*Highest terminal speed at which to use \"slow\" style incremental search. | 86 | "Highest terminal speed at which to use \"slow\" style incremental search. |
| 87 | This is the style where a one-line window is created to show the line | 87 | This is the style where a one-line window is created to show the line |
| 88 | that the search has reached." | 88 | that the search has reached." |
| 89 | :type 'integer | 89 | :type 'integer |
| 90 | :group 'isearch) | 90 | :group 'isearch) |
| 91 | 91 | ||
| 92 | (defcustom search-upper-case 'not-yanks | 92 | (defcustom search-upper-case 'not-yanks |
| 93 | "*If non-nil, upper case chars disable case fold searching. | 93 | "If non-nil, upper case chars disable case fold searching. |
| 94 | That is, upper and lower case chars must match exactly. | 94 | That is, upper and lower case chars must match exactly. |
| 95 | This applies no matter where the chars come from, but does not | 95 | This applies no matter where the chars come from, but does not |
| 96 | apply to chars in regexps that are prefixed with `\\'. | 96 | apply to chars in regexps that are prefixed with `\\'. |
| @@ -102,14 +102,14 @@ in Isearch mode is always downcased." | |||
| 102 | :group 'isearch) | 102 | :group 'isearch) |
| 103 | 103 | ||
| 104 | (defcustom search-nonincremental-instead t | 104 | (defcustom search-nonincremental-instead t |
| 105 | "*If non-nil, do a nonincremental search instead if exiting immediately. | 105 | "If non-nil, do a nonincremental search instead if exiting immediately. |
| 106 | Actually, `isearch-edit-string' is called to let you enter the search | 106 | Actually, `isearch-edit-string' is called to let you enter the search |
| 107 | string, and RET terminates editing and does a nonincremental search." | 107 | string, and RET terminates editing and does a nonincremental search." |
| 108 | :type 'boolean | 108 | :type 'boolean |
| 109 | :group 'isearch) | 109 | :group 'isearch) |
| 110 | 110 | ||
| 111 | (defcustom search-whitespace-regexp "\\s-+" | 111 | (defcustom search-whitespace-regexp "\\s-+" |
| 112 | "*If non-nil, regular expression to match a sequence of whitespace chars. | 112 | "If non-nil, regular expression to match a sequence of whitespace chars. |
| 113 | This applies to regular expression incremental search. | 113 | This applies to regular expression incremental search. |
| 114 | When you put a space or spaces in the incremental regexp, it stands for | 114 | When you put a space or spaces in the incremental regexp, it stands for |
| 115 | this, unless it is inside of a regexp construct such as [...] or *, + or ?. | 115 | this, unless it is inside of a regexp construct such as [...] or *, + or ?. |
| @@ -146,8 +146,8 @@ Ordinarily the text becomes invisible again at the end of the search." | |||
| 146 | :group 'isearch) | 146 | :group 'isearch) |
| 147 | 147 | ||
| 148 | (defcustom isearch-resume-in-command-history nil | 148 | (defcustom isearch-resume-in-command-history nil |
| 149 | "*If non-nil, `isearch-resume' commands are added to the command history. | 149 | "If non-nil, `isearch-resume' commands are added to the command history. |
| 150 | This allows you to resume earlier isearch sessions through the | 150 | This allows you to resume earlier Isearch sessions through the |
| 151 | command history." | 151 | command history." |
| 152 | :type 'boolean | 152 | :type 'boolean |
| 153 | :group 'isearch) | 153 | :group 'isearch) |
| @@ -173,7 +173,7 @@ If nil, move point to the beginning of the buffer for a forward search, | |||
| 173 | or to the end of the buffer for a backward search.") | 173 | or to the end of the buffer for a backward search.") |
| 174 | 174 | ||
| 175 | (defvar isearch-push-state-function nil | 175 | (defvar isearch-push-state-function nil |
| 176 | "Function to save a function restoring the mode-specific isearch state | 176 | "Function to save a function restoring the mode-specific Isearch state |
| 177 | to the search status stack.") | 177 | to the search status stack.") |
| 178 | 178 | ||
| 179 | (defvar isearch-filter-predicate 'isearch-filter-invisible | 179 | (defvar isearch-filter-predicate 'isearch-filter-invisible |
| @@ -191,11 +191,11 @@ stopping at this match.") | |||
| 191 | "List of regular expression search string sequences.") | 191 | "List of regular expression search string sequences.") |
| 192 | 192 | ||
| 193 | (defcustom search-ring-max 16 | 193 | (defcustom search-ring-max 16 |
| 194 | "*Maximum length of search ring before oldest elements are thrown away." | 194 | "Maximum length of search ring before oldest elements are thrown away." |
| 195 | :type 'integer | 195 | :type 'integer |
| 196 | :group 'isearch) | 196 | :group 'isearch) |
| 197 | (defcustom regexp-search-ring-max 16 | 197 | (defcustom regexp-search-ring-max 16 |
| 198 | "*Maximum length of regexp search ring before oldest elements are thrown away." | 198 | "Maximum length of regexp search ring before oldest elements are thrown away." |
| 199 | :type 'integer | 199 | :type 'integer |
| 200 | :group 'isearch) | 200 | :group 'isearch) |
| 201 | 201 | ||
| @@ -207,7 +207,7 @@ It is nil if none yet.") | |||
| 207 | It is nil if none yet.") | 207 | It is nil if none yet.") |
| 208 | 208 | ||
| 209 | (defcustom search-ring-update nil | 209 | (defcustom search-ring-update nil |
| 210 | "*Non-nil if advancing or retreating in the search ring should cause search. | 210 | "Non-nil if advancing or retreating in the search ring should cause search. |
| 211 | Default value, nil, means edit the string instead." | 211 | Default value, nil, means edit the string instead." |
| 212 | :type 'boolean | 212 | :type 'boolean |
| 213 | :group 'isearch) | 213 | :group 'isearch) |
| @@ -215,7 +215,7 @@ Default value, nil, means edit the string instead." | |||
| 215 | ;;; isearch highlight customization. | 215 | ;;; isearch highlight customization. |
| 216 | 216 | ||
| 217 | (defcustom search-highlight t | 217 | (defcustom search-highlight t |
| 218 | "*Non-nil means incremental search highlights the current match." | 218 | "Non-nil means incremental search highlights the current match." |
| 219 | :type 'boolean | 219 | :type 'boolean |
| 220 | :group 'isearch) | 220 | :group 'isearch) |
| 221 | 221 | ||
| @@ -253,7 +253,7 @@ Default value, nil, means edit the string instead." | |||
| 253 | :group 'isearch) | 253 | :group 'isearch) |
| 254 | 254 | ||
| 255 | (defcustom isearch-lazy-highlight t | 255 | (defcustom isearch-lazy-highlight t |
| 256 | "*Controls the lazy-highlighting during incremental search. | 256 | "Controls the lazy-highlighting during incremental search. |
| 257 | When non-nil, all text in the buffer matching the current search | 257 | When non-nil, all text in the buffer matching the current search |
| 258 | string is highlighted lazily (see `lazy-highlight-initial-delay' | 258 | string is highlighted lazily (see `lazy-highlight-initial-delay' |
| 259 | and `lazy-highlight-interval')." | 259 | and `lazy-highlight-interval')." |
| @@ -271,7 +271,7 @@ and `lazy-highlight-interval')." | |||
| 271 | :group 'matching) | 271 | :group 'matching) |
| 272 | 272 | ||
| 273 | (defcustom lazy-highlight-cleanup t | 273 | (defcustom lazy-highlight-cleanup t |
| 274 | "*Controls whether to remove extra highlighting after a search. | 274 | "Controls whether to remove extra highlighting after a search. |
| 275 | If this is nil, extra highlighting can be \"manually\" removed with | 275 | If this is nil, extra highlighting can be \"manually\" removed with |
| 276 | \\[lazy-highlight-cleanup]." | 276 | \\[lazy-highlight-cleanup]." |
| 277 | :type 'boolean | 277 | :type 'boolean |
| @@ -281,7 +281,7 @@ If this is nil, extra highlighting can be \"manually\" removed with | |||
| 281 | "22.1") | 281 | "22.1") |
| 282 | 282 | ||
| 283 | (defcustom lazy-highlight-initial-delay 0.25 | 283 | (defcustom lazy-highlight-initial-delay 0.25 |
| 284 | "*Seconds to wait before beginning to lazily highlight all matches." | 284 | "Seconds to wait before beginning to lazily highlight all matches." |
| 285 | :type 'number | 285 | :type 'number |
| 286 | :group 'lazy-highlight) | 286 | :group 'lazy-highlight) |
| 287 | (define-obsolete-variable-alias 'isearch-lazy-highlight-initial-delay | 287 | (define-obsolete-variable-alias 'isearch-lazy-highlight-initial-delay |
| @@ -289,7 +289,7 @@ If this is nil, extra highlighting can be \"manually\" removed with | |||
| 289 | "22.1") | 289 | "22.1") |
| 290 | 290 | ||
| 291 | (defcustom lazy-highlight-interval 0 ; 0.0625 | 291 | (defcustom lazy-highlight-interval 0 ; 0.0625 |
| 292 | "*Seconds between lazily highlighting successive matches." | 292 | "Seconds between lazily highlighting successive matches." |
| 293 | :type 'number | 293 | :type 'number |
| 294 | :group 'lazy-highlight) | 294 | :group 'lazy-highlight) |
| 295 | (define-obsolete-variable-alias 'isearch-lazy-highlight-interval | 295 | (define-obsolete-variable-alias 'isearch-lazy-highlight-interval |
| @@ -297,8 +297,8 @@ If this is nil, extra highlighting can be \"manually\" removed with | |||
| 297 | "22.1") | 297 | "22.1") |
| 298 | 298 | ||
| 299 | (defcustom lazy-highlight-max-at-a-time 20 | 299 | (defcustom lazy-highlight-max-at-a-time 20 |
| 300 | "*Maximum matches to highlight at a time (for `lazy-highlight'). | 300 | "Maximum matches to highlight at a time (for `lazy-highlight'). |
| 301 | Larger values may reduce isearch's responsiveness to user input; | 301 | Larger values may reduce Isearch's responsiveness to user input; |
| 302 | smaller values make matches highlight slowly. | 302 | smaller values make matches highlight slowly. |
| 303 | A value of nil means highlight all matches." | 303 | A value of nil means highlight all matches." |
| 304 | :type '(choice (const :tag "All" nil) | 304 | :type '(choice (const :tag "All" nil) |
| @@ -330,8 +330,7 @@ A value of nil means highlight all matches." | |||
| 330 | ;; Define isearch help map. | 330 | ;; Define isearch help map. |
| 331 | 331 | ||
| 332 | (defvar isearch-help-map | 332 | (defvar isearch-help-map |
| 333 | (let ((i 0) | 333 | (let ((map (make-sparse-keymap))) |
| 334 | (map (make-sparse-keymap))) | ||
| 335 | (define-key map [t] 'isearch-other-control-char) | 334 | (define-key map [t] 'isearch-other-control-char) |
| 336 | (define-key map (char-to-string help-char) 'isearch-help-for-help) | 335 | (define-key map (char-to-string help-char) 'isearch-help-for-help) |
| 337 | (define-key map [help] 'isearch-help-for-help) | 336 | (define-key map [help] 'isearch-help-for-help) |
| @@ -342,7 +341,7 @@ A value of nil means highlight all matches." | |||
| 342 | (define-key map "m" 'isearch-describe-mode) | 341 | (define-key map "m" 'isearch-describe-mode) |
| 343 | (define-key map "q" 'help-quit) | 342 | (define-key map "q" 'help-quit) |
| 344 | map) | 343 | map) |
| 345 | "Keymap for characters following the Help key for isearch mode.") | 344 | "Keymap for characters following the Help key for Isearch mode.") |
| 346 | 345 | ||
| 347 | (eval-when-compile (require 'help-macro)) | 346 | (eval-when-compile (require 'help-macro)) |
| 348 | 347 | ||
| @@ -351,25 +350,25 @@ A value of nil means highlight all matches." | |||
| 351 | "You have typed %THIS-KEY%, the help character. Type a Help option: | 350 | "You have typed %THIS-KEY%, the help character. Type a Help option: |
| 352 | \(Type \\<help-map>\\[help-quit] to exit the Help command.) | 351 | \(Type \\<help-map>\\[help-quit] to exit the Help command.) |
| 353 | 352 | ||
| 354 | b Display all isearch key bindings. | 353 | b Display all Isearch key bindings. |
| 355 | k KEYS Display full documentation of isearch key sequence. | 354 | k KEYS Display full documentation of Isearch key sequence. |
| 356 | m Display documentation of isearch mode. | 355 | m Display documentation of Isearch mode. |
| 357 | 356 | ||
| 358 | You can't type here other help keys available in the global help map, | 357 | You can't type here other help keys available in the global help map, |
| 359 | but outise of this help window when you type them in isearch mode, | 358 | but outside of this help window when you type them in Isearch mode, |
| 360 | they exit isearch mode before displaying global help." | 359 | they exit Isearch mode before displaying global help." |
| 361 | isearch-help-map) | 360 | isearch-help-map) |
| 362 | 361 | ||
| 363 | (defun isearch-help-for-help () | 362 | (defun isearch-help-for-help () |
| 364 | "Display isearch help menu." | 363 | "Display Isearch help menu." |
| 365 | (interactive) | 364 | (interactive) |
| 366 | (let (same-window-buffer-names same-window-regexps) | 365 | (let (same-window-buffer-names same-window-regexps) |
| 367 | (isearch-help-for-help-internal)) | 366 | (isearch-help-for-help-internal)) |
| 368 | (isearch-update)) | 367 | (isearch-update)) |
| 369 | 368 | ||
| 370 | (defun isearch-describe-bindings () | 369 | (defun isearch-describe-bindings () |
| 371 | "Show a list of all keys defined in isearch mode, and their definitions. | 370 | "Show a list of all keys defined in Isearch mode, and their definitions. |
| 372 | This is like `describe-bindings', but displays only isearch keys." | 371 | This is like `describe-bindings', but displays only Isearch keys." |
| 373 | (interactive) | 372 | (interactive) |
| 374 | (let (same-window-buffer-names same-window-regexps) | 373 | (let (same-window-buffer-names same-window-regexps) |
| 375 | (with-help-window "*Help*" | 374 | (with-help-window "*Help*" |
| @@ -385,7 +384,7 @@ This is like `describe-bindings', but displays only isearch keys." | |||
| 385 | (isearch-update)) | 384 | (isearch-update)) |
| 386 | 385 | ||
| 387 | (defun isearch-describe-mode () | 386 | (defun isearch-describe-mode () |
| 388 | "Display documentation of isearch mode." | 387 | "Display documentation of Isearch mode." |
| 389 | (interactive) | 388 | (interactive) |
| 390 | (let (same-window-buffer-names same-window-regexps) | 389 | (let (same-window-buffer-names same-window-regexps) |
| 391 | (describe-function 'isearch-forward)) | 390 | (describe-function 'isearch-forward)) |
| @@ -397,8 +396,8 @@ This is like `describe-bindings', but displays only isearch keys." | |||
| 397 | ;; Define isearch-mode keymap. | 396 | ;; Define isearch-mode keymap. |
| 398 | 397 | ||
| 399 | (defvar isearch-mode-map | 398 | (defvar isearch-mode-map |
| 400 | (let* ((i 0) | 399 | (let ((i 0) |
| 401 | (map (make-keymap))) | 400 | (map (make-keymap))) |
| 402 | (or (char-table-p (nth 1 map)) | 401 | (or (char-table-p (nth 1 map)) |
| 403 | (error "The initialization of isearch-mode-map must be updated")) | 402 | (error "The initialization of isearch-mode-map must be updated")) |
| 404 | ;; Make all multibyte characters search for themselves. | 403 | ;; Make all multibyte characters search for themselves. |
| @@ -514,7 +513,7 @@ This is like `describe-bindings', but displays only isearch keys." | |||
| 514 | (define-key map "\C-f" 'isearch-yank-char-in-minibuffer) | 513 | (define-key map "\C-f" 'isearch-yank-char-in-minibuffer) |
| 515 | (define-key map [right] 'isearch-yank-char-in-minibuffer) | 514 | (define-key map [right] 'isearch-yank-char-in-minibuffer) |
| 516 | map) | 515 | map) |
| 517 | "Keymap for editing isearch strings in the minibuffer.") | 516 | "Keymap for editing Isearch strings in the minibuffer.") |
| 518 | 517 | ||
| 519 | ;; Internal variables declared globally for byte-compiler. | 518 | ;; Internal variables declared globally for byte-compiler. |
| 520 | ;; These are all set with setq while isearching | 519 | ;; These are all set with setq while isearching |
| @@ -659,18 +658,19 @@ Type \\[isearch-occur] to run `occur' that shows\ | |||
| 659 | Type \\[isearch-highlight-regexp] to run `highlight-regexp'\ | 658 | Type \\[isearch-highlight-regexp] to run `highlight-regexp'\ |
| 660 | that highlights the last search string. | 659 | that highlights the last search string. |
| 661 | 660 | ||
| 662 | Type \\[isearch-describe-bindings] to display all isearch key bindings. | 661 | Type \\[isearch-describe-bindings] to display all Isearch key bindings. |
| 663 | Type \\[isearch-describe-key] to display documentation of isearch key. | 662 | Type \\[isearch-describe-key] to display documentation of Isearch key. |
| 664 | Type \\[isearch-describe-mode] to display documentation of isearch mode. | 663 | Type \\[isearch-describe-mode] to display documentation of Isearch mode. |
| 665 | 664 | ||
| 666 | If an input method is turned on in the current buffer, that input | 665 | If an input method is turned on in the current buffer, that input |
| 667 | method is also active while you are typing characters to search. To | 666 | method is also active while you are typing characters to search. |
| 668 | toggle the input method, type \\[isearch-toggle-input-method]. It | 667 | To toggle the input method, type \\[isearch-toggle-input-method]. \ |
| 669 | also toggles the input method in the current buffer. | 668 | It also toggles the input |
| 669 | method in the current buffer. | ||
| 670 | 670 | ||
| 671 | To use a different input method for searching, type | 671 | To use a different input method for searching, type \ |
| 672 | \\[isearch-toggle-specified-input-method], and specify an input method | 672 | \\[isearch-toggle-specified-input-method], |
| 673 | you want to use. | 673 | and specify an input method you want to use. |
| 674 | 674 | ||
| 675 | The above keys, bound in `isearch-mode-map', are often controlled by | 675 | The above keys, bound in `isearch-mode-map', are often controlled by |
| 676 | options; do \\[apropos] on search-.* to find them. | 676 | options; do \\[apropos] on search-.* to find them. |
| @@ -736,7 +736,7 @@ as a regexp. See the command `isearch-forward' for more information." | |||
| 736 | 736 | ||
| 737 | 737 | ||
| 738 | (defun isearch-mode (forward &optional regexp op-fun recursive-edit word-p) | 738 | (defun isearch-mode (forward &optional regexp op-fun recursive-edit word-p) |
| 739 | "Start isearch minor mode. | 739 | "Start Isearch minor mode. |
| 740 | It is called by the function `isearch-forward' and other related functions." | 740 | It is called by the function `isearch-forward' and other related functions." |
| 741 | 741 | ||
| 742 | ;; Initialize global vars. | 742 | ;; Initialize global vars. |
| @@ -994,7 +994,7 @@ REGEXP if non-nil says use the regexp search ring." | |||
| 994 | "Return the case-folding flag in FRAME." | 994 | "Return the case-folding flag in FRAME." |
| 995 | (aref frame 10)) | 995 | (aref frame 10)) |
| 996 | (defsubst isearch-pop-fun-state (frame) | 996 | (defsubst isearch-pop-fun-state (frame) |
| 997 | "Return the function restoring the mode-specific isearch state in FRAME." | 997 | "Return the function restoring the mode-specific Isearch state in FRAME." |
| 998 | (aref frame 11)) | 998 | (aref frame 11)) |
| 999 | 999 | ||
| 1000 | (defun isearch-top-state () | 1000 | (defun isearch-top-state () |
| @@ -1512,10 +1512,10 @@ is bound to outside of Isearch." | |||
| 1512 | 1512 | ||
| 1513 | (defun isearch-yank-internal (jumpform) | 1513 | (defun isearch-yank-internal (jumpform) |
| 1514 | "Pull the text from point to the point reached by JUMPFORM. | 1514 | "Pull the text from point to the point reached by JUMPFORM. |
| 1515 | JUMPFORM is a lambda expression that takes no arguments and returns a | 1515 | JUMPFORM is a lambda expression that takes no arguments and returns |
| 1516 | buffer position, possibly having moved point to that position. For | 1516 | a buffer position, possibly having moved point to that position. |
| 1517 | example, it might move point forward by a word and return point, or it | 1517 | For example, it might move point forward by a word and return point, |
| 1518 | might return the position of the end of the line." | 1518 | or it might return the position of the end of the line." |
| 1519 | (isearch-yank-string | 1519 | (isearch-yank-string |
| 1520 | (save-excursion | 1520 | (save-excursion |
| 1521 | (and (not isearch-forward) isearch-other-end | 1521 | (and (not isearch-forward) isearch-other-end |
| @@ -1619,7 +1619,7 @@ might return the position of the end of the line." | |||
| 1619 | (defun isearch-fallback (want-backslash &optional allow-invalid to-barrier) | 1619 | (defun isearch-fallback (want-backslash &optional allow-invalid to-barrier) |
| 1620 | "Return point to previous successful match to allow regexp liberalization. | 1620 | "Return point to previous successful match to allow regexp liberalization. |
| 1621 | \\<isearch-mode-map> | 1621 | \\<isearch-mode-map> |
| 1622 | Respects \\[isearch-repeat-forward] and \\[isearch-repeat-backward] by | 1622 | Respects \\[isearch-repeat-forward] and \\[isearch-repeat-backward] by \ |
| 1623 | stopping at `isearch-barrier' as needed. | 1623 | stopping at `isearch-barrier' as needed. |
| 1624 | 1624 | ||
| 1625 | Do nothing if a backslash is escaping the liberalizing character. | 1625 | Do nothing if a backslash is escaping the liberalizing character. |
| @@ -2189,7 +2189,7 @@ If there is no completion possible, say so and continue searching." | |||
| 2189 | 2189 | ||
| 2190 | (defvar isearch-search-fun-function nil | 2190 | (defvar isearch-search-fun-function nil |
| 2191 | "Override `isearch-search-fun'. | 2191 | "Override `isearch-search-fun'. |
| 2192 | This function should return the search function for isearch to use. | 2192 | This function should return the search function for Isearch to use. |
| 2193 | It will call this function with three arguments | 2193 | It will call this function with three arguments |
| 2194 | as if it were `search-forward'.") | 2194 | as if it were `search-forward'.") |
| 2195 | 2195 | ||
| @@ -2212,9 +2212,9 @@ Can be changed via `isearch-search-fun-function' for special needs." | |||
| 2212 | (if isearch-forward 'search-forward 'search-backward))))) | 2212 | (if isearch-forward 'search-forward 'search-backward))))) |
| 2213 | 2213 | ||
| 2214 | (defun isearch-search-string (string bound noerror) | 2214 | (defun isearch-search-string (string bound noerror) |
| 2215 | "Search for the first occurance of STRING or its translation. If | 2215 | "Search for the first occurrence of STRING or its translation. |
| 2216 | found, move point to the end of the occurance, update | 2216 | If found, move point to the end of the occurrence, |
| 2217 | isearch-match-beg and isearch-match-end, and return point." | 2217 | update the match data, and return point." |
| 2218 | (let* ((func (isearch-search-fun)) | 2218 | (let* ((func (isearch-search-fun)) |
| 2219 | (pos1 (save-excursion (funcall func string bound noerror))) | 2219 | (pos1 (save-excursion (funcall func string bound noerror))) |
| 2220 | pos2) | 2220 | pos2) |
| @@ -2623,7 +2623,7 @@ by other Emacs features." | |||
| 2623 | 2623 | ||
| 2624 | (defun isearch-lazy-highlight-search () | 2624 | (defun isearch-lazy-highlight-search () |
| 2625 | "Search ahead for the next or previous match, for lazy highlighting. | 2625 | "Search ahead for the next or previous match, for lazy highlighting. |
| 2626 | Attempt to do the search exactly the way the pending isearch would." | 2626 | Attempt to do the search exactly the way the pending Isearch would." |
| 2627 | (condition-case nil | 2627 | (condition-case nil |
| 2628 | (let ((case-fold-search isearch-lazy-highlight-case-fold-search) | 2628 | (let ((case-fold-search isearch-lazy-highlight-case-fold-search) |
| 2629 | (isearch-regexp isearch-lazy-highlight-regexp) | 2629 | (isearch-regexp isearch-lazy-highlight-regexp) |