1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

216 Commits

Author SHA1 Message Date
Richard M. Stallman
f4be3f8929 (isearch-no-upper-case-p): \\ only quotes one character. 2002-12-09 20:23:35 +00:00
Stefan Monnier
8fd4d684b3 (isearch-yank-line): Typo. 2002-11-07 20:58:36 +00:00
Stefan Monnier
cd59ea72b2 (isearch-hidden): New var.
(isearch-search-and-update): Test it.
(isearch-range-invisible): Set it.
2002-11-07 17:46:04 +00:00
Stefan Monnier
191f025abf (isearch-cmds): Add docstring.
(isearch-mouse-2): Lookup binding in the proper buffer.
Use call-interactively and remove the now useless `arg'.
(isearch-search-fun-function): New var.
(isearch-search-fun): New fun.
(isearch-search, isearch-lazy-highlight-search): Use it.
2002-09-09 21:05:22 +00:00
Richard M. Stallman
ad871438dd Don't require timer. 2002-04-27 03:46:26 +00:00
Richard M. Stallman
360e0dd587 (isearch-mode): Don't call make-frame-visible
if frame is already visible.
2002-04-10 14:47:27 +00:00
Pavel Janík
153a9b8cc0 (isearch-message-prefix): Use minibuffer-prompt face for prompt. 2002-04-09 09:25:44 +00:00
Richard M. Stallman
4c01d4bda7 (isearch-update): Don't update display in kbd macro.
(isearch-lazy-highlight-new-loop): Do nothing in kbd macro.
2002-02-06 15:25:15 +00:00
Karl Fogel
21d908055d (isearch-forward, isearch-edit-string): Make doc
strings mention keybinding for `isearch-yank-word-or-char',
rather than `isearch-yank-word', since the former is bound now
and the latter is not.
(isearch-yank-word-or-char): Fix formatting.
2001-12-19 22:48:02 +00:00
Richard M. Stallman
8cc3c8215c (isearch-edit-string): When we set isearch-string
to the default, also set isearch-message.
2001-12-16 20:19:13 +00:00
Richard M. Stallman
ddbe3d5ff3 (isearch-start-hscroll): New variable.
(isearch-mode): Set isearch-start-hscroll.
(isearch-update): Restore original hscrolling if possible.
2001-12-16 03:56:40 +00:00
Richard M. Stallman
88715f05a1 (isearch-edit-string):
Treat isearch-yank-word-or-char specially, like isearch-yank-word.
2001-12-16 03:53:15 +00:00
Richard M. Stallman
868bf43ad4 (isearch-yank-word-or-char): New function.
(isearch-mode-map): Bind C-w to that.
2001-12-10 20:45:27 +00:00
Pavel Janík
d6b8a1c059 Remove unnecessary spaces in doc-string. 2001-12-03 06:13:55 +00:00
Kim F. Storm
6848c9f166 (isearch-resume-enabled): New variable.
(isearch-done): Use that variable.
2001-12-02 01:13:55 +00:00
Karl Fogel
29e53a0ae9 (isearch-yank-internal): New helper function.
(isearch-yank-char): New function.
(isearch-yank-word, isearch-yank-line): Rewrite to use
isearch-yank-internal.
2001-11-28 22:34:20 +00:00
Richard M. Stallman
b4d7a2ece9 Comment change. 2001-11-19 06:21:29 +00:00
Richard M. Stallman
5bcf005469 (isearch): Use magenta2 as bg for (background light) 2001-11-18 06:47:21 +00:00
Richard M. Stallman
fad241d332 (isearch-mode): Handle negative search-slow-window-lines correctly.
(isearch-whitespace-chars): Doc fix.
2001-11-13 16:39:40 +00:00
Gerd Moellmann
3f482bc0e5 (isearch-mode-map): Bind `mouse-movement' to nil. 2001-10-18 10:06:01 +00:00
Gerd Moellmann
67085aba97 (isearch-last-case-fold-search): New variable.
(isearch-mode): Remember value of isearch-case-fold-search
in isearch-last-case-fold-search.
(isearch-done): Quote value of isearch-case-fold-search.
(isearch-repeat): When resuming a search, restore
isearch-case-fold-search from isearch-last-case-fold-search.
2001-10-05 09:24:20 +00:00
Gerd Moellmann
eaa493dfe6 (isearch-intersects-p): Fix end checks. 2001-09-12 13:10:08 +00:00
Gerd Moellmann
fc0eccfcce (isearch-intersects-p): New function.
(isearch-close-unnecessary-overlays): Renamed from *unecessary*,
use isearch-intersects-p, and clean up.
2001-09-07 16:17:54 +00:00
Gerd Moellmann
e4af142698 (isearch-mouse-2): Renamed from isearch-mouse-yank.
Instead of running mouse-yank-at-click, see what the event is
bound to outside Isearch and run that.
2001-08-31 08:51:39 +00:00
Gerd Moellmann
346f18dcd4 (isearch-other-meta-char): Don't switch to the
buffer of a window clicked on, when the current buffer is
in Isearch mode.
2001-08-10 12:48:02 +00:00
Gerd Moellmann
17635d50f6 (isearch-other-meta-char): Fix last change. 2001-07-25 14:51:10 +00:00
Gerd Moellmann
3fb01f36c5 (isearch-other-meta-char): Don't modify mode-line and
similar events for which fake prefix keys are generated.  It's no
longer necessary since read_key_sequence doesn't modify these
events for internal purposes anymore.
2001-07-25 14:02:28 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
1e14b09539 (isearch-forward): Doc fix. 2001-02-05 17:15:07 +00:00
Kenichi Handa
37b20c9be5 (isearch-forward): Add description about input method in the docsting. 2001-02-05 00:39:48 +00:00
Eli Zaretskii
8005142f86 (isearch-highlight): Don't punt if the display
doesn't support colors, since isearch faces are defined for
monochrome displays as well.
2001-01-28 13:13:00 +00:00
Gerd Moellmann
46daf6c747 (isearch-lazy-highlight-case-fold-search)
(isearch-lazy-highlight-regexp): New variables.
(isearch-lazy-highlight-cleanup): Update lazy highlight if
case-fold search or regexp search has been toggled.
2001-01-22 11:23:38 +00:00
Gerd Moellmann
871e0439db (isearch-lazy-highlight-initial-delay): Set default
to 0.25.
2001-01-22 10:20:06 +00:00
Eli Zaretskii
6c551d4e1f (isearch-forward): Add isearch-toggle-case-fold,
isearch-toggle-regexp and isearch-edit-string to doc string.
2001-01-19 17:13:17 +00:00
Gerd Moellmann
b8fbd47499 (isearch-lazy-highlight-initial-delay)
(isearch-lazy-highlight-interval): Default to 0.
2001-01-17 14:11:06 +00:00
Gerd Moellmann
c982ab2168 (isearch-highlight): Set isearch-overlay priority to
1 here rather than each time through
isearch-lazy-highlight-new-loop.
(isearch-lazy-highlight-max): Variable deleted.
(isearch-lazy-highlight-max-at-a-time): New user variable, like
isearch-lazy-highlight-max but controls a single invocation of
isearch-lazy-highlight-update.
(isearch-lazy-highlight-wrapped): Variable recreated.
(isearch-lazy-highlight-window-start): New variable.
(isearch-lazy-highlight-cleanup): Restored to behavior of
before 2-Jan.
(isearch-lazy-highlight-remove-overlays): Function deleted;
behavior folded into isearch-lazy-highlight-cleanup.  "Keep"
behavior removed.
(isearch-lazy-highlight-new-loop): Restore old behavior of calling
isearch-lazy-highlight-update in a loop rather than just once.
Test isearch-invalid-regexp here and decide not to start a new
loop, rather than testing it each time through
isearch-lazy-highlight-update.
(isearch-lazy-highlight-search): Function restored.
(isearch-lazy-highlight-update): Get called in a timer loop again,
but this time highlight more than one match each time through.
Only highlight matches in the visible part of the window.  Start
at point, move in the direction of the search, and wrap around at
the edge of the window.  Use sit-for to force redisplay and ensure
window-start is credible.  "Face suppressing" behavior removed;
overlay priorities should make it unnecessary, right?
(isearch-highlight): Face suppressing behavior removed.
(isearch-dehighlight): Face suppressing behavior removed.
(isearch-set-lazy-highlight-faces-at): Removed.
2001-01-17 14:10:25 +00:00
Dave Love
39f2174e95 (isearch-lazy-highlight): Add :version. 2001-01-16 17:27:20 +00:00
Gerd Moellmann
c5348233d2 (isearch-search): In the condition-case handler for
`error', set isearch-invalid-regexp to the whole error message.
2001-01-11 15:31:12 +00:00
Richard M. Stallman
7742ee1924 (isearch-lazy-highlight-update):
Don't look for more potential matches once maximum is exceeded.
Use overlays-in to check correctly for overlap with current match.
Ignore empty matches.
2001-01-11 08:08:51 +00:00
Gerd Moellmann
d196f58d91 (isearch-done): Set isearch-lazy-highlight-start
to nil.
2001-01-10 17:20:35 +00:00
Eli Zaretskii
29910493a8 (isearch, isearch-lazy-highlight-face): New
definitions for face colors and attributes.
2001-01-09 11:38:12 +00:00
Gerd Moellmann
7e56ea04ca (isearch-old-signal-hook): Removed.
(isearch-mode): Add isearch-done to kbd-macro-termination-hook
instead of setting signal-hook-function.
(isearch-done): Remove isearch-done from kbd-macro-termination-hook.
2001-01-08 12:26:23 +00:00
Eli Zaretskii
380866a2a5 (isearch-lazy-highlight-remove-overlays): Doc fix.
(isearch-lazy-highlight-update): Doc fix.
2001-01-06 19:04:32 +00:00
Gerd Moellmann
1f4139d5ae (isearch-old-signal-hook): New variable.
(isearch-mode): Set signal-hook-function to isearch-done.
(isearch-done): Restore old signal-hook-function.
----------------------------
2001-01-05 14:41:53 +00:00
Richard M. Stallman
67ecad4e09 Do highlighting of alternative matches all at once,
but only do it in the text that's visible in the selected window.

(isearch-lazy-highlight-cleanup): Arg now says
to remove all the current alternative-match highlighting.
If nil, remove only what's outside the current window.
(isearch-lazy-highlight-remove-overlays): Take optional
region within which NOT to remove them.
(isearch-lazy-highlight-new-loop): Greatly simplified.
(isearch-lazy-highlight-update): Find all the other occurrences
visible in the window, in just one call.

(isearch-lazy-highlight-start): Now holds start of region to scan.
(isearch-lazy-highlight-end): Now holds end of region to scan.
(isearch-lazy-highlight-wrapped): Variable deleted.
(isearch-lazy-highlight-search): Function deleted.
2001-01-03 00:18:53 +00:00
Gerd Moellmann
68ebbb959e (isearch-lazy-highlight-max): New user-option.
(isearch-lazy-highlight-update): Don't highlight more than
isearch-lazy-highlight-max matches.
2000-12-15 13:22:21 +00:00
Miles Bader
ae1a21c634 (isearch-original-minibuffer-message-timeout): New var.
(isearch-mode): Set `minibuffer-message-timeout' to nil, after
stashing away its original value.
(isearch-edit-string): Temporarily restore `minibuffer-message-timeout'
in the recursive edit.
Bind `isearch-original-minibuffer-message-timeout' to protect it.
(isearch-done): Restore `minibuffer-message-timeout'.
2000-11-22 01:36:08 +00:00
Stefan Monnier
02b2f510d0 (isearch-mode-map): Fix docstring. Init in defvar.
(minibuffer-local-isearch-map): Init in defvar.  Use inheritance.
(isearch-clean-overlays, isearch-range-invisible, isearch-unread):
Use mapc rather than map.
2000-11-21 21:28:05 +00:00
Miles Bader
4fb2ad9831 (isearch-set-lazy-highlight-faces-at): New function.
(isearch-highlight): Restore lazy-isearch face properties at old
  position, and suppress them at new position.
(isearch-dehighlight): Restore lazy-isearch face properties.
(isearch-lazy-highlight-update): Add lazy-isearch overlays even
  over the real isearch overlay, but in that case, don't give it a
  face property.  Use `push'.
2000-10-12 07:39:14 +00:00
Gerd Moellmann
45c477b462 (isearch-lazy-highlight-update): Don't put a lazy
highlighting overlay with a different face over the overlay
isearch uses to highlight the current match because that can lead
to bad face combinations.
2000-10-02 19:51:03 +00:00