diff options
| author | Yuanle Song | 2011-05-22 15:46:47 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-22 15:46:47 -0400 |
| commit | 92a9cc651ac716a90f87bc1e256c16ed1fa220cc (patch) | |
| tree | b362cd8740a34a4120e531f27309897268ef0e1f | |
| parent | f3d4e0a47d33eb0c7061784b5705a9145740cd69 (diff) | |
| download | emacs-92a9cc651ac716a90f87bc1e256c16ed1fa220cc.tar.gz emacs-92a9cc651ac716a90f87bc1e256c16ed1fa220cc.zip | |
Make rng-xsd-check-pattern case sensitive (Bug#8516).
* nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive
matching.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/nxml/rng-xsd.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60d94457182..506348601ee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-22 Yuanle Song <sylecn@gmail.com> | ||
| 2 | |||
| 3 | * nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive | ||
| 4 | matching (Bug#8516). | ||
| 5 | |||
| 1 | 2011-01-22 Jari Aalto <jari.aalto@cante.net> | 6 | 2011-01-22 Jari Aalto <jari.aalto@cante.net> |
| 2 | 7 | ||
| 3 | * vc/vc-dir.el (vc-default-dir-printer): Give edited tag a | 8 | * 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." | |||
| 238 | obj))) | 238 | obj))) |
| 239 | 239 | ||
| 240 | (defun rng-xsd-check-pattern (str regexp convert &rest args) | 240 | (defun rng-xsd-check-pattern (str regexp convert &rest args) |
| 241 | (and (string-match regexp str) | 241 | (and (let ((case-fold-search nil)) (string-match regexp str)) |
| 242 | (apply convert (cons str args)))) | 242 | (apply convert (cons str args)))) |
| 243 | 243 | ||
| 244 | 244 | ||