Commit graph

170 commits

Author SHA1 Message Date
Dave Love
e04196d361 Add :link to defgroup.
(fortran-blink-matching-if): Match ELSE statements too.
(fortran-fill-statement, fortran-fill): Bind auto-fill-function so
that filling is always done.
1999-06-01 15:54:31 +00:00
Dave Love
c4c42b2e43 (mark-fortran-subprogram): Activate mark
here...
(fortran-narrow-to-subprogram, fortran-indent-subprogram): ... not
here.
1999-02-02 19:35:29 +00:00
Dave Love
6fd849f6b0 (fortran-narrow-to-subprogram): Ensure mark
is active.
(fortran-indent-subprogram): Likewise.
1999-01-19 19:53:06 +00:00
Dave Love
aa9305c929 (fortran-window-create): Account for scroll
bar width.
1999-01-06 18:38:15 +00:00
Dave Love
645ff508dd (fortran-font-lock-keywords-1): Warp
forward-sexp in condition-case.
1998-12-11 17:40:18 +00:00
Dave Love
bd6cabcf14 (fortran-check-end-prog-re): Allow trailing
comment.
1998-12-09 16:38:37 +00:00
Dave Love
45cf60ae1a Various minor doc fixes.
(fortran-font-lock-keywords-1): Add `d' to comment-chars.
(fortran-with-subprogram-narrowing): New macro.
fortran-check-for-matching-do): Use it.
(fortran-end-do): Use fortran-check-end-prog-re.
(fortran-beginning-do, fortran-end-if, fortran-beginning-if)
(fortran-calculate-indent, fortran-calculate-indent): Likewise.
1998-11-23 15:15:09 +00:00
Dave Love
0a3a1c190a (fortran-end-prog-re): Fix typo. 1998-11-18 19:19:09 +00:00
Dave Love
823ab5da19 Fix previous change:
(fortran-end-prog-re1): Changed.
(fortran-check-end-prog-re): New function.
(beginning-of-fortran-subprogram, end-of-fortran-subprogram): Use
it.
1998-11-15 15:50:30 +00:00
Dave Love
0f1057e9e8 Fix for fontification of strings lost
somehow:
(fortran-fontify-string): New function.
(fortran-font-lock-keywords-1): Use it.
1998-11-02 19:53:05 +00:00
Dave Love
7b84ff901c (fortran-end-prog-re1): Fix the regexp. 1998-11-01 16:52:39 +00:00
Dave Love
46d4d7bffa 1998-10-14 Dave Love <fx@gnu.org>
* progmodes/fortran.el (fortran-mode-map): Change "Join
	Continuation Line" to "Join Line".
	(font-lock-keywords-1): Add "cycle", "exit".

1998-10-14  Emilio Lopes  <Emilio.Lopes@Physik.TU-Muenchen.DE>

	* progmodes/fortran.el (fortran-join-line): Use
	`delete-indentation' instead of issuing an error message if not on
	a continuation line.  Provide for joining several lines using
	prefix arg.
