emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101559: * lisp/files.el (auto-mode-a


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101559: * lisp/files.el (auto-mode-alist): Add .xa, .xw, .xsw for ld-script-mode.
Date: Thu, 23 Sep 2010 00:40:11 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101559
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2010-09-23 00:40:11 -0700
message:
  * lisp/files.el (auto-mode-alist): Add .xa, .xw, .xsw for ld-script-mode.
modified:
  lisp/ChangeLog
  lisp/files.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-09-23 07:34:40 +0000
+++ b/lisp/ChangeLog    2010-09-23 07:40:11 +0000
@@ -1,5 +1,7 @@
 2010-09-23  Glenn Morris  <address@hidden>
 
+       * 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.

=== modified file 'lisp/files.el'
--- a/lisp/files.el     2010-09-23 07:34:40 +0000
+++ b/lisp/files.el     2010-09-23 07:40:11 +0000
@@ -2318,7 +2318,10 @@
      ;; .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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]