]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-auto-coding): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Fri, 2 Jun 2006 06:34:41 +0000 (06:34 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 2 Jun 2006 06:34:41 +0000 (06:34 +0000)
lisp/ChangeLog
lisp/international/mule.el

index 9014741b08a11a6c839961afa054f9c7f6b075a7..dd2670f403edcc4ab1881f21c45482f34159f80d 100644 (file)
@@ -1,3 +1,13 @@
+2006-06-02  Kenichi Handa  <handa@m17n.org>
+
+       * files.el (hack-local-variables-prop-line): Ignore `char-trans'
+       as well as `coding'.
+       (hack-local-variables): Likewise.
+
+       * international/mule.el (enable-character-translation): Put
+       permanent-local and safe-local-variable properties.
+       (find-auto-coding): Handle char-trans: tag.
+
 2006-06-02  Juri Linkov  <juri@jurta.org>
 
        * international/mule.el (sgml-html-meta-auto-coding-function):
index e2e9ba623988a20f8eb0d8b942fed4ceefba66e8..d9242f7cb5d2300a2f1b9c42b6c9544e86a49d20 100644 (file)
@@ -1707,6 +1707,7 @@ If nothing is specified, the return value is nil."
          (goto-char tail-start)
          (setq tail-found (or (search-forward "coding:" tail-end t)
                               (search-forward "unibyte:" tail-end t)
+                              (search-forward "char-trans:" tail-end t)
                               (search-forward "enable-character-translation:"
                                               tail-end t))))
 
@@ -1761,7 +1762,7 @@ If nothing is specified, the return value is nil."
                     (re-char-trans
                      (concat
                       "[\r\n]" prefix
-                      "[ \t]*enable-character-translation[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*"
+                      "[ \t]*\\(enable-character-translation\\|char-trans\\)[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*"
                       suffix "[\r\n]"))
                     (re-end
                      (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix
@@ -1779,7 +1780,7 @@ If nothing is specified, the return value is nil."
                  (setq coding-system (intern (match-string 1))))
                (when (and (not char-trans)
                           (re-search-forward re-char-trans tail-end t))
-                 (setq char-trans (match-string 1))))))
+                 (setq char-trans (match-string 2))))))
        (if coding-system
            ;; If the coding-system name ends with "!", remove it and
            ;; set char-trans to "nil".