1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 04:30:55 -08:00
Commit graph

288 commits

Author SHA1 Message Date
Richard M. Stallman
5f3a57c98e (isearch-lazy-highlight-new-loop): Don't invoke
highlighting if the search string is empty.
2004-09-04 19:41:45 +00:00
Juri Linkov
d85519bb21 (isearch-toggle-regexp): Set isearch-success' and isearch-adjusted' to `t'.
(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'.
2004-09-03 20:32:57 +00:00
Juri Linkov
6a18e4e72c * isearch.el (isearch-wrap-function)
(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.
2004-09-01 20:35:12 +00:00
Juri Linkov
1a699acfc2 Remove ancient Change Log section.
(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.
2004-09-01 19:42:58 +00:00
Luc Teirlinck
3eec7894d4 (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): Fix broken `nth'-like calls to `aref'.

From Davis Herring <herring@lanl.gov>.
2004-08-16 12:50:25 +00:00
Eli Zaretskii
08e3de6956 Remove accidental changes of March 4. Fix backing
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.
2004-08-14 12:48:39 +00:00
Stefan Monnier
81e898ea68 (isearch-query-replace): Pass the regexp-ness and delimited-ness of
the search to query-replace.
2004-07-05 23:28:42 +00:00
Stefan Monnier
00c8fbf6f6 (isearch-query-replace, isearch-query-replace-regexp):
Use the search string without prompting.
2004-07-05 22:41:44 +00:00
Juri Linkov
74820eb521 (isearch-mode-map): Bind C-M-w to isearch-del-char,
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.
2004-07-01 09:54:51 +00:00
Richard M. Stallman
512bfd85df (isearch-repeat): Avoid testing old match data.
(isearch-message): Display trailing space in special font
when search is failing.
(isearch-search-fun-function): Doc fix.
2004-06-21 03:15:43 +00:00
Richard M. Stallman
33bc06fb37 (isearch-mode-map): Undo previous change. 2004-06-06 13:58:09 +00:00
Juri Linkov
35904fd355 (isearch-mode-map): Bind \C-w to isearch-yank-word instead of 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.
2004-04-29 15:28:55 +00:00
Richard M. Stallman
29f128f625 (isearch-*-char): New arg WANT-BACKSLASH.
(isearch-{-char): New function.
(isearch-mode-map): Bind { to isearch-{-char.
2004-03-04 16:54:08 +00:00
Eli Zaretskii
97cc3d15d4 Fix copyright years. 2004-02-27 17:30:23 +00:00
Eli Zaretskii
328419c117 (isearch, isearch-lazy-highlight-face): Use `min-colors'. 2004-02-27 17:05:29 +00:00
Eli Zaretskii
1e491f1bb8 (isearch-unread-key-sequence): New function, extracted from
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.
2003-11-01 17:00:02 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
7f8e0f51fd (search-whitespace-regexp): Add a shy group around it. 2003-07-07 21:02:18 +00:00
Richard M. Stallman
3ae4c5094b (isearch-complete): Update isearch-message. 2003-05-03 13:49:47 +00:00
Stefan Monnier
c789e60809 (isearch-complete1): Don't allocate unnecessarily.
(isearch-complete-edit): Adjust to Emacs-21's new minibuffer handling.
(isearch-update-ring): Use push.
2003-04-29 20:38:53 +00:00
Juanma Barranquero
b48ca14f34 (isearch-forward): Fix typo. 2003-01-24 17:12:00 +00:00
Richard M. Stallman
135f293b2a (isearch-repeat): Error if try to repeat search and there was no previou search. 2003-01-06 01:21:15 +00:00
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