summaryrefslogtreecommitdiff
path: root/src/search.c
Commit message (Collapse)AuthorAgeFilesLines
* (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
|
* (search_buffer): Avoid boolean/integer mixing that confuses some compilers.Karl Heuer1994-03-141-1/+4
|
* (Fre_search_forward, Fre_search_backward): Doc fix.Karl Heuer1994-03-101-7/+7
|
* (skip_chars): Treat `-' as alias for space, if syntaxp.Richard M. Stallman1994-03-041-0/+3
|
* (scan_buffer): New arg ALLOW_QUIT.Richard M. Stallman1994-02-031-4/+8
| | | | (find_next_newline): Pass new arg.
* (set_search_regs): New subroutine.Richard M. Stallman1994-01-101-45/+41
| | | | | (search_buffer): Use set_search_regs. Record beginning and end after matching null string.
* (Fskip_chars_backward, Fskip_chars_forward): Doc fix.Richard M. Stallman1993-11-101-3/+3
|
* (skip_chars): Finish reenabling checks for buffer bounds.Richard M. Stallman1993-11-101-11/+5
| | | | Use XINT, not XFASTINT, when testing.
* (Freplace_match): Fix argument names to match doc string.Brian Fox1993-10-251-10/+10
| | | | (Fmatch_beginning): Fix doc string to match argument name.
* (skip_chars): Fixed typo.Brian Fox1993-10-081-2/+4
|
* (skip_chars): Reinstate check for end of buffer, ignoring crypticBrian Fox1993-10-071-2/+7
| | | | comment.
* (Freplace_match): Call Finsert_and_inherit.Richard M. Stallman1993-09-141-1/+1
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (compile_pattern): Cast result of re_compile_pattern.Richard M. Stallman1993-08-141-3/+2
|
* (search_buffer): If n is 0, just return POS.Richard M. Stallman1993-07-271-1/+5
|
* * search.c (Flooking_at, Fstring_match, fast_string_match,Jim Blandy1993-06-101-10/+0
| | | | | | search_buffer): Don't block input while calling searching and matching functions. These functions may not call malloc under Emacs anyway, and we need to be able to check for C-g.
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-1/+1
|