Commit graph

80 commits

Author SHA1 Message Date
Dave Love
7aabd23e30 (fortran-mode): Locally set
normal-auto-fill-function.
(fortran-auto-fill-mode): Just alias to auto-fill-mode.
(fortran-mode-map): Adjust auto-fill menu entry.
2000-09-22 17:16:57 +00:00
Dave Love
a8189dfe47 (fortran-imenu-generic-expression): Change definition layout.
(fortran-mode-menu): Reinstate customize entries.
2000-07-13 17:23:28 +00:00
Dave Love
315aa1de5c Don't require easymenu. Use repeat counts in various regexps.
(fortran-mode-syntax-table): Defvar directly.
(fortran-font-lock-keywords-1, fortran-font-lock-keywords-2)
(fortran-font-lock-keywords-3, fortran-font-lock-syntactic-keywords):
Use defvar, not defconst.
(fortran-mode-map): Change locals in `let'.  Use `fortran-auto-fill'.
(fortran-mode): Set fortran-comment-line-start-skip,
fortran-comment-line-start-skip, dabbrev-case-fold-search.
(fortran-comment-indent): Use defsubst.
(fortran-indent-comment, fortran-indent-to-column, fortran-break-line):
Use fortran-comment-indent, not fortran-comment-indent-function.
(fortran-comment-region, fortran-electric-line-number): Simplify.
(fortran-auto-fill): New function.
(fortran-do-auto-fill): Deleted.
(fortran-find-comment-start-skip): Check for non-null
comment-start-skip.
(fortran-auto-fill-mode, fortran-fill-statement): Use
fortran-auto-fill.
(fortran-fill): Use fortran-auto-fill.  Check for null
comment-start-skip.  Simplify final clause and use end-of-line finally.
2000-07-11 17:56:56 +00:00
Dave Love
68ca306cb5 (fortran-comment-line-start): Define as
"C".
(fortran-comment-line-start-skip): Don't match cpp stuff.
(font-lock-keywords): Add * to comment-chars.  Grok cpp stuff.
(fortran-mode-map): Remove over-eager custom-menu-create for now.
(fortran-mode): Don't set fortran-comment-line-start-skip,
fortran-comment-line-start here.  Set comment-start,
add-log-current-defun.
(fortran-fill-paragraph): Adjust to try to DTRT with cpp stuff.
(fortran-current-defun): New function.
2000-03-09 23:02:51 +00:00
Dave Love
26ef1c879e (fortran-mode): Use beginning-of-defun-function, end-of-defun-function. 2000-01-24 22:44:09 +00:00
Dave Love
7a7db8e569 (fortran-mode-map): Don't bind M-C-a,
M-C-e, M-C-h, C-j, C-xnd, TAB.
(fortran-mode): Set beginning-of-defun, end-of-defun.
(fortran-column-ruler): Simplify.
(fortran-mark-subprogram, fortran-narrow-to-subprogram): Deleted.
(fortran-with-subprogram-narrowing): Likewise.
(fortran-indent-subprogram): Call mark-defun.
(fortran-check-for-matching-do): Change narrowing.
2000-01-05 17:23:27 +00:00
Dave Love
3b4613a485 (fortran-strip-sqeuence-nos): New command. 1999-11-30 19:38:27 +00:00
Dave Love
7dae727d72 (fortran-comment-line-start): Renamed from comment-line-start.
(fortran-comment-line-start-skip): Renamed from
comment-line-start-skip.
(fortran-mode-map): Use renamed functions.  Add manual and custom
entries to menu.
(fortran-mode-hook): Customize.
(fortran-comment-indent-function): Renamed from fortran-comment-hook.
(delete-horizontal-regexp): Function deleted.
(fortran-electric-line-number): Simplified.
(fortran-beginning-of-subprogram): Renamed from
beginning-of-fortran-subprogram.
(fortran-end-of-subprogram): Renamed from end-of-fortran-subprogram.
(fortran-mark-subprogram): Renamed from mark-fortran-subprogram.
(fortran-previous-statement, fortran-next-statement): Simplified.
(fortran-blink-match): New function.
(fortran-blink-matching-if, fortran-blink-matching-do): Use it.
(fortran-indent-to-column): Don't use delete-horizontal-regexp.
(fortran-find-comment-start-skip, fortran-is-in-string-p): Use
line-end-position.
(fortran-fill): No longer interactive.  Simplified.
(fortran-break-line): Simplified.
(fortran-analyze-file-format): Use char-after, not looking-at.
1999-11-23 20:19:47 +00:00
Dave Love
5aca2648a2 (fortran-indent-new-line): Make it an alias
for reindent-then-newline-and-indent.
1999-08-03 11:13:23 +00:00
Dave Love
f687a8793d (fortran-mode-syntax-table): Change \' to \'
syntax.
(fortran-fontify-string, fortran-match-!-commen): Deleted.
(fortran-font-lock-syntactic-keywords): New variable.
(fortran-mode): Use it.
(fortran-font-lock-keywords-1): Don't do comments.
(beginning-of-fortran-subprogram, end-of-fortran-subprogram):
Save match data.
1999-07-24 13:11:43 +00:00
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