1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
Commit graph

215 commits

Author SHA1 Message Date
Richard M. Stallman
e7b2dd2e38 (compile_pattern_1): Don't BLOCK_INPUT. 2006-09-24 20:28:49 +00:00
Chong Yidong
b69e3c1805 * search.c (struct regexp_cache): New entry syntax_table.
(compile_pattern_1): Set it.
	(syms_of_search): Initialize it.
	(compile_pattern): Require the syntax_table entry of the cache
	element to match the current syntax table entry.
2006-09-19 21:44:52 +00:00
Chong Yidong
e5b94d44df * search.c (clear_regexp_cache): New function.
* syntax.c (Fmodify_syntax_entry): Clear regexp cache.
2006-09-17 17:38:59 +00:00
Richard M. Stallman
910c747a2f (looking_at_1, string_match_1, search_command):
Make syntax table's canon table point to eqv table.
2006-09-08 12:07:07 +00:00
Kim F. Storm
06f77a8a2f (compile_pattern_1): Use xsignal1.
(signal_failure): Remove (was only called once).
(search_command): Use xsignal1 instead of signal_failure.
2006-07-18 13:28:53 +00:00
Kim F. Storm
29100ceab8 (Fset_match_data): Use CHECK_LIST. 2006-07-12 13:20:32 +00:00
Dan Nicolaescu
01d0930532 * search.c (matcher_overflow): Mark as NO_RETURN.
* xterm.c (x_connection_closed): Likewise.

* sysdep.c (croak): Likewise.

* sound.c (sound_perror, alsa_sound_perror): Likewise.

