aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-03-11 11:42:58 +0000
committerEli Zaretskii2006-03-11 11:42:58 +0000
commitd50404042199ace4ac03dfce6912825d56aa570c (patch)
treef0d071a5d0177731440750f9d3d14f3827271834
parent20c65d08634a204bcf34b6ba29336f8223d15395 (diff)
downloademacs-d50404042199ace4ac03dfce6912825d56aa570c.tar.gz
emacs-d50404042199ace4ac03dfce6912825d56aa570c.zip
(auto-mode-alist): Add .odt (OpenOffice's open document) files. Mention in
the doc string the need to sync with auto-coding-alist.
-rw-r--r--lisp/files.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 91a434dd33f..c093a5222b2 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1872,7 +1872,7 @@ in that case, this function acts as if `enable-local-variables' were t."
1872 ;; `auto-coding-alist' with `no-conversion' coding system. 1872 ;; `auto-coding-alist' with `no-conversion' coding system.
1873 ("\\.\\(arc\\|zip\\|lzh\\|zoo\\|[jew]ar\\|xpi\\)\\'" . archive-mode) 1873 ("\\.\\(arc\\|zip\\|lzh\\|zoo\\|[jew]ar\\|xpi\\)\\'" . archive-mode)
1874 ("\\.\\(ARC\\|ZIP\\|LZH\\|ZOO\\|[JEW]AR\\|XPI\\)\\'" . archive-mode) 1874 ("\\.\\(ARC\\|ZIP\\|LZH\\|ZOO\\|[JEW]AR\\|XPI\\)\\'" . archive-mode)
1875 ("\\.sx[dmicw]\\'" . archive-mode) ; OpenOffice.org 1875 ("\\.\\(sx[dmicw]\\|odt\\)\\'" . archive-mode) ; OpenOffice.org
1876 ;; Mailer puts message to be edited in 1876 ;; Mailer puts message to be edited in
1877 ;; /tmp/Re.... or Message 1877 ;; /tmp/Re.... or Message
1878 ("\\`/tmp/Re" . text-mode) 1878 ("\\`/tmp/Re" . text-mode)
@@ -1955,6 +1955,9 @@ REGEXP and search the list again for another match.
1955If the file name matches `inhibit-first-line-modes-regexps', 1955If the file name matches `inhibit-first-line-modes-regexps',
1956then `auto-mode-alist' is not processed. 1956then `auto-mode-alist' is not processed.
1957 1957
1958The extensions whose FUNCTION is `archive-mode' should also
1959appear in `auto-coding-alist' with `no-conversion' coding system.
1960
1958See also `interpreter-mode-alist', which detects executable script modes 1961See also `interpreter-mode-alist', which detects executable script modes
1959based on the interpreters they specify to run, 1962based on the interpreters they specify to run,
1960and `magic-mode-alist', which determines modes based on file contents.") 1963and `magic-mode-alist', which determines modes based on file contents.")