aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/regex.h9
-rw-r--r--src/search.c2
3 files changed, 14 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 793d8f49d61..3b28faa0750 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2
3 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4 to Emacs' syntax. Also fix the comment about set/not-set meanings
5 since Emacs syntax is not the value 0 any more.
6 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
7 since it's now part of RE_SYNTAX_EMACS.
8
12000-02-12 Dave Love <fx@gnu.org> 92000-02-12 Dave Love <fx@gnu.org>
2 10
3 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on 11 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
diff --git a/src/regex.h b/src/regex.h
index 36775d567aa..b39fc1e770e 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -32,8 +32,9 @@
32 32
33 33
34/* The following bits are used to determine the regexp syntax we 34/* The following bits are used to determine the regexp syntax we
35 recognize. The set/not-set meanings are chosen so that Emacs syntax 35 recognize. The set/not-set meanings where historically chosen so
36 remains the value 0. The bits are given in alphabetical order, and 36 that Emacs syntax had the value 0.
37 The bits are given in alphabetical order, and
37 the definitions shifted by one from the previous bit; thus, when we 38 the definitions shifted by one from the previous bit; thus, when we
38 add or remove a bit, only one other definition need change. */ 39 add or remove a bit, only one other definition need change. */
39typedef unsigned reg_syntax_t; 40typedef unsigned reg_syntax_t;
@@ -153,9 +154,9 @@ extern Lisp_Object re_match_object;
153 154
154/* Define combinations of the above bits for the standard possibilities. 155/* Define combinations of the above bits for the standard possibilities.
155 (The [[[ comments delimit what gets put into the Texinfo file, so 156 (The [[[ comments delimit what gets put into the Texinfo file, so
156 don't delete them!) */ 157 don't delete them!) */
157/* [[[begin syntaxes]]] */ 158/* [[[begin syntaxes]]] */
158#define RE_SYNTAX_EMACS 0 159#define RE_SYNTAX_EMACS (RE_CHAR_CLASSES | RE_INTERVALS)
159 160
160#define RE_SYNTAX_AWK \ 161#define RE_SYNTAX_AWK \
161 (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \ 162 (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \
diff --git a/src/search.c b/src/search.c
index 3111548af58..31c9398c761 100644
--- a/src/search.c
+++ b/src/search.c
@@ -167,7 +167,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte)
167 cp->posix = posix; 167 cp->posix = posix;
168 cp->buf.multibyte = multibyte; 168 cp->buf.multibyte = multibyte;
169 BLOCK_INPUT; 169 BLOCK_INPUT;
170 old = re_set_syntax (RE_SYNTAX_EMACS | RE_CHAR_CLASSES 170 old = re_set_syntax (RE_SYNTAX_EMACS
171 | (posix ? 0 : RE_NO_POSIX_BACKTRACKING)); 171 | (posix ? 0 : RE_NO_POSIX_BACKTRACKING));
172 val = (char *) re_compile_pattern ((char *)raw_pattern, 172 val = (char *) re_compile_pattern ((char *)raw_pattern,
173 raw_pattern_size, &cp->buf); 173 raw_pattern_size, &cp->buf);