From: Yuanle Song Date: Sun, 22 May 2011 19:46:47 +0000 (-0400) Subject: Make rng-xsd-check-pattern case sensitive (Bug#8516). X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~208 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92a9cc651ac716a90f87bc1e256c16ed1fa220cc;p=emacs.git Make rng-xsd-check-pattern case sensitive (Bug#8516). * nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive matching. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60d94457182..506348601ee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-05-22 Yuanle Song + + * nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive + matching (Bug#8516). + 2011-01-22 Jari Aalto * vc/vc-dir.el (vc-default-dir-printer): Give edited tag a diff --git a/lisp/nxml/rng-xsd.el b/lisp/nxml/rng-xsd.el index 266f8daac9e..b481039fdab 100644 --- a/lisp/nxml/rng-xsd.el +++ b/lisp/nxml/rng-xsd.el @@ -238,7 +238,7 @@ must be equal." obj))) (defun rng-xsd-check-pattern (str regexp convert &rest args) - (and (string-match regexp str) + (and (let ((case-fold-search nil)) (string-match regexp str)) (apply convert (cons str args))))