comparison lisp/files.el @ 69366:91f21b9dbb76

(auto-mode-alist): Add .odt (OpenOffice's open document) files. Mention in the doc string the need to sync with auto-coding-alist.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 11 Mar 2006 11:42:58 +0000
parents b15334da7435
children 73654dd795d4 0cdee8b991e1 a802c5505156
comparison
equal deleted inserted replaced
69365:0a2d89023fde 69366:91f21b9dbb76
1870 ("\\.tar\\'" . tar-mode) 1870 ("\\.tar\\'" . tar-mode)
1871 ;; The list of archive file extensions should be in sync with 1871 ;; The list of archive file extensions should be in sync with
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)
1879 ("/Message[0-9]*\\'" . text-mode) 1879 ("/Message[0-9]*\\'" . text-mode)
1880 ("\\.zone\\'" . zone-mode) 1880 ("\\.zone\\'" . zone-mode)
1952 calling FUNCTION (if it's not nil), we delete the suffix that matched 1952 calling FUNCTION (if it's not nil), we delete the suffix that matched
1953 REGEXP and search the list again for another match. 1953 REGEXP and search the list again for another match.
1954 1954
1955 If the file name matches `inhibit-first-line-modes-regexps', 1955 If the file name matches `inhibit-first-line-modes-regexps',
1956 then `auto-mode-alist' is not processed. 1956 then `auto-mode-alist' is not processed.
1957
1958 The extensions whose FUNCTION is `archive-mode' should also
1959 appear in `auto-coding-alist' with `no-conversion' coding system.
1957 1960
1958 See also `interpreter-mode-alist', which detects executable script modes 1961 See also `interpreter-mode-alist', which detects executable script modes
1959 based on the interpreters they specify to run, 1962 based on the interpreters they specify to run,
1960 and `magic-mode-alist', which determines modes based on file contents.") 1963 and `magic-mode-alist', which determines modes based on file contents.")
1961 1964