From faf2a1741dfebf7446a37376e26aeb0533a3cac7 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 29 Jun 2011 14:38:39 -0400 Subject: [PATCH] * lisp/files.el (auto-mode-alist): Add .f03, .f08 for f90-mode. --- lisp/ChangeLog | 2 ++ lisp/files.el | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a7a9ebc6cc1..7ed6073339d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2011-06-29 Glenn Morris + * 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. diff --git a/lisp/files.el b/lisp/files.el index 7b97b730111..895cbba0ede 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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) -- 2.39.2