1998-10-14 18:09:05 +00:00
Dave Love
e58aeb3dd3 Don't call regexp-opt when deriving
font-lock patterns with keywords that aren't all literal.
1998-09-28 09:51:12 +00:00
Dave Love
d7faae566d (end-of-fortran-subprogram): Check if we're on the END statement. 1998-07-02 19:26:15 +00:00
Dave Love
8fbfe89f86 (fortran-mode-map) <menu>: Tweak the imenu
menu entry.
1998-07-02 19:12:18 +00:00
Richard M. Stallman
556dd62982 (fortran-electric-line-number): Add delete-selection property. 1998-06-06 22:43:31 +00:00
Dave Love
e9feb305f5 (fortran-mode-map): Bind M-^. Use \M-, not \e elsewhere. 1998-04-28 17:54:11 +00:00
Dave Love
37c3edc4d1 Move eval-when-compile off top level. 1998-04-15 16:25:44 +00:00
Dave Love
20ecf81c6f Don't eval-*and*-compile font-lock stuff. 1998-04-14 20:57:00 +00:00
Dave Love
2d060bebe7 (fortran-fill-paragraph): This is the one
which must return t, not:
(fortran-fill-statement):
1998-04-08 18:08:59 +00:00
Dave Love
1eb6bf70dc Use regexp-opt and eval-and-compile to
build font-lock patterns.
(fortran-mode): Define indent-region-function,
indent-line-function.
(fortran-tab-mode-string): Make buffer-local.
(fortran-comment-indent-style): Custom tweak.
(fortran-comment-region, fortran-electric-line-number,
fortran-analyze-depth, fortran-break-before-delimiters,
fortran-mode): Doc fix.
(fortran-startup-message, bug-fortran-mode): Variables
deleted.
(fortran-font-lock-keywords-1): Add "select", "case"; allow
double-quoted strings.
(fortran-mode-map): Add fill-paragraph menu item.  Don't
define \t.
(fortran-mode): Make `fill-column' buffer-local; set
`fill-paragraph-function', `indent-region-function',
`indent-line-function'.
(calculate-fortran-indent): Renamed to:
(fortran-calculate-indent):
(fortran-split-line): Simplify.
(fortran-remove-continuation): New function.
(fortran-join-line): Use it.
(fortran-end-prog-re1, fortran-end-prog-re): New variables.
(beginning-of-fortran-subprogram, end-of-fortran-subprogram):
Use them.
(fortran-blink-matching-if, fortran-blink-matching-do,
fortran-indent-new-line): Bind case-fold-search.
(fortran-end-do, fortran-beginning-do, fortran-end-if,
fortran-beginning-if): Bind case-fold-search.  Allow labelled
blocks.  Use fortran-end-prog-re.
(fortran-if-start-re): New variable.
(fortran-calculate-indent): Allow labelled blocks.  Simplify the
conds.  Make select case indentation work.
(fortran-is-in-string-p): Ignore Emacs 18 bug kluge.
(fortran-fill): Allow double quotes in check for string.
(fortran-fill-paragraph): New function.
(fortran-fill-statement): New function.
1998-04-07 18:59:44 +00:00
Richard M. Stallman
eef4375a10 (fortran-match-!-comment): store-match-data => set-match-data. 1998-03-14 04:53:12 +00:00
Dave Love
dc6579acc0 (fortran-column-ruler-fixed,
fortran-column-ruler-tab): Doc fix.
(fortran-mode-map): Bind fortran-narrow-to-subprogram.
(bug-fortran-mode): Variable deleted.
1998-03-06 19:14:13 +00:00
Simon Marshall
883212ce69 Changed font-lock-reference-face to font-lock-constant-face. 1998-02-20 14:58:27 +00:00
Dave Love
7977773d3f Various docstring and commentary fixes, including
note of current maintainer.
(fortran-mode): Use imenu-syntax-alist.
(fortran-imenu-generic-expression): Use
fortran-continuation-string, not always `+'.
(fortran-font-lock-keywords-1): Include symbol syntax as well
as word, following syntax table changes.
(fortran-imenu-generic-expression): Likewise.
(fortran-mode-map): Add a menu.
(fortran-mode-version, fortran-startup-message): Delete
misleading variables.
(fortran-mode): Don't use them.
(fortran-column-ruler-fixed, fortran-column-ruler-tab): Fix
leading \ which made `0' into null.
(fortran-join-lines): New function and key binding.
(fortran-narrow-to-subprogram): New function and key binding.
(fortran-mode-syntax-table): Make ?., ?_, ?$ symbol, not word.
1998-01-30 17:49:37 +00:00
Dave Love
240e9cda7d (fortran-imenu-generic-expression): Match
<type>*<mumble> and un-named block data, allow some continuations.
1997-11-18 23:21:34 +00:00
Karl Heuer
60db359433 (fortran-imenu-generic-expression): Doc fix.
Delete redundant setq.
1997-11-03 02:50:20 +00:00
Dave Love
9645c179af (fortran-imenu-generic-expression): New variable.
(fortran-mode): Use it.
1997-10-31 23:17:17 +00:00
Richard M. Stallman
fcad51995c Add defgroup's; use defcustom for user vars. 1997-04-12 04:15:03 +00:00
Simon Marshall
b31d859db5 use simpler fn. 1996-11-16 13:37:51 +00:00
Richard M. Stallman
4252d80c6c Comment change. 1996-08-15 21:18:04 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Simon Marshall
f408b02745 Fix to fortran-font-lock-keywords-* for new font-lock-keywords structure. 1995-10-26 13:31:26 +00:00
Simon Marshall
d232ea9da0 Tweak fortran-font-lock-keywords-1. 1995-08-10 14:04:25 +00:00
Richard M. Stallman
4254fe5845 (fortran-auto-fill-mode, fortran-do-auto-fill, fortran-fill):
Invoke auto filling only when past fill-column.
1995-08-05 01:02:10 +00:00
Richard M. Stallman
b8313955da (fortran-break-line): Fixed a bug that sometimes
deleted first character in statement field of continuation line.
1995-07-29 22:20:35 +00:00
Simon Marshall
f3d4eb7b82 Specify all Font Lock keywords in font-lock-defaults. 1995-06-26 12:35:50 +00:00
Simon Marshall
e3889f8470 Added entry' to fortran-font-lock-keywords-1' highlight of declarations. 1995-05-12 07:23:19 +00:00
Karl Heuer
a716ac738a (fortran-auto-fill-mode): Use force-mode-line-update. 1995-04-25 22:30:13 +00:00
Simon Marshall
f022dd8915 Use new fortran-match-!-comment to do !-style fontification; do rest in regexps 1995-04-24 10:51:17 +00:00
Simon Marshall
33308f7b9d Use font-lock-maximum-decoration when setting fortran-font-lock-keywords. 1995-03-02 11:20:30 +00:00
Simon Marshall
1911ebae27 Turn of syntax fontification by default.
It messes up when inside a comment done by the regexps (or v.v.).
1995-02-20 10:49:58 +00:00
Richard M. Stallman
c5af0a1823 (fortran-end-if, fortran-end-do,
fortran-beginning-if, fortran-beginning-do): New subroutines.
(fortran-blink-matching-if, fortran-blink-matching-do): Use them.
(fortran-mark-do, fortran-mark-if): New user functions.
(fortran-blink-matching-if, fortran-mode): Doc mod.
1994-12-18 21:20:07 +00:00
Simon Marshall
563f09b541 * fortran.el: (fortran-mode-syntax-table): Made `!' be a comment.
(fortran-font-lock-keywords-1, fortran-font-lock-keywords-2,
	fortran-font-lock-keywords): New variables.
	(fortran-mode): Set font-lock-defaults.
1994-10-12 08:24:50 +00:00
Richard M. Stallman
b906e00ba2 (fortran-blink-matching-do): When looking for do,
insist on nondigit after it.
1994-06-14 20:19:04 +00:00
Richard M. Stallman
348ec81171 (fortran-link-matching-do): Ignore DO statements with line numbers. 1994-05-26 20:35:55 +00:00
Richard M. Stallman
947388af39 (fortran-blink-matching-do): New function,
basically copied from fortran-blink-matching-if.
(fortran-indent-line): Call it.
(fortran-mode): Doc mod.
1994-04-07 17:14:44 +00:00
Richard M. Stallman
5a8d870ba9 (calculate-fortran-indent): Handle
Fortran 90 INTERFACE and SELECT/CASE blocks.
1994-02-01 17:25:41 +00:00
Richard M. Stallman
f93f92f169 (calculate-fortran-indent): Fixup regexp for where statements. 1993-11-18 10:03:14 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00