aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.c
diff options
context:
space:
mode:
authorMiles Bader2006-10-15 02:54:13 +0000
committerMiles Bader2006-10-15 02:54:13 +0000
commitbb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6 (patch)
tree8c4ae9640abcb8f33326e96e661f711417e5307c /src/regex.c
parent5be4d5336db8be316100a5b80ee8c5e428438b9e (diff)
parent92edaeeda5c362acf2c7e7f72b3666ab7673699a (diff)
downloademacs-bb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6.tar.gz
emacs-bb9c4b4f8b3dcd1b5fc96d2d0275cc532832fbd6.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 460-475) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 145-152) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-118
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index 09776848220..2eca58c23e8 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2589,6 +2589,7 @@ regex_compile (pattern, size, syntax, bufp)
2589 bufp->syntax = syntax; 2589 bufp->syntax = syntax;
2590 bufp->fastmap_accurate = 0; 2590 bufp->fastmap_accurate = 0;
2591 bufp->not_bol = bufp->not_eol = 0; 2591 bufp->not_bol = bufp->not_eol = 0;
2592 bufp->used_syntax = 0;
2592 2593
2593 /* Set `used' to zero, so that if we return an error, the pattern 2594 /* Set `used' to zero, so that if we return an error, the pattern
2594 printer (for debugging) will think there's no pattern. We reset it 2595 printer (for debugging) will think there's no pattern. We reset it
@@ -3014,6 +3015,14 @@ regex_compile (pattern, size, syntax, bufp)
3014 } 3015 }
3015 } 3016 }
3016 3017
3018 /* In most cases the matching rule for char classes
3019 only uses the syntax table for multibyte chars,
3020 so that the content of the syntax-table it is not
3021 hardcoded in the range_table. SPACE and WORD are
3022 the two exceptions. */
3023 if ((1 << cc) & ((1 << RECC_SPACE) | (1 << RECC_WORD)))
3024 bufp->used_syntax = 1;
3025
3017 /* Repeat the loop. */ 3026 /* Repeat the loop. */
3018 continue; 3027 continue;
3019 } 3028 }