1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-06 20:49:33 +00:00

52 Commits

Author SHA1 Message Date
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
Richard M. Stallman
aa4ed68c3e (fortran-indent-new-line): Renamed from
fortran-reindent-then-newline-and-indent.
1993-06-08 05:25:19 +00:00
Richard M. Stallman
b56eb7c9d5 (fortran-mode): Replace comment-indent-hook with
comment-indent-function.

(fortran-is-in-string-p): Replaced with new version
that uses the syntax table.

(calculate-fortran-indent): Lines that have a # after
whitespace are interpreted as cpp directives and outdented back to
column zero.
1993-06-01 19:03:52 +00:00
Eric S. Raymond
e41b2db1da Added or corrected Commentary sections 1993-03-22 03:27:18 +00:00
Richard M. Stallman
d654e8ce59 (fortran-abbrev-start): Handle any kind of event.
(fortran-window-create-momentarily): Likewise.
1993-03-06 06:08:40 +00:00
Jim Blandy
4632a8938a * fortran.el (fortran-prepare-abbrev-list-buffer): Put quote in
front of first argument to `insert-abbrev-table-description'.

	* fortran.el (fortran-is-in-string-p): Fixed incorrect behaviour
	when in first statement of a buffer.
1993-02-14 14:27:24 +00:00
Jim Blandy
dbc4e1c129 JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
Jim Blandy
23029d77d1 * fortran.el: New version of version 1.30 (!) from Stephen A. Wood
<saw@hallc1.cebaf.gov>

	* fortran.el: New version (1.30) from "Stephen A. Wood"
	<saw@hallc1.cebaf.gov>
1992-11-20 17:22:24 +00:00
Jim Blandy
b8ec3aa307 * bytecomp.el: Declare unread-command-char an obsolete variable.
* vip.el (vip-escape-to-emacs, vip-prefix-arg-value,
	vip-prefix-arg-com): Use unread-command-event instead of
	unread-command-char; respect its new semantics.
	* fortran.el (fortran-abbrev-start, fortran-window-create-momentarily):
	Same.
1992-11-16 01:34:30 +00:00
Richard M. Stallman
b8cbdf43f9 version 1.28.8
(fortran-indent-to-column): Make turning of lines that begin with
`fortran-continuation-string' into properly formated continuation
lines work for fortran TAB mode.

Cleaned up some doc strings.

(fortran-abbrev-help, fortran-prepare-abbrev-list-buffer): Use
`insert-abbrev-table-description' and make buffer in abbrevs-mode.

Many changes since version 1.28.3.   Added auto-fill-mode, support
for some Fortran 90 statements.  Adjust comments to conform to new
gnu conventions.

(fortran-mode): Fix `comment-line-start-skip' by changing \\1 to
\\2 and include cpp statements in matching.  Changes for auto fill.

(fortran-auto-fill-mode, fortran-do-auto-fill,
fortran-break-line): New functions to implement auto fill.

(fortran-indent-line, fortran-reindent-then-newline-and-indent):
Added auto fill support.

(find-comment-start-skip, is-in-fortran-string-p): New functions.

(fortran-electric-line-number): Works better in overwrite mode.

(fortran-indent-comment, fortran-indent-line,
fortran-indent-to-column):  Use find-comment-start-skip instead of
searching for `comment-start-skip'.

(fortran-mode, calculate-fortran-indent): Added indentation
for fortran 90 statements.

(fortran-next-statement, fortran-previous-statement): Bug fixes.

(fortran-mode, calculate-fortran-indent,
fortran-setup-tab-format-style, fortran-setup-fixed-format-style):
`fortran-comment-line-column' meaning changed.  Now defaults to 0.
1992-11-05 20:25:10 +00:00
Richard M. Stallman
c6cf2c1e4f (fortran-window-create): Use screen-width, not frame-width. 1992-10-27 20:19:00 +00:00
Richard M. Stallman
1c3c9e649f (fortran-prepare-abbrev-list-buffer): Fix typo. 1992-10-27 20:11:05 +00:00
Richard M. Stallman
e80f214737 (fortran-tab-mode): Add defvar.
(fortran-analyze-file-format): Bind i.
(fortran-tab-mode-string): Add defvar.
(fortran-tab-mode): Use `arg' as variable, not as function.
(fortran-prepare-abbrev-list-buffer): New function.
(fortran-abbrev-help): Call that.
1992-10-27 10:21:22 +00:00
Christopher Zaborsky
fe66851582 Doc fix. 1992-10-25 19:44:06 +00:00
Eric S. Raymond
9750e079dd entered into RCS 1992-07-22 04:22:30 +00:00
Eric S. Raymond
fd7fa35a05 *** empty log message *** 1992-07-17 08:15:29 +00:00
Eric S. Raymond
e516799970 *** empty log message *** 1992-07-16 21:47:34 +00:00
Jim Blandy
f98955eaaa *** empty log message *** 1992-07-15 02:24:58 +00:00
Eric S. Raymond
1a06eabd17 *** empty log message *** 1992-05-30 23:12:08 +00:00