aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs--rel--22Miles Bader2007-11-211-15/+13
|\ | | | | | | Revision: [email protected]/emacs--devo--0--patch-937
| * (Fset_match_data): Remove the `evaporate' feature.Stefan Monnier2007-11-161-15/+13
| | | | | | | | (unwind_set_match_data): Don't use the `evaporate' feature.
* | (boyer_moore): Remove #ifdef C_ALLOCA block.Glenn Morris2007-09-121-5/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-08-131-1/+1
|\| | | | | | | Revision: [email protected]/emacs--devo--0--patch-851
| * Replace `iff' in comments.Glenn Morris2007-08-081-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <[email protected]> * Relicense all FSF files to GPLv3 or later. Revision: [email protected]/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | (Vinhibit_changing_match_data, search_regs_1): New vars.Richard M. Stallman2007-07-101-48/+131
| | | | | | | | | | | | | | | | | | | | (looking_at_1): Don't change search_regs and last_thing_searched if `inhibit-changing-match-data' is non-nil. (string_match_1, search_buffer, set_search_regs): Likewise. (syms_of_search): Add Lisp level definition for `inhibit-changing-match-data' and set it to nil. (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute start and end of the match, instead of using values in search_regs.
* | (wordify): Use empty_unibyte_string.Juanma Barranquero2007-06-081-1/+1
|/
* Update copyright for years from Emacs 21 to present (mainly addingGlenn Morris2007-01-141-2/+2
| | | | 2001).
* (Fsearch_forward): Doc fix.Richard M. Stallman2006-12-261-1/+1
|
* (Fsearch_forward): Doc fix.Juanma Barranquero2006-12-191-2/+2
|
* (simple_search): In the loop of backward searching,Kenichi Handa2006-11-171-1/+1
| | | | check also the byte position against the limit.
* (compile_pattern): Only check `cp->syntax_table' if needed.Stefan Monnier2006-10-031-2/+7
| | | | | | (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'. (clear_regexp_cache): Only flush those regexps which depend on a syntax-table.
* (compile_pattern): Only check `cp->syntax_table' if needed.Stefan Monnier2006-10-031-6/+8
| | | | (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
* (compile_pattern_1): Don't BLOCK_INPUT.Richard M. Stallman2006-09-241-5/+6
|
* * search.c (struct regexp_cache): New entry syntax_table.Chong Yidong2006-09-191-0/+10
| | | | | | | (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.
* * search.c (clear_regexp_cache): New function.Chong Yidong2006-09-171-0/+13
| | | | * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
* (looking_at_1, string_match_1, search_command):Richard M. Stallman2006-09-081-0/+15
| | | | Make syntax table's canon table point to eqv table.
* (compile_pattern_1): Use xsignal1.Kim F. Storm2006-07-181-12/+6
| | | | | (signal_failure): Remove (was only called once). (search_command): Use xsignal1 instead of signal_failure.
* (Fset_match_data): Use CHECK_LIST.Kim F. Storm2006-07-121-2/+1
|
* * search.c (matcher_overflow): Mark as NO_RETURN.Dan Nicolaescu2006-05-291-0/+1
| | | | | | | | | | * xterm.c (x_connection_closed): Likewise. * sysdep.c (croak): Likewise. * sound.c (sound_perror, alsa_sound_perror): Likewise. * lisp.h (die, nsberror): Likewise.
* (boyer_moore): Test ch >= 0400, not >.Richard M. Stallman2006-04-091-2/+2
|
* (Fregexp_quote): Do not precede a literal `]' with two backslashes toLuc Teirlinck2006-03-011-1/+1
| | | | | try to make clear that it has a literal meaning; it does not do that. (It could close a character alternative containing a backslash.)
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (Freplace_match): Use UPPERCASEP instead of !NOCASEP.Andreas Schwab2006-01-151-1/+1
|
* (search_buffer): No need to initialize base_pat.Kim F. Storm2005-11-081-1/+1
|
* (boyer_moore): Surround the '||' part of expression inKenichi Handa2005-10-211-1/+1
| | | | `if' condition by parentheses explicitly.
* Fix prev change.Richard M. Stallman2005-10-191-1/+1
|
* (Fstring_match): Doc fix.Richard M. Stallman2005-10-191-1/+1
|
* (search_buffer): Give up BM search on case-fold-searchKenichi Handa2005-10-141-16/+24
| | | | | if one of a target character has a case-equivalence of different charset even if that target charcter is an ASCII.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+2
|
* (syms_of_search): Staticpro searchbuf.whitespace_regexp.Kim F. Storm2005-07-141-0/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (Freplace_match): Follow error conventions.Juanma Barranquero2005-06-231-1/+1
|
* (Fmatch_data): Remove evaporate option.Kim F. Storm2005-06-221-10/+8
| | | | | | (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.
* (Fset_match_data): Fix last change.Kim F. Storm2005-06-081-0/+2
|
* (Fmatch_data): Add optional RESEAT arg. Unchain markersKim F. Storm2005-06-081-18/+76
| | | | | | | | | 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.
* (boyer_moore): Fix previous change.Kenichi Handa2005-04-201-12/+17
|
* (looking_at_1): Use current_buffer->case_canon_table,Kenichi Handa2005-04-011-94/+129
| | | | | | | | | | | | 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.
* (syms_of_search) <search-spaces-regexp>: Move 'doc:'Kim F. Storm2004-11-271-5/+5
| | | | marker out of doc string.
* (Vsearch_spaces_regexp):Richard M. Stallman2004-11-201-9/+9
| | | | Renamed from Vsearch_whitespace_regexp. All uses changed.
* (struct regexp_cache): New element whitespace_regexp.Richard M. Stallman2004-11-191-3/+8
| | | | | | (syms_of_search): Initialize whitespace_regexp elements. (compile_pattern): Compare whitespace_regexp elements. (compile_pattern_1): Set whitespace_regexp elements.
* (Vsearch_whitespace_regexp): New variable.Richard M. Stallman2004-11-191-1/+18
| | | | | | (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.
* Comment change.Richard M. Stallman2004-10-271-1/+1
|
* (fast_string_match_ignore_case): New function.Kenichi Handa2004-10-181-0/+21
|
* (syms_of_search): staticproDavid Kastrup2004-07-151-0/+3
| | | | `saved_last_thing_searched'. Apparently fixes an abort condition.
* (match_limit, Fmatch_data, Fset_match_data): YAILOM.Stefan Monnier2004-06-301-7/+7
|
* (Fset_match_data): Allow buffer before end of listDavid Kastrup2004-06-291-5/+8
| | | | which can happen if set-match-data is using a pre-consed list.
* (Freplace_match): Adjust the match-data moreDavid Kastrup2004-06-231-47/+73
| | | | | | | | | | | 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.