[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Regexp compiler, problem with character classes
From: |
Richard Stallman |
Subject: |
Re: [BUG] Regexp compiler, problem with character classes |
Date: |
Wed, 13 Sep 2006 15:25:15 -0400 |
Yes, but that is too late. What matters is which syntax is seen by the
regexp *compiler* (this is why there is a problem in the first place)
when it transforms [[:space:]] into [\t\f etc]. This has already
happened before re_search_2 comes into play.
I see. Thanks.
Does this fix that problem?
*** regex.c 22 Feb 2006 13:56:52 -0500 1.211
--- regex.c 13 Sep 2006 15:22:57 -0400
***************
*** 6197,6202 ****
--- 6197,6206 ----
{
reg_errcode_t ret;
+ #ifdef emacs
+ gl_state.current_syntax_table = current_buffer->syntax_table;
+ #endif
+
/* GNU code is written to assume at least RE_NREGS registers will be set
(and at least one extra will be -1). */
bufp->regs_allocated = REGS_UNALLOCATED;
- [BUG] Regexp compiler, problem with character classes, Johan Bockgård, 2006/09/06
- Re: [BUG] Regexp compiler, problem with character classes, Richard Stallman, 2006/09/07
- Re: [BUG] Regexp compiler, problem with character classes, Richard Stallman, 2006/09/07
- Re: [BUG] Regexp compiler, problem with character classes, Chong Yidong, 2006/09/14
- Re: [BUG] Regexp compiler, problem with character classes, Johan Bockgård, 2006/09/18
- Re: [BUG] Regexp compiler, problem with character classes, Chong Yidong, 2006/09/18
- Re: [BUG] Regexp compiler, problem with character classes, Stefan Monnier, 2006/09/18
- Re: [BUG] Regexp compiler, problem with character classes, Johan Bockgård, 2006/09/18
Re: [BUG] Regexp compiler, problem with character classes, Richard Stallman, 2006/09/14