* lisp.h (die, nsberror): Likewise.
2006-05-29 08:06:15 +00:00
Richard M. Stallman
6786a1071a (boyer_moore): Test ch >= 0400, not >. 2006-04-09 01:59:45 +00:00
Luc Teirlinck
66bc608238 (Fregexp_quote): Do not precede a literal `]' with two backslashes to
try to make clear that it has a literal meaning; it does not do that.
(It could close a character alternative containing a backslash.)
2006-03-01 23:52:22 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Andreas Schwab
d16c2b662c (Freplace_match): Use UPPERCASEP instead of !NOCASEP. 2006-01-15 12:07:41 +00:00
Kim F. Storm
a967ed62bb (search_buffer): No need to initialize base_pat. 2005-11-08 21:38:10 +00:00
Kenichi Handa
86dc6ccb92 (boyer_moore): Surround the '||' part of expression in
`if' condition by parentheses explicitly.
2005-10-21 00:42:13 +00:00
Richard M. Stallman
b85acc4bc2 Fix prev change. 2005-10-19 04:47:50 +00:00
Richard M. Stallman
f42d19a283 (Fstring_match): Doc fix. 2005-10-19 01:52:59 +00:00
Kenichi Handa
fed91c3814 (search_buffer): Give up BM search on case-fold-search
if one of a target character has a case-equivalence of different
charset even if that target charcter is an ASCII.
2005-10-14 07:55:05 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Kim F. Storm
aa77b5ce04 (syms_of_search): Staticpro searchbuf.whitespace_regexp. 2005-07-14 11:24:08 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Juanma Barranquero
d72cdbfcbd (Freplace_match): Follow error conventions. 2005-06-23 16:14:45 +00:00
Kim F. Storm
51f10faa17 (Fmatch_data): Remove evaporate option.
(Fmatch_data): Do not mention evaporate option in doc string.
Add commentary explaining evaporate arg (for internal use only).
(unwind_set_match_data): Add comment on evaporate use.
2005-06-22 23:18:59 +00:00
Kim F. Storm
9ad54a7e16 (Fset_match_data): Fix last change. 2005-06-08 22:54:39 +00:00
Kim F. Storm
abd0071cac (Fmatch_data): Add optional RESEAT arg. Unchain markers
in REUSE list if non-nil; free them if equal to evaporate.
(Fset_match_data): Add optional RESEAT arg.  Unchain markers in	LIST
if non-nil; free them if equal to evaporate.  Use XCAR/XCDR.
(restore_search_regs): Rename from restore_match_data.  Uses changed.
(unwind_set_match_data): New function.
(record_unwind_save_match_data): New function like save-match-data.
2005-06-08 22:32:20 +00:00
Kenichi Handa
620a517848 (boyer_moore): Fix previous change. 2005-04-20 07:21:47 +00:00
Kenichi Handa
0190922fb4 (looking_at_1): Use current_buffer->case_canon_table,
not DOWNCASE_TABLE.
(string_match_1): Likewise.
(fast_c_string_match_ignore_case): Use Vascii_canon_table, not
Vascii_downcase_table.
(fast_string_match_ignore_case): Likewise.
(search_buffer): Fix checking of boyer-moore usability.
(boyer_moore): Calculate translate_prev_byte1/2/3 in advance.  No
need of tranlating characters in PAT.  Fix calculation of
simple_translate.
2005-04-01 01:05:46 +00:00
Kim F. Storm
e281182817 (syms_of_search) <search-spaces-regexp>: Move 'doc:'
marker out of doc string.
2004-11-27 01:09:08 +00:00
Richard M. Stallman
41a3329543 (Vsearch_spaces_regexp):
Renamed from Vsearch_whitespace_regexp.  All uses changed.
2004-11-20 14:04:16 +00:00
Richard M. Stallman
ecdb561eb4 (struct regexp_cache): New element whitespace_regexp.
(syms_of_search): Initialize whitespace_regexp elements.
(compile_pattern): Compare whitespace_regexp elements.
(compile_pattern_1): Set whitespace_regexp elements.
2004-11-19 20:02:32 +00:00
Richard M. Stallman
f31a9a68db (Vsearch_whitespace_regexp): New variable.
(syms_of_search): Defvar it.
(compile_pattern_1): Call re_set_whitespace_regexp with it.
(search_buffer): No regexp is trivial if Vsearch_whitespace_regexp is non-nil.
2004-11-19 19:40:32 +00:00
Richard M. Stallman
a9f2a45f70 Comment change. 2004-10-27 10:59:20 +00:00
Kenichi Handa
be5f4dfb01 (fast_string_match_ignore_case): New function. 2004-10-18 12:26:36 +00:00
David Kastrup
0f6af2545f (syms_of_search): staticpro
`saved_last_thing_searched'.  Apparently fixes an abort condition.
2004-07-15 03:01:08 +00:00
Stefan Monnier
bd2cbd5656 (match_limit, Fmatch_data, Fset_match_data): YAILOM. 2004-06-30 19:34:34 +00:00
David Kastrup
c3762cbd4b (Fset_match_data): Allow buffer before end of list
which can happen if set-match-data is using a pre-consed list.
2004-06-29 02:37:52 +00:00
David Kastrup
41c0120526 (Freplace_match): Adjust the match-data more
thoroughly when replacing strings in the buffer.
search.c (match-data): When INTEGERS is non-nil and the last match
was in a buffer, add the buffer as last element to the match data.
(Fset_match_data): If an additional element of the match-data is
a buffer, restore it to last_thing_searched.
(save_search_regs): Save last_thing_searched as part of the match
data.
(restore_match_data): Restore it again.
2004-06-23 19:22:25 +00:00
Richard M. Stallman
f90a5bf53a (match_limit): Cleaner err msg when no match data available. 2004-06-21 03:24:25 +00:00
David Kastrup
9b9ceb6178 (match_limit): Don't flag an error if match-data
exceeding the allocated search_regs.num_regs gets requested, just
return Qnil.
2004-06-11 00:08:37 +00:00
Stefan Monnier
29f89fe7ea (trivial_regexp_p): \_ is no longer a trivial regexp. 2004-05-19 16:32:59 +00:00
Richard M. Stallman
5fbbc83b2b (Freplace_match): Handle nonexistent back-references properly. 2004-01-27 04:52:09 +00:00
Kenichi Handa
8046052576 (Freplace_match): Use make_multibyte_string or
make_unibyte_string according to the buffer multibyteness.
2004-01-15 11:31:57 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Dave Love
b23c0a83dc (shrink_regexp_cache): Use xrealloc.
(syms_of_search): Use xmalloc.
2003-06-11 11:43:52 +00:00
Kim F. Storm
140a6b7efd (Fmatch_data): Doc fix. Explicitly state that
match-data is undefined if last search failed.
2003-02-13 10:33:49 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Richard M. Stallman
2bd2f32d10 (Fstring_match): Doc fix. 2002-11-24 19:04:57 +00:00
Richard M. Stallman
5b88a2c53a Fix previous change. 2002-09-29 20:50:15 +00:00
Richard M. Stallman
98e942e029 (Freplace_match): Adjust match data for the substitution
just made in the buffer.
2002-09-29 17:51:45 +00:00
Ken Raeburn
96b8056145 (fast_c_string_match_ignore_case): String pointer args
now point to const.
2002-07-16 19:48:55 +00:00
Ken Raeburn
49a5f7705f comment update 2002-07-16 17:11:56 +00:00
Ken Raeburn
5d69fe10ae * search.c (wordify): Use SDATA.
(Freplace_match): Use SREF.
2002-07-16 15:49:53 +00:00