diff options
| author | Richard M. Stallman | 2006-09-16 15:28:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-09-16 15:28:47 +0000 |
| commit | 1208f11ada3e4b56feb4669e8ac608a0600f3cb1 (patch) | |
| tree | 0d7888e5e7486051ed24014de09fb52145b613e7 | |
| parent | 5c823193ae0d707c4716fdd87643b707dcaa53cc (diff) | |
| download | emacs-1208f11ada3e4b56feb4669e8ac608a0600f3cb1.tar.gz emacs-1208f11ada3e4b56feb4669e8ac608a0600f3cb1.zip | |
(re_compile_pattern): Set gl_state.current_syntax_table.
| -rw-r--r-- | src/regex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c index 846c87041b1..763b490c906 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -6197,6 +6197,10 @@ re_compile_pattern (pattern, length, bufp) | |||
| 6197 | { | 6197 | { |
| 6198 | reg_errcode_t ret; | 6198 | reg_errcode_t ret; |
| 6199 | 6199 | ||
| 6200 | #ifdef emacs | ||
| 6201 | gl_state.current_syntax_table = current_buffer->syntax_table; | ||
| 6202 | #endif | ||
| 6203 | |||
| 6200 | /* GNU code is written to assume at least RE_NREGS registers will be set | 6204 | /* GNU code is written to assume at least RE_NREGS registers will be set |
| 6201 | (and at least one extra will be -1). */ | 6205 | (and at least one extra will be -1). */ |
| 6202 | bufp->regs_allocated = REGS_UNALLOCATED; | 6206 | bufp->regs_allocated = REGS_UNALLOCATED; |