# HG changeset patch # User Kenichi Handa # Date 1142475694 0 # Node ID 112d44d51c3ed6deb0d11d7766efa6d640080361 # Parent 0937e89a24cd2273b6fee1a7d2e94297b2d6cf78 (auto-coding-regexp-alist): Add entries for Unicode BOM. diff -r 0937e89a24cd -r 112d44d51c3e lisp/international/mule.el --- a/lisp/international/mule.el Thu Mar 16 02:11:08 2006 +0000 +++ b/lisp/international/mule.el Thu Mar 16 02:21:34 2006 +0000 @@ -1586,7 +1586,10 @@ (symbol :tag "Coding system")))) (defcustom auto-coding-regexp-alist - '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion)) + '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion) + ("\\`\xFE\xFF" . utf-16be-with-signature) + ("\\`\xFF\xFE" . utf-16le-with-signature) + ("\\`\xEF\xBB\xBF" . utf-8)) "Alist of patterns vs corresponding coding systems. Each element looks like (REGEXP . CODING-SYSTEM). A file whose first bytes match REGEXP is decoded by CODING-SYSTEM on reading.