1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 02:20:21 -08:00
Commit graph

477 commits

Author SHA1 Message Date
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
Gerd Moellmann
18ca20aa86 (isearch-faces): New custom group.
(isearch): New defface; was already tested for in the code.
(isearch-lazy-highlight-face): Changed to defface from defcustom.
(isearch-highlight): Always use face `isearch'.
2000-10-02 19:18:09 +00:00
Stefan Monnier
143736774c (isearch-text-char-description): Pointless rewrite. 2000-09-29 02:35:56 +00:00
Gerd Moellmann
c40a4de1df (isearch-resume): New function.
(isearch-done): Add something to command-history to resume
the search.
(isearch-yank-line, isearch-yank-word): Use
buffer-substring-no-properties instead of buffer-substring.
2000-07-26 14:48:00 +00:00
Kenichi Handa
ed5c183bc9 (isearch-other-meta-char): Fix previous change. 2000-06-02 03:19:24 +00:00
Stefan Monnier
c5def0db86 (isearch-highlight): Turn internal-find-face into facep. 2000-06-02 00:48:43 +00:00
Kenichi Handa
a5cc922e6a (isearch-update): Set disable-point-adjustment to t
to prevent the point moving to the end of a composition when a
part of a composition is searched.
(isearch-other-meta-char): If the key invoking this command can be
mapped by function-key-map to a printing char, call
isearch-process-search-char directly.
2000-06-01 06:22:31 +00:00
Kenichi Handa
3c487103b8 (isearch-printing-char): If keyboard coding system is
being used, call isearch-process-search-multibyte-characters.
2000-05-31 03:49:22 +00:00
Gerd Moellmann
1ea1fb7e14 (isearch-mode-map): Define M-C-s like C-s and M-C-r
like C-r.
2000-04-04 21:04:34 +00:00
Dave Love
3cf0730529 (isearch-highlight): Use display-color-p. 2000-03-12 14:42:58 +00:00
Gerd Moellmann
44336afbad Add lazy highlighting. 1999-11-11 13:39:21 +00:00
Gerd Moellmann
b7b66466a9 (isearch-ring-advance-edit, isearch-complete-edit):
Use delete-field instead of erase-field.
1999-11-04 20:43:05 +00:00
Gerd Moellmann
3157c24a8e (isearch-complete-edit, isearch-ring-advance-edit):
Use erase-field instead of erase-buffer.
1999-11-03 16:26:28 +00:00
Dave Love
117132a6a6 (isearch): Add :links in defgroup.
(isearch-mode-map): Bind mouse-2 to isearch-mouse-yank.
(isearch-switch-frame-handler): Comment out (unused).
(isearch-yank-x-selection, isearch-ring-advance-edit): Doc fix.
(isearch-ring-retreat-edit): Doc fix.
(isearch-mouse-yank): New command.
(isearch-last-command-char): Removed.  Callers changed to use
last-command-char.
(isearch-char-to-string): Removed.  Callers changed to use
char-to-string.
1999-09-27 22:15:50 +00:00
Richard M. Stallman
e952bf4445 (isearch-mode-map): Undo previous change. 1999-09-12 03:40:44 +00:00
Dave Love
c9961ecaeb (isearch-mode-map): Add mouse-2. 1999-09-06 21:33:27 +00:00
Richard M. Stallman
8f3c1d763f (isearch-process-search-char): Write octal 200 correctly. 1999-07-05 16:49:22 +00:00
Richard M. Stallman
3c75023fda (isearch-quote-char): Call unibyte-char-to-multibyte for \200...\240 also.
(isearch-printing-char): Use unibyte-char-to-multibyte.
1999-07-03 19:45:04 +00:00
Richard M. Stallman
df01192be7 (isearch-done): If search ends in middle of intangible
text (due to text property), move on to the limit of that text.
1999-07-02 12:53:04 +00:00
Kenichi Handa
c20d35d515 (isearch-quote-char): Don't assume character codes
0200 - 0237 stand for characters in some single-byte character
charset.
1999-05-28 00:16:09 +00:00
Karl Heuer
ec0a2f45a2 (isearch-search-and-update): Properly
handle upper case letters in the reverse-search special case.
1998-09-25 16:53:04 +00:00
Karl Heuer
8617e346f1 (isearch-forward): Doc fix. 1998-08-26 18:13:55 +00:00
Richard M. Stallman
dcb6bf2b6f (search-whitespace-regexp): Doc fix. 1998-08-18 07:45:27 +00:00
Kenichi Handa
99848db078 (isearch-input-method-function): New variable.
(isearch-input-method-local-p): New variable.
(isearch-mode): Setup the above two variable.  Set
input-method-function to nil locally.
(isearch-done): Restore the previous value of
input-method-function.
1998-07-19 05:17:35 +00:00
Kenichi Handa
52e3ccbf8d (isearch-mode-map): Make all multibyte characters
search for themselves.
1998-07-06 06:33:55 +00:00
Andreas Schwab
5786b3ed4c (search-upper-case): Use `other' widget type. 1998-06-24 09:13:36 +00:00
Kenichi Handa
de207f5af3 (isearch-range-invisible): Handle the case that
buffer-invisibility-spec is t (i.e. not a list).
1998-06-20 02:59:51 +00:00
Richard M. Stallman
57ff063d0b (isearch-yank-x-selection): Doc fix. 1998-04-27 22:05:53 +00:00
Richard M. Stallman
bd6a841426 (isearch-*-char): Do nothing special if quoted with \. 1998-03-05 02:28:44 +00:00
Richard M. Stallman
7e97482bb7 (isearch-range-invisible): Avoid infinite loop when search-invisible is nil. 1998-02-02 00:18:33 +00:00
Richard M. Stallman
6b0f9bdfdd (isearch-mode-map): Don't count above 256
when setting up printing characters.
1997-12-21 02:33:57 +00:00
Karl Heuer
9cf081fa5c (isearch-yank-string): New helper function.
(isearch-yank-kill, isearch-yank-word, isearch-yank-line): Use it.
(isearch-yank-x-selection): New function.
(isearch-yank): Function deleted.
1997-11-18 22:31:16 +00:00
Karl Heuer
45b94eb2e9 (isearch-printing-char): Change S-SPC to SPC.
(isearch-mode-map): Bind S-SPC like SPC.
1997-10-15 23:15:09 +00:00
Richard M. Stallman
e2b992cbc6 (search-whitespace-regexp): Doc fix. 1997-09-05 23:33:10 +00:00
Richard M. Stallman
af56433dc5 (isearch-printing-char): Handle nonascii-insert-offset. 1997-08-28 00:33:03 +00:00
Kenichi Handa
5b56d4e4bd (isearch-multibyte-characters-flag): Deleted.
(isearch-mode): Do not bind isearch-multibyte-characters-flag and
isearch-input-method.
(isearch-printing-char): Use current-input-method instead of
isearch-input-method.
(isearch-message-prefix): Likewise.
1997-08-18 10:53:05 +00:00
Richard M. Stallman
8bc15fa853 (isearch-quote-char): Fix handling of control
characters, copied from quoted-insert.
1997-08-04 19:03:37 +00:00
Richard M. Stallman
4fd017e78e (isearch-other-meta-char): Don't switch windows to exit
if that would switch to an inactive minibuffer.
1997-08-04 05:09:49 +00:00
Richard M. Stallman
68c18d6d0a (isearch-hide-immediately): Doc fix. 1997-08-01 04:53:34 +00:00
Richard M. Stallman
79c7a4fa5f (search-invisible): Fix typo.
(isearch-search): Bind inhibit-point-motion-hooks because we might
have to search inside invisible and intangible text.
(isearch-open-overlay-temporary): Delete forgoten debug message.
(isearch-range-invisible): Fix typo in doc-string.
1997-07-19 05:34:23 +00:00