summaryrefslogtreecommitdiff
path: root/src/search.c
Commit message (Collapse)AuthorAgeFilesLines
* (looking_at_1): Set re_match_object.Richard M. Stallman1997-04-151-297/+8
| | | | | | | | | | | | (string_match_1): Set re_match_object. (fast_string_match): Set re_match_object. (Fskip_chars_forward): Move to syntax.c. (Fskip_chars_backward): Move to syntax.c. (Fskip_syntax_forward): Move to syntax.c. (Fskip_syntax_backward): Move to syntax.c. (skip_chars): Move to syntax.c. (search_buffer): Set re_match_object. (syms_of_search): Move initialization of skip* to syntax.c.
* (skip_chars): Make `c' an unsigned int.Richard M. Stallman1997-04-021-1/+1
|
* (Freplace_match): Give error ifRichard M. Stallman1997-03-221-2/+8
| | | | NEWTEXT uses backslash in an invalid way.
* (skip_chars): If enable-multibyte-characters is nil,Kenichi Handa1997-02-271-69/+101
| | | | don't handle multibyte characters.
* Fix previous change.Karl Heuer1997-02-231-4/+15
|
* Include category.h and charset.h.Karl Heuer1997-02-201-31/+153
| | | | | | | | | | (compile_pattern_1): Handle new argument `multibyte'. (compile_pattern): Handle the flag `enable-multibyte-characters'. (Vascii_downcase_table): Declare external. (fast_string_match_ignore_case): New function. (skip_chars): Handle multibyte characters. (trivial_regexp_p): Handle regular expression "\\Cc" and "\\CC" for category.
* (skip_chars): Optimize by not calling SET_PT in the loop.Richard M. Stallman1997-01-191-15/+13
|
* (Fmatch_data): Doc fix.Richard M. Stallman1996-12-191-1/+1
|
* (Fmatch_data): New args INTEGERS and REUSE.Richard M. Stallman1996-12-181-5/+35
|
* (REGEXP_CACHE_SIZE): Increase to 20.Richard M. Stallman1996-09-221-3/+5
| | | | (compile_pattern): Check for size match before calling Fstring_equal.
* (search_buffer): Use EMACS_UINT.Richard M. Stallman1996-09-101-2/+2
|
* Change all references from point to PT.Karl Heuer1996-09-011-19/+19
|
* (Fmatch_data): If no matching done yet, return Qnil.Karl Heuer1996-07-141-1/+1
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (Fmatch_end, Fregexp_quote): Harmonize arguments with documentation.Erik Naggum1996-01-091-16/+20
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* (string_match_1): Pass the POSIX arg to compile_pattern.Richard M. Stallman1995-10-251-1/+1
|
* (compile_pattern_1, compile_pattern, search_buffer):Richard M. Stallman1995-10-181-8/+10
| | | | Case tables are char-tables now.
* (Freplace_match): New arg SUBEXP.Richard M. Stallman1995-08-081-26/+42
|
* Update GPL to version 2.Karl Heuer1995-06-151-1/+1
|
* (Freplace_match): Do the right thing with backslash.Karl Heuer1995-06-091-2/+15
|
* (Freplace_match): Fix check for valid reg in string replace.Karl Heuer1995-06-091-1/+1
|
* (Freplace_match): Calls to upcase_initials and upcase_initials_region changedKarl Heuer1995-06-061-2/+2
| | | | to Fupcase_initials and Fupcase_initials_region for consistency.
* (trivial_regexp_p): = is special after \.Karl Heuer1995-06-051-1/+2
|
* (search_buffer): Cast p_limit to EMACS_INT not int.Richard M. Stallman1995-05-041-1/+1
|
* (search_buffer): Avoid casting trt to int.Richard M. Stallman1995-04-071-9/+9
| | | | Use EMACS_INT for comparing pointers.
* (Flooking_at, Fposix_looking_at): Change arg name.Richard M. Stallman1995-04-061-8/+8
|
* (set_search_regs): Really set search_regs.start and .end.Richard M. Stallman1994-12-251-4/+4
| | | | (save_search_regs): Set them to 0 here.
* (compile_pattern): Call re_set_registers here.Richard M. Stallman1994-12-111-7/+5
| | | | | And no need to BLOCK_INPUT for that. (compile_pattern_1): Instead of here.
* (search_regs_saved): Delete initializer.Richard M. Stallman1994-12-071-1/+1
|
* (save_search_regs): Add declaration.Richard M. Stallman1994-11-221-0/+1
|
* Added code for automatically saving and restoring the match dataFrancesco Potortì1994-11-211-0/+52
| | | | when a filter or sentinel tries to modify it.
* (struct regexp_cache): New field `posix'.Richard M. Stallman1994-11-191-35/+154
| | | | | | | | | | | | | | (compile_pattern_1): New arg `posix'. Controls the syntax spec for parsing; also record it in the cache. (compile_pattern): New arg `posix'. (looking_at_1, string_match_1, fast_string_match): Pass 0 for new arg. (search_buffer): New arg `posix'. Now static. (search_command): New arg `posix'. All callers changed. (Fposix_search_forward, Fposix_search_backward): New functions. (string_match_1, looking_at_1): New subroutines broken out. (Fstring_match, Flooking_at): Use them. (Fposix_string_match, Fposix_looking_at): New functions. (syms_of_search): defsubr new functions.
* (searchbufs): New variable, replaces searchbuf and last_regexp andKarl Heuer1994-10-191-52/+90
| | | | | | | | | | | | | | | search_fastmap. (syms_of_search): Initialize it. (searchbuf_head): New variable. (compile_pattern_1): Renamed from compile_pattern and made static. Copy the regexp string in case the caller modifies it in place later. (compile_pattern): New code, uses a cached entry if one is available. The pattern buffer is now a return value instead of an arg. (set_search_regs): Set num_regs directly, since there's no active pattern buffer to pass to re_set_registers. (Fstore_match_data): Likewise. (Flooking_at): Use the new calling convention for compile_pattern. (Fstring_match, fast_string_match, search_buffer): Likewise.
* (scan_buffer): After temporarily turning immediate_quit off, turn itJim Blandy1994-10-111-2/+3
| | | | | | | back on by setting it to allow_quit, never 1. (find_before_next_newline): Declare the arguments' types explicitly; don't let them default to int.
* * search.c: #include "region-cache.h".Jim Blandy1994-10-081-72/+227
| | | | | | | | | | | | (max, min): Make these functions, not macros; we'd like to pass them arguments that would be bad to evaluate more than once. (newline_cache_on_off): New function. (scan_buffer): New argument END. Call newline_cache_on_off. If this buffer's newline cache is enabled, consult it to see if we need to scan a region for newlines, and store information in the cache after doing so. (find_next_newline): Pass new arg to scan_buffer. (find_before_next_newline): New function.
* (skip_chars, Fmatch_data, Fstore_match_data): Don't use XFASTINT as an lvalue.Karl Heuer1994-10-041-6/+6
|
* (Flooking_at, skip_chars, search_buffer, set_search_regs, Fstore_match_data):Karl Heuer1994-10-041-7/+6
| | | | Use new accessor macros instead of calling XSET directly.
* (Fmatch_data, Fstore_match_data): Use type test macros.Karl Heuer1994-09-271-4/+3
|
* (Freplace_match): New 4th arg OBJECT can specify string to replace in.Richard M. Stallman1994-09-231-10/+103
|
* (trivial_regexp_p): New function.Karl Heuer1994-09-201-26/+55
| | | | (search_buffer): Don't depend on internal format of re_pattern_buffer.
* (Fstring_match): Fix sign error.Karl Heuer1994-08-231-1/+1
|
* (Freplace_match): Treat caseless initial like a lowercase initial.Richard M. Stallman1994-08-111-5/+12
|
* (find_next_newline_no_quit): New function.Richard M. Stallman1994-06-141-0/+7
|
* (Freplace_match): Be sure not to treat non-digit like digit.Richard M. Stallman1994-06-111-1/+1
|
* (Freplace_match): Improve capitalization heuristics.Karl Heuer1994-05-251-4/+8
|
* (Freplace_match): Don't capitalize unless all matched words are capitalized.Richard M. Stallman1994-05-251-1/+4
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (Freplace_match): Don't capitalize unless all matched words are capitalized.Karl Heuer1994-04-051-6/+6
|
* (Freplace_match): Doc fix.Richard M. Stallman1994-03-271-1/+6
|