(rx-not): Bind case-fold-search to nil.

This commit is contained in:
Eli Zaretskii 2004-02-16 12:12:02 +00:00
parent f800daf646
commit 062a9fce99
2 changed files with 6 additions and 1 deletions

View file

@ -345,7 +345,8 @@ matches anything."
(defun rx-not (form)
"Parse and produce code from FORM. FORM is `(not ...)'."
(rx-check form)
(let ((result (rx-to-string (cadr form) 'no-group)))
(let ((result (rx-to-string (cadr form) 'no-group))
case-fold-search)
(cond ((string-match "\\`\\[^" result)
(if (= (length result) 4)
(substring result 2 3)