|
From: | Johan Bockgård |
Subject: | Re: [BUG] Regexp compiler, problem with character classes |
Date: | Mon, 18 Sep 2006 10:43:09 +0200 |
User-agent: | Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Chong Yidong <address@hidden> writes: > Richard Stallman <address@hidden> writes: > >> 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? > > Does this patch look OK? [...] The "make each element of the compiled regexp cache specify the syntax table that it corresponds to" part is still needed. Here's an example: $ emacs -Q Evaluate in *scratch*: (list (string-match "x[[:space:]]" "x\n") (with-temp-buffer (string-match "x[[:space:]]" "x\n"))) => (nil nil) Expected: (nil 0) -- Johan Bockgård
[Prev in Thread] | Current Thread | [Next in Thread] |