* lisp/files.el (auto-mode-alist): Add .f03, .f08 for f90-mode.
authorGlenn Morris <rgm@gnu.org>
Wed, 29 Jun 2011 18:38:39 +0000 (14:38 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 29 Jun 2011 18:38:39 +0000 (14:38 -0400)
lisp/ChangeLog
lisp/files.el

index a7a9ebc..7ed6073 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-29  Glenn Morris  <rgm@gnu.org>
 
+       * files.el (auto-mode-alist): Add .f03, .f08 for f90-mode.
+
        * ses.el (top-level): Require cl when compiling.
        (ses-set-localvars): Fix error statement.
        Call it at compile time to silence a storm of warnings.
index 7b97b73..895cbba 100644 (file)
@@ -2268,7 +2268,12 @@ since only a single case-insensitive search through the alist is made."
      ("\\.icn\\'" . icon-mode)
      ("\\.sim\\'" . simula-mode)
      ("\\.mss\\'" . scribe-mode)
+     ;; The Fortran standard does not say anything about file extensions.
+     ;; .f90 was widely used for F90, now we seem to be trapped into
+     ;; using a different extension for each language revision.
+     ;; Anyway, the following extensions are supported by gfortran.
      ("\\.f9[05]\\'" . f90-mode)
+     ("\\.f0[38]\\'" . f90-mode)
      ("\\.indent\\.pro\\'" . fundamental-mode) ; to avoid idlwave-mode
      ("\\.\\(pro\\|PRO\\)\\'" . idlwave-mode)
      ("\\.srt\\'" . srecode-template-mode)