diff options
| author | Glenn Morris | 2010-09-23 00:40:11 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-09-23 00:40:11 -0700 |
| commit | 19543b17af7ab4fd804d782f84d4b87c3573f786 (patch) | |
| tree | 75a060c60287f408b8a7ce8ac9e6ef490113ac23 | |
| parent | 54238e6d1036e6798fd7a31a20090c17d444d323 (diff) | |
| download | emacs-19543b17af7ab4fd804d782f84d4b87c3573f786.tar.gz emacs-19543b17af7ab4fd804d782f84d4b87c3573f786.zip | |
* lisp/files.el (auto-mode-alist): Add .xa, .xw, .xsw for ld-script-mode.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5b762102dcf..f34e5035a42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-09-23 Glenn Morris <rgm@gnu.org> | 1 | 2010-09-23 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * files.el (auto-mode-alist): Add .xa, .xw, .xsw for ld-script-mode. | ||
| 4 | |||
| 3 | * files.el (auto-mode-alist): Prefer C-mode for .xs. (Bug#7071) | 5 | * files.el (auto-mode-alist): Prefer C-mode for .xs. (Bug#7071) |
| 4 | 6 | ||
| 5 | * progmodes/ld-script.el (auto-mode-alist): Move to files.el. | 7 | * progmodes/ld-script.el (auto-mode-alist): Move to files.el. |
diff --git a/lisp/files.el b/lisp/files.el index 6d205a25273..e842d5fe2a9 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2318,7 +2318,10 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode) | |||
| 2318 | ;; .xs is also used for ld scripts, but seems to be more commonly | 2318 | ;; .xs is also used for ld scripts, but seems to be more commonly |
| 2319 | ;; associated with Perl .xs files (C with Perl bindings). (Bug#7071) | 2319 | ;; associated with Perl .xs files (C with Perl bindings). (Bug#7071) |
| 2320 | ("\\.xs\\'" . c-mode) | 2320 | ("\\.xs\\'" . c-mode) |
| 2321 | ("\\.x[bdsru]?[cn]?\\'" . ld-script-mode) | 2321 | ;; Explained in binutils ld/genscripts.sh. Eg: |
| 2322 | ;; A .x script file is the default script. | ||
| 2323 | ;; A .xr script is for linking without relocation (-r flag). Etc. | ||
| 2324 | ("\\.x[abdsru]?[cnw]?\\'" . ld-script-mode) | ||
| 2322 | ;; Common Lisp ASDF package system. | 2325 | ;; Common Lisp ASDF package system. |
| 2323 | ("\\.asd\\'" . lisp-mode) | 2326 | ("\\.asd\\'" . lisp-mode) |
| 2324 | ("\\.\\(asn\\|mib\\|smi\\)\\'" . snmp-mode) | 2327 | ("\\.\\(asn\\|mib\\|smi\\)\\'" . snmp-mode) |