* lisp/files.el (auto-mode-alist): Add .xa, .xw, .xsw for ld-script-mode.
authorGlenn Morris <rgm@gnu.org>
Thu, 23 Sep 2010 07:40:11 +0000 (00:40 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 23 Sep 2010 07:40:11 +0000 (00:40 -0700)
lisp/ChangeLog
lisp/files.el

index 5b76210..f34e503 100644 (file)
@@ -1,5 +1,7 @@
 2010-09-23  Glenn Morris  <rgm@gnu.org>
 
+       * files.el (auto-mode-alist): Add .xa, .xw, .xsw for ld-script-mode.
+
        * files.el (auto-mode-alist): Prefer C-mode for .xs.  (Bug#7071)
 
        * progmodes/ld-script.el (auto-mode-alist): Move to files.el.
index 6d205a2..e842d5f 100644 (file)
@@ -2318,7 +2318,10 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
      ;; .xs is also used for ld scripts, but seems to be more commonly
      ;; associated with Perl .xs files (C with Perl bindings).  (Bug#7071)
      ("\\.xs\\'" . c-mode)
-     ("\\.x[bdsru]?[cn]?\\'" . ld-script-mode)
+     ;; Explained in binutils ld/genscripts.sh.  Eg:
+     ;; A .x script file is the default script.
+     ;; A .xr script is for linking without relocation (-r flag).  Etc.
+     ("\\.x[abdsru]?[cnw]?\\'" . ld-script-mode)
      ;; Common Lisp ASDF package system.
      ("\\.asd\\'" . lisp-mode)
      ("\\.\\(asn\\|mib\\|smi\\)\\'" . snmp-mode)