# HG changeset patch # User Eli Zaretskii # Date 1142077378 0 # Node ID 91f21b9dbb76addda43e8055cb8fe892f8164149 # Parent 0a2d89023fdee821432162deaac8e4a4335e5d4f (auto-mode-alist): Add .odt (OpenOffice's open document) files. Mention in the doc string the need to sync with auto-coding-alist. diff -r 0a2d89023fde -r 91f21b9dbb76 lisp/files.el --- a/lisp/files.el Sat Mar 11 02:04:08 2006 +0000 +++ b/lisp/files.el Sat Mar 11 11:42:58 2006 +0000 @@ -1872,7 +1872,7 @@ ;; `auto-coding-alist' with `no-conversion' coding system. ("\\.\\(arc\\|zip\\|lzh\\|zoo\\|[jew]ar\\|xpi\\)\\'" . archive-mode) ("\\.\\(ARC\\|ZIP\\|LZH\\|ZOO\\|[JEW]AR\\|XPI\\)\\'" . archive-mode) - ("\\.sx[dmicw]\\'" . archive-mode) ; OpenOffice.org + ("\\.\\(sx[dmicw]\\|odt\\)\\'" . archive-mode) ; OpenOffice.org ;; Mailer puts message to be edited in ;; /tmp/Re.... or Message ("\\`/tmp/Re" . text-mode) @@ -1955,6 +1955,9 @@ If the file name matches `inhibit-first-line-modes-regexps', then `auto-mode-alist' is not processed. +The extensions whose FUNCTION is `archive-mode' should also +appear in `auto-coding-alist' with `no-conversion' coding system. + See also `interpreter-mode-alist', which detects executable script modes based on the interpreters they specify to run, and `magic-mode-alist', which determines modes based on file contents.")