1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

272 Commits

Author SHA1 Message Date
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Richard M. Stallman
40c7f2563b (isearch-edit-string): Erase the Search prompt
if user enters an empty string and there is no default.
2005-08-25 10:58:48 +00:00
Richard M. Stallman
f4c49513ec (isearch-repeat): When changing direction, mark search successful. 2005-08-09 11:27:18 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
6480c508bf (isearch-mode-map, isearch-other-meta-char, isearch-quote-char,
isearch-printing-char, isearch-text-char-description): "?\ " -> "?\s".
(isearch-lazy-highlight-cleanup, isearch-lazy-highlight-initial-delay,
isearch-lazy-highlight-interval, isearch-lazy-highlight-max-at-a-time,
isearch-lazy-highlight-face, isearch-lazy-highlight-cleanup): Declare with
define-obsolete-*-alias macros.
(isearch-forward): Fix typo in docstring.
(search-invisible, search-ring-yank-pointer, regexp-search-ring-yank-pointer):
Doc fixes.
2005-07-28 14:00:03 +00:00
Juri Linkov
a49ff34195 (isearch): Use not-too-dark magenta3 instead of too-light magenta2. 2005-07-19 11:39:16 +00:00
Juri Linkov
6f2df0f488 (isearch-mode-map): Remove key bindings for regexp chars * ? } |.
(isearch-fallback): Don't call `isearch-process-search-char'.
(isearch-*-char, isearch-}-char, isearch-|-char): Remove functions.
(isearch-process-search-char): Call `isearch-fallback' for regexp chars * ? } |.
(isearch-return-char): Make obsolete with `make-obsolete' instead
of simply documenting it as obsolete in the docstring.
(isearch-fallback): Refill docstring.
2005-07-18 14:32:30 +00:00
Richard M. Stallman
87e9767365 (isearch-mode-end-hook-quit): New variable.
(isearch-done): Bind it.
(isearch-mode-end-hook): Doc fix.
2005-07-16 19:13:30 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Andreas Schwab
8bdf62a786 (isearch-forward): Doc fix. 2005-04-23 15:38:07 +00:00
Stefan Monnier
e5feeb319e (isearch-edit-string): Make the search-ring available for
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.
2005-04-18 22:32:37 +00:00
Juri Linkov
d9dd1f33b6 (isearch-lazy-highlight-new-loop):
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.
2005-03-18 09:59:31 +00:00
Juri Linkov
46fe9018aa (lazy-highlight-cleanup) <command>: Rename from
`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'.
2005-03-18 07:06:45 +00:00
Juri Linkov
5a1f9fcfea (isearch-fallback): Check for `(car previous)'
before calling `isearch-other-end-state'.
2005-03-17 19:22:55 +00:00
Juri Linkov
7f55d3b755 Put isearch-scroll' property to split-window-horizontally'. 2005-03-16 07:33:26 +00:00
Juri Linkov
ba653a53be (isearch-error): New variable.
(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.
2005-03-15 10:45:25 +00:00
Dan Nicolaescu
ac010fca51 (isearch-forward): Document isearch-query-replace and
isearch-query-replace-regexp keybindings.
2005-02-19 20:52:47 +00:00
Richard M. Stallman
f9114cec07 (isearch-lazy-highlight-start-limit)
(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.
2005-02-16 09:41:02 +00:00
Juri Linkov
bca92193e4 (search-highlight, isearch, isearch-lazy-highlight):
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.
2005-01-11 23:03:01 +00:00
Juri Linkov
2c987fc2c1 (isearch-lazy-highlight-update): Rename
`isearch-lazy-highlight-interval' to `lazy-highlight-interval'.
2005-01-06 06:54:28 +00:00
Miles Bader
e3cde0c787 Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-12
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.
2005-01-06 04:44:57 +00:00
Stefan Monnier
4dbbcb46d9 (isearch-dehighlight): Remove unused arg `totally'.
(isearch-update, isearch-done): Adjust calls accordingly.
2005-01-05 20:49:11 +00:00
Richard M. Stallman
c1bc6bb67e (lazy-highlight): Group renamed from isearch-lazy-...
(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.
2005-01-04 02:21:55 +00:00
Juri Linkov
da79720c9e (isearch-update): Test isearch-lazy-highlight
before calling isearch-lazy-highlight-new-loop.
(isearch-lazy-highlight-new-loop):
Don't test isearch-lazy-highlight.
2004-12-15 10:08:51 +00:00
Juri Linkov
6ee8e6218d (isearch-edit-string): Set 7th arg of
`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.
2004-12-12 21:53:14 +00:00
Richard M. Stallman
4d524321ec Fix previous change. 2004-12-10 23:29:35 +00:00
Richard M. Stallman
ec06d344a3 (isearch-mode-map): Treat S-SPC like SPC. 2004-12-10 01:52:43 +00:00
Stefan Monnier
be02a7ed1f (isearch-quote-char): Fix up typo in last change. 2004-12-08 01:38:05 +00:00
Stefan Monnier
30bb14430c (isearch-quote-char): Use it. 2004-12-06 15:12:08 +00:00
Richard M. Stallman
ab67e8b694 (search-whitespace-regexp): Remove the group. Doc fix.
(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.
2004-12-03 00:30:33 +00:00
Eli Zaretskii
a1883913f8 (isearch-yank-line): C-y yanks to next EOL, not end of current line. 2004-10-08 17:02:16 +00:00
Juri Linkov
071fdd6692 (isearch-done): Set mark after running hook.
Suggested by Drew Adams <drew.adams@oracle.com>.
2004-10-05 04:22:41 +00:00
Kim F. Storm
00098b0131 (isearch-resume-in-command-history): Rename from
isearch-resume-enabled and change default to nil.
2004-09-13 08:18:22 +00:00
Juri Linkov
5ee5cd1017 (isearch-lazy-highlight-update): Take into account
the case of zero-length match at the search bound.
2004-09-08 20:43:17 +00:00
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