of an anchor at the beginning of a shy-group.
+2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
+
+ * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
+ of an anchor at the beginning of a shy-group.
+
2000-05-25 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (handle_invisible_prop): Don't try to skip over
/* After a subexpression? */
(*prev == '(' && (syntax & RE_NO_BK_PARENS || prev_prev_backslash))
/* After an alternative? */
- || (*prev == '|' && (syntax & RE_NO_BK_VBAR || prev_prev_backslash));
+ || (*prev == '|' && (syntax & RE_NO_BK_VBAR || prev_prev_backslash))
+ /* After a shy subexpression? */
+ || ((syntax & RE_SHY_GROUPS) && prev - 2 >= pattern
+ && prev[-1] == '?' && prev[-2] == '('
+ && (syntax & RE_NO_BK_PARENS
+ || (prev - 3 >= pattern && prev[-3] == '\\')));
}