1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00
Commit Graph

97 Commits

Author SHA1 Message Date
Glenn Morris
a245ece58a (fortran-current-defun): Use save-excursion. 2002-08-20 20:32:45 +00:00
Glenn Morris
367e10df21 Update maintainer. 2002-05-18 19:05:34 +00:00
Glenn Morris
5a73972b0e (fortran-directive-re): New name for fortran-preprocessor-re. All usage
updated.
(fortran-calculate-indent): Give directives zero indentation.
2002-05-14 23:12:41 +00:00
Eli Zaretskii
89e7ad5946 Change all post-21.1 :version attributes to 21.4. 2002-05-12 17:30:42 +00:00
Glenn Morris
8edfcc7ddd (fortran-preprocessor-re): New variable. Use it for font-locking.
(fortran-previous-statement, fortran-next-statement): Make them skip over
preprocessor lines as they do with comment lines.
(fortran-calculate-indent): Use fortran-preprocessor-re.
2002-05-12 13:31:31 +00:00
Glenn Morris
cfe9d0b5fb (fortran-strip-sequence-nos): Rename from typo `fortran-strip-sqeuence-nos'. 2002-05-01 15:34:30 +00:00
Glenn Morris
3baf8754b8 (fortran-beginning-do): Make regexp match a DO statement irrespective of
numeric label.
2002-04-21 17:57:43 +00:00
Stefan Monnier
894dc7e75d (fortran-split-line): Make it work with any `!' comment as well. 2002-03-13 16:42:47 +00:00
Stefan Monnier
ff451e174b (fortran-mode): Set comment-padding to "$$$".
Add fortran-comment-line-start-skip to comment-start-skip.
(fortran-comment-indent): Keep whole-line comments in column 0.
(fortran-find-comment-start-skip): New arg `all'.
If ALL is nil, make sure we only match comment-start-skip if we
can't match fortran-comment-line-start-skip.
Fix bug that made it return t but without moving point when
matching '!'! (a false-comment followed by a real comment).
(fortran-indent-comment): Use new `all' argument above.
Be careful not to add an incorrect comment-starter like "C"
in comment-column.
(fortran-split-line): When splitting a comment, reuse the comment
starter from the current line rather than fortran-comment-line-start.
(fortran-indent-line, fortran-auto-fill): Simplify thanks to the
cleaner behavior of fortran-find-comment-start-skip.
(fortran-fill): Don't be confused by ! inside a comment.
(fortran-break-line): Minor cleanup and simplification.
2002-03-13 16:33:56 +00:00
Pavel Janík
e64c71e918 (fortran-mode-abbrev-table): Mark all the predefined abbrevs as "system"
abbrevs.
2001-12-30 22:16:42 +00:00
Dave Love
b252360414 Fontify rewind, backspace. Doc fixes.
(fortran-window-create, fortran-window-create-momentarily):
Rewrite, moving error condition.
(fortran-beginning-do, fortran-beginning-if): Fix regexps.
(fortran-mode-syntax-table): Revert last change.
2001-11-29 12:24:33 +00:00
Richard M. Stallman
1e8fc05d84 (fortran-mode-syntax-table): Specify punctuation syntax for backslash. 2001-11-18 06:51:53 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Dave Love
b937fd1eaa (fortran-comment-region): Fix typo. 2001-03-30 10:19:51 +00:00
Richard M. Stallman
b9fe3dc8d5 (fortran-strip-sqeuence-nos): Doc fix. 2001-02-17 21:43:42 +00:00
Dave Love
562e00daec (fortran-mode-map): Modify Customization
entry for custom-menu-create change.
(fortran-strip-sqeuence-nos): Make arg optional.  Fix regexp and
don't cons it in the search loop.
2001-01-11 19:13:43 +00:00
Dave Love
8b31236d80 (fortran-mode): Don't set
fortran-comment-line-start-skip.  Set comment-start to
fortran-comment-line-start.
(fortran-fill-paragraph) <non-empty-comment>: Remove regexp group.
(fortran-comment-line-start-skip): Simplify slightly.
2000-11-28 10:55:35 +00:00
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