summaryrefslogtreecommitdiff
path: root/src/regex.h
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2000-02-14 17:00:16 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2000-02-14 17:00:16 +0000
commitfb4a568d44416da2db75525d8403228db0237145 (patch)
tree9bf2a6c6410f7d16556d8fc6ad99b90e48e0547e /src/regex.h
parente5dd1155a49d27ddbfd5810f59f1c38c54e821fe (diff)
downloademacs-fb4a568d44416da2db75525d8403228db0237145.tar.gz
* regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
to Emacs' syntax. Also fix the comment about set/not-set meanings since Emacs syntax is not the value 0 any more. * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax since it's now part of RE_SYNTAX_EMACS.
Diffstat (limited to 'src/regex.h')
-rw-r--r--src/regex.h9
1 files changed, 5 insertions, 4 deletions
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 @@
/* The following bits are used to determine the regexp syntax we
- recognize. The set/not-set meanings are chosen so that Emacs syntax
- remains the value 0. The bits are given in alphabetical order, and
+ recognize. The set/not-set meanings where historically chosen so
+ that Emacs syntax had the value 0.
+ The bits are given in alphabetical order, and
the definitions shifted by one from the previous bit; thus, when we
add or remove a bit, only one other definition need change. */
typedef unsigned reg_syntax_t;
@@ -153,9 +154,9 @@ extern Lisp_Object re_match_object;
/* Define combinations of the above bits for the standard possibilities.
(The [[[ comments delimit what gets put into the Texinfo file, so
- don't delete them!) */
+ don't delete them!) */
/* [[[begin syntaxes]]] */
-#define RE_SYNTAX_EMACS 0
+#define RE_SYNTAX_EMACS (RE_CHAR_CLASSES | RE_INTERVALS)
#define RE_SYNTAX_AWK \
(RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \