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: Thu, 07 Sep 2006 17:15:08 -0400

        (with-temp-buffer
          (list
           (progn (modify-syntax-entry ?a " ")
                  (string-match "x[[:space:]]" "xa"))
           (progn (modify-syntax-entry ?a "w")
                  (string-match "x[[:space:]]" "xa"))))
        => (0 0)

The easiest way to fix that bug
is to make each element of the compiled regexp cache
specify the syntax table that it corresponds to,
and make modify-syntax-entry clear the cache.
That way, no change in regex.c is needed.

Could someone please do this and then ack?




reply via email to

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