]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Fri, 19 Nov 2004 19:47:39 +0000 (19:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 19 Nov 2004 19:47:39 +0000 (19:47 +0000)
src/regex.c

index 459c0ab26b1ccf54e1f577efe678e385b5e0f6b3..a53eac292168b6af8ad5a401d7967da24fbe9242 100644 (file)
@@ -2545,8 +2545,8 @@ regex_compile (pattern, size, syntax, bufp)
            re_char *p1 = p;
 
            /* If there's no special whitespace regexp, treat
-              spaces normally.  */
-           if (!whitespace_regexp)
+              spaces normally.  And don't try to do this recursively.  */
+           if (!whitespace_regexp || in_subpattern)
              goto normal_char;
 
            /* Peek past following spaces.  */