emacs-devel
[Top][All Lists]
Advanced

[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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]