Commit graph

162 commits

Author SHA1 Message Date
Glenn Morris
1a341882a5 (f90-xemacs-flag, f90-xemacs-menu, f90-menu-bar-menu, f90-change-case-menu)
(f90-font-lock-on, f90-font-lock-off, f90-font-lock-menu):  Deleted.  Use
easy-menu-define instead.
(f90-mode): Use easy-menu-add.
No longer (require 'imenu) when compiling.
(f90-mark-subprogram, f90-indent-region, f90-fill-region)
(f90-abbrev-start): Use fboundp.
2002-08-24 00:50:42 +00:00
Glenn Morris
0ee7f06810 eval-when-compile a few defvars to quieten the byte-compiler.
(f90-xemacs-flag): Wrap in eval-and-compile.
(f90-font-lock-keywords): Doc fix.
(f90-mode-abbrev-table): Use the 6th (system-flag) argument of
define-abbrev if available, but work without it as well.
(f90-mark-subprogram-overlay): Variable deleted.
(f90-mark-subprogram): No need to be silent about push-mark.
Get rid of the silly overlay bit.
(f90-abbrev-start): unread-command-event is obsolete in XEmacs too.
2002-08-21 21:26:07 +00:00
Glenn Morris
eb9f0295d0 (f90-font-lock-keywords-1): Simplify `type' value a little.
(f90-type-def-re): Simplify value a little.
2002-08-03 19:01:50 +00:00
Glenn Morris
6fb453e1ea (f90-font-lock-keywords-1): Fix highlighting of `type' forms.
(f90-font-lock-keywords-2): Fix highlighting of `implicit type(foo)' forms.
(f90-type-def-re): Fix value.
2002-08-03 16:57:43 +00:00
Glenn Morris
d595e95d3e (f90-do-auto-fill): Make it respect `comment-auto-fill-only-comments'. 2002-06-23 15:45:48 +00:00
Glenn Morris
e7272eceaa (f90-type-def-re): Fix value.
(f90-looking-at-type-like): Adapt for new value of `f90-type-def-re'.
2002-06-19 22:41:53 +00:00
Glenn Morris
76bccf35b4 (f90-previous-block, f90-next-block): New names (and slightly changed
behaviour) for the functions f90-previous-block-start, f90-next-block-end.
(f90-beginning-of-subprogram, f90-end-of-subprogram): Simplify.
2002-05-26 19:58:31 +00:00
Glenn Morris
6f1d50da83 (f90-end-of-subprogram): Remove the final (forward-line 1).
(f90-end-of-block, f90-beginning-of-block, f90-next-block-end,
f90-previous-block-start): New navigation commands.
2002-05-24 22:00:21 +00:00
Glenn Morris
b32a3d9930 (f90-looking-at-where-or-forall): Oops, defsubst, not defun. 2002-05-20 21:52:07 +00:00
Glenn Morris
02f85cbae5 (f90-change-keywords): Doc fix. 2002-05-19 23:23:22 +00:00
Glenn Morris
f14ca2504b (f90-equal-symbols, f90-looking-at-do, f90-looking-at-select-case)
(f90-looking-at-if-then): Remove lets.
(f90-looking-at-where-or-forall): Handle if split over lines.
2002-05-19 23:19:42 +00:00
Glenn Morris
89fa1ef503 (f90-get-present-comment-type): Fix bug introduced in version 1.46.
(f90-comment-indent): Doc fix.
(f90-break-line): Simplify it a bit.
2002-05-19 22:28:15 +00:00
Glenn Morris
6dd52cafbd (f90-match-end): Simplify it a bit. 2002-05-19 21:47:46 +00:00
Glenn Morris
4f9fc70285 (f90-mode-abbrev-table): Initialize in the defvar. 2002-05-18 22:42:23 +00:00
Glenn Morris
ba69d9faac (f90-mode-abbrev-table): Initialize with define-abbrev-table, if needed. 2002-05-18 22:18:58 +00:00
Glenn Morris
70186f7ff2 (f90-mode-syntax-table, f90-mode-map): Do the initialization in the defvar.
(f90-font-lock-on, f90-font-lock-off): Add 'menu-alias property.
(f90-font-lock-1, f90-font-lock-2, f90-font-lock-3, f90-font-lock-4): Move
the doc strings.
(f90-menu-bar-menu): New internal variable to hold the top-level menu.
(f90-change-case-menu, f90-font-lock-menu): Minor code changes.
2002-05-18 21:52:58 +00:00
Glenn Morris
e3f5ce5624 Again with the whitespace.
(f90-line-continued, f90-get-present-comment-type, f90-looking-at-if-then,
f90-indent-line, f90-indent-new-line, f90-indent-region,
f90-indent-subprogram, f90-do-auto-fill, f90-join-lines, f90-fill-region,
f90-match-end, f90-insert-end, f90-change-keywords): Minor code tidying.
2002-05-01 23:38:05 +00:00
Glenn Morris
ec2f376f6a Yet more doc string, commment and whitespace changes.
(f90-imenu-flag): New name for internal variable f90-imenu.
(f90-blocks-re, f90-program-block-re, f90-end-if-re, f90-no-break-re): Use
regexp-opt.
(f90-end-type-re): Add closing "\\>".
(f90-indent-region): Correctly indent comments embedded in continued lines.
(f90-indent-new-line): Make it indent the current line, as it should.
2002-05-01 15:29:30 +00:00
Glenn Morris
6965846537 Whitespace changes. 2002-04-29 23:24:28 +00:00
Glenn Morris
d14e6bbe1b Add/change doc strings for many in-line functions.
(f90-indent-line-no, f90-update-line): Minor code changes.
2002-04-29 22:55:10 +00:00
Glenn Morris
88b966631f (f90-font-lock-keywords-1, f90-font-lock-keywords-2): Fix highlighting of
various "type" forms.
2002-04-28 23:38:51 +00:00
Glenn Morris
5c2a80ad5c Minor reorganization of some code. 2002-04-28 22:28:38 +00:00
Glenn Morris
82b4fc4ab4 (f90-mark-subprogram-overlay): New internal variable.
(f90-mark-subprogram): Use it to highlight the subprogram with an overlay.
2002-04-28 22:15:51 +00:00
Glenn Morris
1bb3ae5c0b (f90-xemacs-flag): New variable to put the test for Emacs flavor in one
place.
2002-04-28 22:09:55 +00:00
Glenn Morris
87ee235927 General tidy-up of commentary and some doc strings. 2002-04-25 21:55:39 +00:00
Glenn Morris
48548fd50f (f90-startup-message): Obsolete variable removed. 2002-04-24 22:13:45 +00:00
Glenn Morris
6734e165bf (f90-get-beg-of-line): Removed and replaced with line-beginning-position.
(f90-get-end-of-line): Removed and replaced with line-end-position.
(f90-current-indentation): current-column was superfluous, removed.
(f90-match-piece): Removed and replaced with match-string.
(f90-get-present-comment-type): Use match-string rather than
buffer-substring.
(f90-match-end): Use line-beginning-position, line-end-position rather than
beginning-of-line, end-of-line.
2002-04-24 22:06:03 +00:00
Eli Zaretskii
b125e64388 Update maintainer.
(f90-line-continued): Recognize blank/comment lines embedded in
continuation lines.
(f90-looking-at-program-block-start): No extra indentation after
function or subroutine keyword appears in single quotes.
2002-04-19 12:22:13 +00:00
Stefan Monnier
9a8ba072ba (f90-indent-subprogram): Braino (missing arg). 2002-04-02 17:29:58 +00:00
Stefan Monnier
84021009d5 (f90-keywords-re, f90-keywords-level-3-re)
(f90-procedures-re, f90-operators-re, f90-hpf-keywords-re): Use regexp-opt.
(f90-keywords-re, f90-keywords-level-3-re): Add `pure' and `elemental'.
(f90-procedures-re): Add `null' and `cpu_time' from F95.
(f90-font-lock-keywords-1): Minor reorganization so we don't need
`override' any more.
(f90-font-lock-keywords-3): Use `keep' rather than `override'.
(f90-indent-subprogram): Use indent-region.
(f90-break-line): Use indent-according-to-mode.
2002-04-02 17:28:26 +00:00
Pavel Janík
5cc39d76da (f90-mode-abbrev-table): Mark all the predefined abbrevs as "system"
abbrevs.
2001-12-30 22:15:49 +00:00
Richard M. Stallman
f00d330457 (f90-break-line): Use (newline 1) to insert newlines.
(bug-f90-mode): Variable deleted.
2001-12-07 03:33:39 +00:00
Dave Love
1355ba0cd1 (f90-mode): Remove startup message. 2001-02-01 16:02:07 +00:00
Gerd Moellmann
88ea9ddca1 Change author's mail address. 2000-05-15 14:49:40 +00:00
Dave Love
d2d15846dd (f90): Put custom group under `languages', not
`fortran'.
(f90-mode-hook): Customize.
(f90-mode): Set add-log-current-defun-function.
(f90-current-defun): New function.
2000-03-16 22:05:51 +00:00
Gerd Moellmann
0cf5bb509d (f90-abbrev-start): Use eq' instead of ='. 1999-11-26 13:53:02 +00:00
Dave Love
029ec30f69 (f90-mode-syntax-table): Change backslash to escape, not charquote. 1999-07-29 22:07:59 +00:00
Dave Love
45d1e4d442 1999-01-05 Dave Love <fx@gnu.org>
* progmodes/f90.el (f90-mode): Make imenu-case-fold-search
	buffer-local.

1998-01-05  Torbjorn Einarsson	<T.Einarsson@clab.ericsson.se>

	* f90.el: Change of regular expressions for type to correct
	high-lighting and identation. Some small fixes for compatibility
	with XEmacs.
1999-01-05 14:20:30 +00:00
Dave Love
2c0b59e3eb (f90-comment-indent): Don't attempt to indent trailing comment as
code.
(f90-looking-at-if-then): Don't lose with scan-lists on bad syntax.
1998-05-25 11:25:48 +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
c0b08eb017 Use imenu-case-fold-search. 1997-12-12 17:10:08 +00:00
Richard M. Stallman
d9d41ec60a (f90-break-before-delimiters): Fix customize type. 1997-09-09 02:58:06 +00:00
Karl Heuer
24c868149e (f90-looking-at-where-or-forall): Recognize where/forall
only if it's a block, not a one-line statement.
1997-06-10 18:04:01 +00:00
Richard M. Stallman
fcad51995c Add defgroup's; use defcustom for user vars. 1997-04-12 04:15:03 +00:00
Richard M. Stallman
7cae52cffc (f90-no-block-limit): Fixed bug for indentation of
elsewhere and elseif.
(f90-looking-at-where-or-forall): Now allows for labelled forall
and where statements.
(f90-font-lock-keywords-2): New highlighting for labelled where
and forall. Fixed small bug with else highlighting.
(f90-fill-region): Moved indentation to f90-break-line.
(f90-break-line): Will now always indent the second line.
(f90-indent-line): Simpler test for auto-fill.
(f90-auto-fill-mode): Removed.
(f90-electric-insert): Added for possibility of auto-filling of
lines without spaces, as well as early updating of line.
(f90-mode-map): Added bindings of operators to f90-electric-insert.
(f90-do-auto-fill): Now also updates line (changes case).
1996-10-15 02:58:27 +00:00
Erik Naggum
b974df0a9f new version from Torbj�Einarsson. 1996-08-14 01:59:41 +00:00
Karl Heuer
4337739c5d Delete the hilit19 support--it doesn't work.
(f90-face-*, f90-auto-hilit19, f90-hilit-patterns): Vars deleted.
(f90-mode, f90-update-line): Delete the hilit19 support code.
1996-05-17 21:02:41 +00:00
Richard M. Stallman
f885e95c76 (f90-hilit-patterns): Avoid using undefined variables. 1996-05-11 00:29:46 +00:00
Karl Heuer
c80718ccb9 (f90-keywords-re): Added operator and result.
(f90-keywords-level-3-re): Added operator and result.
(f90-match-end, f90-looking-at-program-block-start): Fixed bug
with false matching in comments/strings.
(f90-looking-at-program-block-start, f90-imenu-generic-expression):
Added knowledge of pure and extrinsic subroutines.
(f90-abbrev-start): Fixed bug using next-command-event.
(f90-keywords-level-3-re): Added keyword "nullify".
(f90-else-like-re): Fixed indentation of case() statements.
(f90-font-lock-keywords-2): Changed highlighting of case() statements.
1996-04-19 20:07:47 +00:00
Karl Heuer
2a74bdc1b5 (f90-indent-subprogram): Fix message. 1996-02-09 23:19:02 +00:00