]> git.eshelyaron.com Git - emacs.git/commitdiff
(compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
authorRichard M. Stallman <rms@gnu.org>
Sun, 29 Aug 1999 20:40:00 +0000 (20:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 29 Aug 1999 20:40:00 +0000 (20:40 +0000)
src/search.c

index 4b135a6a84a8e62831bd5bcafef70fdb10d4aeda..da4f635582f7dc05fa0df43e779e314808190c0d 100644 (file)
@@ -170,7 +170,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte)
   cp->posix = posix;
   cp->buf.multibyte = multibyte;
   BLOCK_INPUT;
-  old = re_set_syntax (RE_SYNTAX_EMACS
+  old = re_set_syntax (RE_SYNTAX_EMACS | RE_CHAR_CLASSES
                       | (posix ? 0 : RE_NO_POSIX_BACKTRACKING));
   val = (char *) re_compile_pattern ((char *)raw_pattern,
                                     raw_pattern_size, &cp->buf);