* lisp/woman.el (woman-translate): Case matters. (Bug#6849)
authorGlenn Morris <rgm@gnu.org>
Wed, 18 Aug 2010 02:33:13 +0000 (19:33 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 18 Aug 2010 02:33:13 +0000 (19:33 -0700)
lisp/ChangeLog
lisp/woman.el

index a0cdf2f..8d74713 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-18  Glenn Morris  <rgm@gnu.org>
+
+       * woman.el (woman-translate): Case matters.  (Bug#6849)
+
 2010-08-14  Chong Yidong  <cyd@stupidchicken.com>
 
        * simple.el (kill-region): Doc fix (Bug#6787).
index 79d6d84..eb21f01 100644 (file)
@@ -3384,7 +3384,10 @@ Format paragraphs upto TO.  Supports special chars.
   "Translate up to marker TO.  Do this last of all transformations."
   (if translations
       (let ((matches (car translations))
-           (alist (cdr translations)))
+           (alist (cdr translations))
+           ;; Translations are case-sensitive, eg ".tr ab" does not
+           ;; affect "A" (bug#6849).
+           (case-fold-search nil))
        (while (re-search-forward matches to t)
          ;; Done like this to retain text properties and
          ;; support translation of special characters: