aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/files.el20
-rw-r--r--lisp/image-mode.el12
-rw-r--r--lisp/progmodes/compile.el3
-rw-r--r--lisp/progmodes/gud.el7
-rw-r--r--lisp/progmodes/mixal-mode.el5
-rw-r--r--lisp/textmodes/bibtex-style.el5
-rw-r--r--lisp/textmodes/css-mode.el1
-rw-r--r--lisp/textmodes/dns-mode.el8
9 files changed, 31 insertions, 38 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5261f3f30d2..2a24d434796 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12010-09-24 Glenn Morris <rgm@gnu.org>
2
3 * image-mode.el, progmodes/compile.el, progmodes/gud.el:
4 * progmodes/mixal-mode.el, textmodes/bibtex-style.el:
5 * textmodes/css-mode.el, textmodes/dns-mode.el:
6 Move autoloaded auto-mode-alist entries to files.el.
7 * files.el (auto-mode-alist): Move entries here.
8
12010-09-23 Glenn Morris <rgm@gnu.org> 92010-09-23 Glenn Morris <rgm@gnu.org>
2 10
3 * isearch.el (isearch-lazy-highlight-cleanup) 11 * isearch.el (isearch-lazy-highlight-cleanup)
diff --git a/lisp/files.el b/lisp/files.el
index e842d5fe2a9..24190a51529 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2211,6 +2211,15 @@ since only a single case-insensitive search through the alist is made."
2211 (cons (purecopy (car elt)) (cdr elt))) 2211 (cons (purecopy (car elt)) (cdr elt)))
2212 `(;; do this first, so that .html.pl is Polish html, not Perl 2212 `(;; do this first, so that .html.pl is Polish html, not Perl
2213 ("\\.s?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) 2213 ("\\.s?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode)
2214 ("\\.svgz?\\'" . image-mode)
2215 ("\\.svgz?\\'" . xml-mode)
2216 ("\\.x[bp]m\\'" . image-mode)
2217 ("\\.x[bp]m\\'" . c-mode)
2218 ("\\.p[bpgn]m\\'" . image-mode)
2219 ("\\.tiff?\\'" . image-mode)
2220 ("\\.gif\\'" . image-mode)
2221 ("\\.png\\'" . image-mode)
2222 ("\\.jpe?g\\'" . image-mode)
2214 ("\\.te?xt\\'" . text-mode) 2223 ("\\.te?xt\\'" . text-mode)
2215 ("\\.[tT]e[xX]\\'" . tex-mode) 2224 ("\\.[tT]e[xX]\\'" . tex-mode)
2216 ("\\.ins\\'" . tex-mode) ;Installation files for TeX packages. 2225 ("\\.ins\\'" . tex-mode) ;Installation files for TeX packages.
@@ -2246,6 +2255,14 @@ since only a single case-insensitive search through the alist is made."
2246 ("\\.te?xi\\'" . texinfo-mode) 2255 ("\\.te?xi\\'" . texinfo-mode)
2247 ("\\.[sS]\\'" . asm-mode) 2256 ("\\.[sS]\\'" . asm-mode)
2248 ("\\.asm\\'" . asm-mode) 2257 ("\\.asm\\'" . asm-mode)
2258 ("\\.css\\'" . css-mode)
2259 ("\\.mixal\\'" . mixal-mode)
2260 ("\\.gcov\\'" . compilation-mode)
2261 ;; Besides .gdbinit, gdb documents other names to be usable for init
2262 ;; files, cross-debuggers can use something like
2263 ;; .PROCESSORNAME-gdbinit so that the host and target gdbinit files
2264 ;; don't interfere with each other.
2265 ("/\\.[a-z0-9-]*gdbinit" . gdb-script-mode)
2249 ("[cC]hange\\.?[lL]og?\\'" . change-log-mode) 2266 ("[cC]hange\\.?[lL]og?\\'" . change-log-mode)
2250 ("[cC]hange[lL]og[-.][0-9]+\\'" . change-log-mode) 2267 ("[cC]hange[lL]og[-.][0-9]+\\'" . change-log-mode)
2251 ("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode) 2268 ("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode)
@@ -2262,6 +2279,7 @@ since only a single case-insensitive search through the alist is made."
2262 ("\\.cl[so]\\'" . latex-mode) ;LaTeX 2e class option 2279 ("\\.cl[so]\\'" . latex-mode) ;LaTeX 2e class option
2263 ("\\.bbl\\'" . latex-mode) 2280 ("\\.bbl\\'" . latex-mode)
2264 ("\\.bib\\'" . bibtex-mode) 2281 ("\\.bib\\'" . bibtex-mode)
2282 ("\\.bst\\'" . bibtex-style-mode)
2265 ("\\.sql\\'" . sql-mode) 2283 ("\\.sql\\'" . sql-mode)
2266 ("\\.m[4c]\\'" . m4-mode) 2284 ("\\.m[4c]\\'" . m4-mode)
2267 ("\\.mf\\'" . metafont-mode) 2285 ("\\.mf\\'" . metafont-mode)
@@ -2322,6 +2340,8 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
2322 ;; A .x script file is the default script. 2340 ;; A .x script file is the default script.
2323 ;; A .xr script is for linking without relocation (-r flag). Etc. 2341 ;; A .xr script is for linking without relocation (-r flag). Etc.
2324 ("\\.x[abdsru]?[cnw]?\\'" . ld-script-mode) 2342 ("\\.x[abdsru]?[cnw]?\\'" . ld-script-mode)
2343 ("\\.zone\\'" . dns-mode)
2344 ("\\.soa\\'" . dns-mode)
2325 ;; Common Lisp ASDF package system. 2345 ;; Common Lisp ASDF package system.
2326 ("\\.asd\\'" . lisp-mode) 2346 ("\\.asd\\'" . lisp-mode)
2327 ("\\.\\(asn\\|mib\\|smi\\)\\'" . snmp-mode) 2347 ("\\.\\(asn\\|mib\\|smi\\)\\'" . snmp-mode)
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 6e67847857f..5f43f390c2a 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -36,18 +36,6 @@
36(require 'image) 36(require 'image)
37(eval-when-compile (require 'cl)) 37(eval-when-compile (require 'cl))
38 38
39;;;###autoload (push (cons (purecopy "\\.jpe?g\\'") 'image-mode) auto-mode-alist)
40;;;###autoload (push (cons (purecopy "\\.png\\'") 'image-mode) auto-mode-alist)
41;;;###autoload (push (cons (purecopy "\\.gif\\'") 'image-mode) auto-mode-alist)
42;;;###autoload (push (cons (purecopy "\\.tiff?\\'") 'image-mode) auto-mode-alist)
43;;;###autoload (push (cons (purecopy "\\.p[bpgn]m\\'") 'image-mode) auto-mode-alist)
44
45;;;###autoload (push (cons (purecopy "\\.x[bp]m\\'") 'c-mode) auto-mode-alist)
46;;;###autoload (push (cons (purecopy "\\.x[bp]m\\'") 'image-mode) auto-mode-alist)
47
48;;;###autoload (push (cons (purecopy "\\.svgz?\\'") 'xml-mode) auto-mode-alist)
49;;;###autoload (push (cons (purecopy "\\.svgz?\\'") 'image-mode) auto-mode-alist)
50
51;;; Image mode window-info management. 39;;; Image mode window-info management.
52 40
53(defvar image-mode-winprops-alist t) 41(defvar image-mode-winprops-alist t)
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 7f0732ecffc..a335f3dd427 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2425,9 +2425,6 @@ The file-structure looks like this:
2425 (or compilation-auto-jump-to-first-error 2425 (or compilation-auto-jump-to-first-error
2426 (eq compilation-scroll-output 'first-error)))) 2426 (eq compilation-scroll-output 'first-error))))
2427 2427
2428;;;###autoload
2429(add-to-list 'auto-mode-alist (cons (purecopy "\\.gcov\\'") 'compilation-mode))
2430
2431(provide 'compile) 2428(provide 'compile)
2432 2429
2433;; arch-tag: 12465727-7382-4f72-b234-79855a00dd8c 2430;; arch-tag: 12465727-7382-4f72-b234-79855a00dd8c
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 4c1471e39ec..8c35a13ac53 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -3218,13 +3218,6 @@ Treats actions as defuns."
3218 (goto-char (point-max))) 3218 (goto-char (point-max)))
3219 t) 3219 t)
3220 3220
3221;; Besides .gdbinit, gdb documents other names to be usable for init
3222;; files, cross-debuggers can use something like
3223;; .PROCESSORNAME-gdbinit so that the host and target gdbinit files
3224;; don't interfere with each other.
3225;;;###autoload
3226(add-to-list 'auto-mode-alist (cons (purecopy "/\\.[a-z0-9-]*gdbinit") 'gdb-script-mode))
3227
3228;;;###autoload 3221;;;###autoload
3229(define-derived-mode gdb-script-mode nil "GDB-Script" 3222(define-derived-mode gdb-script-mode nil "GDB-Script"
3230 "Major mode for editing GDB scripts." 3223 "Major mode for editing GDB scripts."
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el
index 94af563d88f..f2a7aa045e4 100644
--- a/lisp/progmodes/mixal-mode.el
+++ b/lisp/progmodes/mixal-mode.el
@@ -125,7 +125,7 @@ value.")
125(defvar mixal-operation-codes-alist 125(defvar mixal-operation-codes-alist
126 ;; FIXME: the codes FADD, FSUB, FMUL, FDIV, JRAD, and FCMP were in 126 ;; FIXME: the codes FADD, FSUB, FMUL, FDIV, JRAD, and FCMP were in
127 ;; mixal-operation-codes but not here. They should probably be added here. 127 ;; mixal-operation-codes but not here. They should probably be added here.
128 ;; 128 ;;
129 ;; We used to define this with a backquote and subexps like ,(+ 8 3) for 129 ;; We used to define this with a backquote and subexps like ,(+ 8 3) for
130 ;; better clarity, but the resulting code was too big and caused the 130 ;; better clarity, but the resulting code was too big and caused the
131 ;; byte-compiler to eat up all the stack space. Even using 131 ;; byte-compiler to eat up all the stack space. Even using
@@ -1123,9 +1123,6 @@ Assumes that file has been compiled with debugging support."
1123 (set (make-local-variable 'require-final-newline) 1123 (set (make-local-variable 'require-final-newline)
1124 mode-require-final-newline)) 1124 mode-require-final-newline))
1125 1125
1126;;;###autoload
1127(add-to-list 'auto-mode-alist '("\\.mixal\\'" . mixal-mode))
1128
1129(provide 'mixal-mode) 1126(provide 'mixal-mode)
1130 1127
1131;; arch-tag: be7c128a-bf61-4951-a90e-9398267ce3f3 1128;; arch-tag: be7c128a-bf61-4951-a90e-9398267ce3f3
diff --git a/lisp/textmodes/bibtex-style.el b/lisp/textmodes/bibtex-style.el
index 688d6fe0bc1..3e84c37af9e 100644
--- a/lisp/textmodes/bibtex-style.el
+++ b/lisp/textmodes/bibtex-style.el
@@ -1,6 +1,7 @@
1;;; bibtex-style.el --- Major mode for BibTeX Style files 1;;; bibtex-style.el --- Major mode for BibTeX Style files
2 2
3;; Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3;; Copyright (C) 2005, 2007, 2008, 2009, 2010
4;; Free Software Foundation, Inc.
4 5
5;; Author: Stefan Monnier <monnier@iro.umontreal.ca> 6;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
6;; Keywords: tex 7;; Keywords: tex
@@ -63,8 +64,6 @@
63 ("\\<\\(FUNCTION\\|MACRO\\)\\s-+{\\([^}\n]+\\)}" 64 ("\\<\\(FUNCTION\\|MACRO\\)\\s-+{\\([^}\n]+\\)}"
64 (2 font-lock-function-name-face)))) 65 (2 font-lock-function-name-face))))
65 66
66;;;###autoload (add-to-list 'auto-mode-alist (cons (purecopy "\\.bst\\'") 'bibtex-style-mode))
67
68;;;###autoload 67;;;###autoload
69(define-derived-mode bibtex-style-mode nil "BibStyle" 68(define-derived-mode bibtex-style-mode nil "BibStyle"
70 "Major mode for editing BibTeX style files." 69 "Major mode for editing BibTeX style files."
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index bfa98e9c36f..759778eb025 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -264,7 +264,6 @@
264(defvar css-font-lock-defaults 264(defvar css-font-lock-defaults
265 '(css-font-lock-keywords nil t)) 265 '(css-font-lock-keywords nil t))
266 266
267;;;###autoload (add-to-list 'auto-mode-alist (cons (purecopy "\\.css\\'") 'css-mode))
268;;;###autoload 267;;;###autoload
269(define-derived-mode css-mode fundamental-mode "CSS" 268(define-derived-mode css-mode fundamental-mode "CSS"
270 "Major mode to edit Cascading Style Sheets." 269 "Major mode to edit Cascading Style Sheets."
diff --git a/lisp/textmodes/dns-mode.el b/lisp/textmodes/dns-mode.el
index 45ebc07d8bb..ed84b5be914 100644
--- a/lisp/textmodes/dns-mode.el
+++ b/lisp/textmodes/dns-mode.el
@@ -28,11 +28,6 @@
28;; C-c C-s Increment SOA serial. 28;; C-c C-s Increment SOA serial.
29;; Understands YYYYMMDDNN, Unix time, and serial number formats, 29;; Understands YYYYMMDDNN, Unix time, and serial number formats,
30;; and complains if it fail to find SOA serial. 30;; and complains if it fail to find SOA serial.
31;;
32;; Put something similar to the following in your ~/.emacs to use this file:
33;;
34;; (load "~/path/to/dns-mode.el")
35;; (setq auto-mode-alist (cons '("\\.soa\\'" . dns-mode) auto-mode-alist))
36 31
37;;; References: 32;;; References:
38 33
@@ -151,7 +146,6 @@ Turning on DNS mode runs `dns-mode-hook'."
151 (easy-menu-add dns-mode-menu dns-mode-map)) 146 (easy-menu-add dns-mode-menu dns-mode-map))
152 147
153;;;###autoload (defalias 'zone-mode 'dns-mode) 148;;;###autoload (defalias 'zone-mode 'dns-mode)
154;;;###autoload (add-to-list 'auto-mode-alist (purecopy '("\\.zone\\'" . zone-mode)))
155 149
156;; Tools. 150;; Tools.
157 151
@@ -223,8 +217,6 @@ This function is run from `before-save-hook'."
223 ;; We return nil in case this is used in write-contents-functions. 217 ;; We return nil in case this is used in write-contents-functions.
224 nil))) 218 nil)))
225 219
226;;;###autoload(add-to-list 'auto-mode-alist (purecopy '("\\.soa\\'" . dns-mode)))
227
228(provide 'dns-mode) 220(provide 'dns-mode)
229 221
230;;; dns-mode.el ends here 222;;; dns-mode.el ends here