# HG changeset patch # User Glenn Morris # Date 1050439423 0 # Node ID 418cea060d922f0d618295037c3a874aafc4de98 # Parent 2538410bdfeae9fd11481f40a72c75d3346a6f32 (fortran-tab-mode-minor-mode-string): Delete this variable, introduced in previous change. (fortran-tab-mode-string): Change default value. (fortran-mode): Use mode-line-process (rather than minor-mode-alist) to indicate tab format code. (fortran-analyze-file-format): Return fortran-tab-mode-default if no match. diff -r 2538410bdfea -r 418cea060d92 lisp/progmodes/fortran.el --- a/lisp/progmodes/fortran.el Tue Apr 15 19:22:31 2003 +0000 +++ b/lisp/progmodes/fortran.el Tue Apr 15 20:43:43 2003 +0000 @@ -83,22 +83,11 @@ :type 'boolean :group 'fortran-indent) -(defcustom fortran-tab-mode-string " TAB" - "*String to appear in mode line in TAB format buffers. -Should have a leading space." +(defcustom fortran-tab-mode-string "/t" + "*String to appear in mode line in TAB format buffers." :type 'string :group 'fortran-indent) -(defvar fortran-tab-mode-minor-mode-string nil - "Internal variable used for `minor-mode-alist' in Fortran mode. -Do not change the value of this variable - edit `fortran-tab-mode-string' -instead.") -(make-variable-buffer-local 'fortran-tab-mode-minor-mode-string) - -(add-to-list 'minor-mode-alist - '(fortran-tab-mode-minor-mode-string - (indent-tabs-mode fortran-tab-mode-minor-mode-string))) - (defcustom fortran-do-indent 3 "*Extra indentation applied to DO blocks." :type 'integer @@ -677,8 +666,8 @@ (set (make-local-variable 'comment-indent-function) 'fortran-comment-indent) (set (make-local-variable 'abbrev-all-caps) t) (set (make-local-variable 'normal-auto-fill-function) 'fortran-auto-fill) - (setq fortran-tab-mode-minor-mode-string fortran-tab-mode-string) (set (make-local-variable 'indent-tabs-mode) (fortran-analyze-file-format)) + (setq mode-line-process '(indent-tabs-mode fortran-tab-mode-string)) (set (make-local-variable 'fill-column) 72) (set (make-local-variable 'fill-paragraph-function) 'fortran-fill-paragraph) (set (make-local-variable 'font-lock-defaults) @@ -1761,8 +1750,7 @@ (cond ((eq (char-after) ?\t) t) ((looking-at " \\{6\\}") nil) - (fortran-tab-mode-default t) - (t nil))))) + (t fortran-tab-mode-default))))) (defun fortran-fill-paragraph (&optional justify) "Fill surrounding comment block as paragraphs, else fill statement.