summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
Commit message (Collapse)AuthorAgeFilesLines
* (isearch-forward): Doc fix.Andreas Schwab2005-04-231-2/+2
|
* (isearch-edit-string): Make the search-ring available forStefan Monnier2005-04-181-57/+6
| | | | | | | minibuffer history commands. (minibuffer-local-isearch-map): Remove bindings for M-p and M-n, the default history commands now work just as well. (isearch-ring-retreat-edit, isearch-ring-advance-edit): Remove.
* (isearch-lazy-highlight-new-loop):Juri Linkov2005-03-181-4/+5
| | | | | | | | | | | Make arguments beg and end optional. (isearch-update): Remove optional arguments nil from isearch-lazy-highlight-new-loop. (isearch-lazy-highlight-search): Let-bind case-fold-search to isearch-lazy-highlight-case-fold-search instead of isearch-case-fold-search, and let-bind isearch-regexp to isearch-lazy-highlight-regexp. Use isearch-lazy-highlight-last-string instead of isearch-string.
* (lazy-highlight-cleanup) <command>: Rename fromJuri Linkov2005-03-181-10/+13
| | | | | | | | | | `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'.
* (isearch-fallback): Check for `(car previous)'Juri Linkov2005-03-171-2/+4
| | | | before calling `isearch-other-end-state'.
* Put `isearch-scroll' property to `split-window-horizontally'.Juri Linkov2005-03-161-0/+1
|
* (isearch-error): New variable.Juri Linkov2005-03-151-52/+48
| | | | | | | | | | | | | | | | | | | | (isearch-invalid-regexp, isearch-within-brackets): Remove. (isearch-error-state): Renamed from `isearch-invalid-regexp-state'. (isearch-within-brackets-state): Remove. (isearch-case-fold-search-state, isearch-pop-fun-state): Decrease frame index. (isearch-mode, isearch-top-state, isearch-push-state) (isearch-edit-string, isearch-abort, isearch-search-and-update) (isearch-fallback, isearch-message-prefix, isearch-message-suffix) (isearch-search, isearch-lazy-highlight-new-loop): Replace `isearch-invalid-regexp' with `isearch-error'. Remove `isearch-within-brackets'. (isearch-search): Add `search-failed' handler to `condition-case'. (isearch-lazy-highlight-search): Add `condition-case' to catch errors and allow `isearch-lazy-highlight-update' to try highlighting from the beginning of the window. (isearch-repeat): Move up code to set isearch-wrapped to t before calling isearch-wrap-function.
* (isearch-forward): Document isearch-query-replace andDan Nicolaescu2005-02-191-0/+5
| | | | isearch-query-replace-regexp keybindings.
* (isearch-lazy-highlight-start-limit)Richard M. Stallman2005-02-161-12/+23
| | | | | | | | (isearch-lazy-highlight-end-limit): New variables limit the region for highlighting. (isearch-lazy-highlight-new-loop): New args BEG and END. (isearch-lazy-highlight-search): Use the new vars. (isearch-lazy-highlight-update): Likewise.
* (search-highlight, isearch, isearch-lazy-highlight):Juri Linkov2005-01-111-62/+67
| | | | | | | | | | | | | Bring together isearch highlight related options. (lazy-highlight): Replace group `replace' by `matching'. (lazy-highlight-cleanup, lazy-highlight-initial-delay) (lazy-highlight-interval, lazy-highlight-max-at-a-time) (lazy-highlight): Add aliases to old names isearch-lazy-highlight-... and declare them obsolete. (lazy-highlight-face): Rename from isearch-lazy-highlight-face. (isearch-faces): Remove defgroup. (isearch-overlay, isearch-highlight, isearch-dehighlight): Move isearch highlighting code closer to lazy highlighting code.
* (isearch-lazy-highlight-update): RenameJuri Linkov2005-01-061-1/+1
| | | | `isearch-lazy-highlight-interval' to `lazy-highlight-interval'.
* Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-12Miles Bader2005-01-061-3/+3
| | | | | | | | | Remove "-face" suffix from lazy-highlight face name 2005-01-06 Miles Bader <miles@gnu.org> * lisp/isearch.el (lazy-highlight): Renamed from `lazy-highlight-face'. (isearch-lazy-highlight-face): Use new name.
* (isearch-dehighlight): Remove unused arg `totally'.Stefan Monnier2005-01-051-4/+4
| | | | (isearch-update, isearch-done): Adjust calls accordingly.
* (lazy-highlight): Group renamed from isearch-lazy-...Richard M. Stallman2005-01-041-60/+65
| | | | | | | (lazy-highlight-cleanup, lazy-highlight-initial-delay) (lazy-highlight-interval, lazy-highlight-max-at-a-time) (lazy-highlight-face): Renamed from isearch-lazy-... Change all references to them.
* (isearch-update): Test isearch-lazy-highlightJuri Linkov2004-12-151-3/+2
| | | | | | before calling isearch-lazy-highlight-new-loop. (isearch-lazy-highlight-new-loop): Don't test isearch-lazy-highlight.
* (isearch-edit-string): Set 7th arg ofJuri Linkov2004-12-121-53/+58
| | | | | | | | | | | | | | `read-from-minibuffer' to `t' to inherit the current input method (whose name is indicated by [IM] in the minibuffer prompt) from the current buffer to the minibuffer. (isearch-lazy-highlight-update): Put body to `with-local-quit' to allow C-g quitting for lazy highlighting looping inside the search with nested repetition operators. Add overlay to the list before setting its face and other properties to avoid the case of code quitting after placing the new overlay but before it's recorded on the list. Select the window where isearch was activated, to highlight matches in the right window when isearch switches the current window to the minibuffer.
* Fix previous change.Richard M. Stallman2004-12-101-1/+0
|
* (isearch-mode-map): Treat S-SPC like SPC.Richard M. Stallman2004-12-101-0/+2
|
* (isearch-quote-char): Fix up typo in last change.Stefan Monnier2004-12-081-1/+1
|
* (isearch-quote-char): Use it.Stefan Monnier2004-12-061-7/+3
|
* (search-whitespace-regexp): Remove the group. Doc fix.Richard M. Stallman2004-12-031-29/+28
| | | | | | | | | (isearch-mode-map): No special definition for space. (isearch-whitespace-chars): Command deleted. (isearch-forward-regexp): Doc fix. (isearch-quote-char): When a space is not inside brackets, use `[ ]' instead of just space. (isearch-lazy-highlight-search): Bind search-spaces-regexp.
* (isearch-yank-line): C-y yanks to next EOL, not end of current line.Eli Zaretskii2004-10-081-2/+2
|
* (isearch-done): Set mark after running hook.Juri Linkov2004-10-051-10/+11
| | | | Suggested by Drew Adams <drew.adams@oracle.com>.
* (isearch-resume-in-command-history): Rename fromKim F. Storm2004-09-131-3/+5
| | | | isearch-resume-enabled and change default to nil.
* (isearch-lazy-highlight-update): Take into accountJuri Linkov2004-09-081-14/+25
| | | | the case of zero-length match at the search bound.
* (isearch-lazy-highlight-new-loop): Don't invokeRichard M. Stallman2004-09-041-3/+4
| | | | highlighting if the search string is empty.
* (isearch-toggle-regexp): Set `isearch-success' and `isearch-adjusted' to `t'.Juri Linkov2004-09-031-15/+21
| | | | | | | | | | | | | | (isearch-toggle-case-fold): Set `isearch-success' to `t'. (isearch-message-prefix): Add "pending" for isearch-adjusted. (isearch-other-meta-char): Restore isearch-point unconditionally. (isearch-query-replace): Add new arg `regexp-flag' and use it. Set point to start of match if region is not active in transient mark mode (to include the current match to region boundaries). Push the search string to `query-replace-from-history-variable'. Add prompt "Query replace regexp" for isearch-regexp. Add region beginning/end as last arguments of `perform-replace.' (isearch-query-replace-regexp): Replace code by the call to `isearch-query-replace' with arg `t'.
* * isearch.el (isearch-wrap-function)Juri Linkov2004-09-011-13/+31
| | | | | | | | | | | | | | | | (isearch-push-state-function): New defvars. (isearch-pop-fun-state): New defsubst. (isearch-top-state): Call function saved in `isearch-pop-fun-state'. (isearch-push-state): Set the result of calling `isearch-push-state-function' to the `isearch-pop-fun-state' field. (isearch-cancel): Call function saved in `isearch-pop-fun-state' to restore the mode-specific starting point of terminated search. (isearch-abort): Call `isearch-cancel' instead of its duplicated code. (isearch-repeat): Call `isearch-wrap-function' if defined. (isearch-message-prefix): Don't add prefix "over" to the message for wrapped search if `isearch-wrap-function' is defined. (isearch-search): Call function saved in `isearch-pop-fun-state' to restore the mode-specific starting point of failed search.
* Remove ancient Change Log section.Juri Linkov2004-09-011-68/+31
| | | | | | | | | (isearch-string, isearch-message-string, isearch-point) (isearch-success, isearch-forward-flag, isearch-other-end) (isearch-word, isearch-invalid-regexp, isearch-wrapped) (isearch-barrier, isearch-within-brackets) (isearch-case-fold-search): Add suffix `-state' to state-related defsubsts to avoid name clashes with other function names.
* (isearch-string, isearch-message-string, isearch-point)Luc Teirlinck2004-08-161-12/+12
| | | | | | | | | (isearch-success, isearch-forward-flag, isearch-other-end) (isearch-word, isearch-invalid-regexp, isearch-wrapped) (isearch-barrier, isearch-within-brackets) (isearch-case-fold-search): Fix broken `nth'-like calls to `aref'. From Davis Herring <herring@lanl.gov>.
* Remove accidental changes of March 4. Fix backingEli Zaretskii2004-08-141-79/+155
| | | | | | | | | | | | | | | | | | | | | | up when a regexp isearch is made more general. Use symbolic accessor functions for isearch stack frames to make usage clearer. (search-whitespace-regexp): Made groups in documentation shy (as is the group in the default value). (isearch-fallback): New function, addresses problems with regexps liberalized by `\|', adds support for liberalization by `\}' (the general repetition construct), and incorporates behavior for `*'/`?'. (isearch-}-char): New command, calls `isearch-fallback' with arguments appropriate to a typed `}'. (isearch-*-char, isearch-|-char): Now just call `isearch-fallback' appropriately. (isearch-mode-map): Bind `}' to `isearch-}-char'. (isearch-string, isearch-message,string, isearch-point, isearch-success, isearch-forward-flag, isearch-other-end, isearch-word, isearch-invalid-regexp, isearch-wrapped, isearch-barrier, isearch-within-brackets, isearch-case-fold-search): New inline functions to read fields of a stack frame.
* (isearch-query-replace): Pass the regexp-ness and delimited-ness ofStefan Monnier2004-07-051-11/+11
| | | | the search to query-replace.
* (isearch-query-replace, isearch-query-replace-regexp):Stefan Monnier2004-07-051-2/+2
| | | | Use the search string without prompting.
* (isearch-mode-map): Bind C-M-w to isearch-del-char,Juri Linkov2004-07-011-21/+70
| | | | | | | | | | | | | C-M-y to isearch-yank-char. Bind M-% to isearch-query-replace, C-M-% to isearch-query-replace-regexp. (minibuffer-local-isearch-map): Add arrow key bindings. Bind C-f to isearch-yank-char-in-minibuffer. (isearch-forward): Doc fix. (isearch-edit-string): Doc fix. (isearch-query-replace, isearch-query-replace-regexp): New funs. (isearch-del-char): Add optional arg. Set isearch-yank-flag to t. (isearch-yank-char): Add optional arg. (isearch-yank-char-in-minibuffer): New fun.
* (isearch-repeat): Avoid testing old match data.Richard M. Stallman2004-06-211-3/+14
| | | | | | (isearch-message): Display trailing space in special font when search is failing. (isearch-search-fun-function): Doc fix.
* (isearch-mode-map): Undo previous change.Richard M. Stallman2004-06-061-3/+1
|
* (isearch-mode-map): Bind \C-w to isearch-yank-word instead of ↵Juri Linkov2004-04-291-10/+26
| | | | | | | | | | isearch-yank-word-or-char. Add new key bindings for isearch-yank-char to \C-f, and isearch-del-char to \C-b. (isearch-del-char): New fun. (isearch-forward, isearch-edit-string): Update docstring. (isearch-yank-char): Doc fix. (isearch-other-meta-char): Restore point after scrolling.
* (isearch-*-char): New arg WANT-BACKSLASH.Richard M. Stallman2004-03-041-3/+13
| | | | | (isearch-{-char): New function. (isearch-mode-map): Bind { to isearch-{-char.
* Fix copyright years.Eli Zaretskii2004-02-271-1/+1
|
* (isearch, isearch-lazy-highlight-face): Use `min-colors'.Eli Zaretskii2004-02-271-8/+12
|
* (isearch-unread-key-sequence): New function, extracted fromEli Zaretskii2003-11-011-27/+195
| | | | | | | | | | | | | | | isearch-other-meta-char. (top level): (put 'foo 'isearch-scroll) on all Emacs's "scrollable" standard functions. (isearch-allow-scroll): New customizable variable. (isearch-string-out-of-window, isearch-back-into-window) (isearch-reread-key-sequence-naturally) (isearch-lookup-scroll-key): New functions. (isearch-other-meta-char): Doc string and functionality enhanced. Now accepts a prefix argument. (isearch-lazy-highlight-window-end): New variable. (isearch-lazy-highlight-new-loop): Pay attention to the window's end (thru isearch-lazy-highlight-window-end), not only its start.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (search-whitespace-regexp): Add a shy group around it.Richard M. Stallman2003-07-071-1/+1
|
* (isearch-complete): Update isearch-message.Richard M. Stallman2003-05-031-1/+4
|
* (isearch-complete1): Don't allocate unnecessarily.Stefan Monnier2003-04-291-8/+6
| | | | | (isearch-complete-edit): Adjust to Emacs-21's new minibuffer handling. (isearch-update-ring): Use push.
* (isearch-forward): Fix typo.Juanma Barranquero2003-01-241-30/+30
|
* (isearch-repeat): Error if try to repeat search and there was no previou search.Richard M. Stallman2003-01-061-1/+1
|
* (isearch-no-upper-case-p): \\ only quotes one character.Richard M. Stallman2002-12-091-1/+2
|
* (isearch-yank-line): Typo.Stefan Monnier2002-11-071-1/+1
|
* (isearch-hidden): New var.Stefan Monnier2002-11-071-66/+71
| | | | | (isearch-search-and-update): Test it. (isearch-range-invisible): Set it.