1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00
Commit Graph

75 Commits

Author SHA1 Message Date
Glenn Morris
799dee7ac4 (f90-end-block-re, f90-start-block-re): New constants.
(hs-special-modes-alist): Add an f90-mode entry. This will not be
100% successful, but should handle a sizable majority of code.
2004-05-17 18:52:51 +00:00
Glenn Morris
718d07060a (f90-get-present-comment-type): Return whitespace, as well as comment
chars, for consistent filling of comment blocks.  Use
`match-string-no-properties'.
(f90-break-line): Do not leave trailing whitespace when filling
comments.
2004-04-30 18:52:11 +00:00
Glenn Morris
6f43f690c6 (f90-break-delimiters): Doc fix.
(f90-no-break-re): Add some extra tokens.  Doc fix.
2004-01-25 23:42:35 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Glenn Morris
7aee804746 (f90-font-lock-keywords-2): Use override for
font-lock-variable-name-face in declarations (so that strings in
declarations are over-ridden).  Highlight continuation characters.
(f90-indent-new-line): Remove direct call to f90-indent-line-no,
f90-update-line, since f90-indent-line calls these.
(f90-abbrev-start): Fix XEmacs compatibility.
2003-04-20 13:01:32 +00:00
Glenn Morris
0db701f029 (f90-looking-at-do, f90-find-breakpoint): Fix previous change. 2003-04-16 13:50:40 +00:00
Glenn Morris
748dd5a8af (f90-indent-to, f90-indent-line-no)
(f90-no-block-limit, f90-end-of-block, f90-beginning-of-block)
(f90-comment-region, f90-indent-line, f90-indent-region)
(f90-find-breakpoint, f90-block-match): Trivial simplifications.
(f90-looking-at-do, f90-looking-at-select-case)
(f90-looking-at-if-then, f90-looking-at-where-or-forall): Drop
XEmacs 19 support and simplify.
(f90-indent-new-line): No need for case-fold-search.  Simplify.
(f90-fill-region): Make marker nil when done.  Simplify.
2003-04-16 11:08:58 +00:00
Glenn Morris
a729409a96 Whitespace changes, trivial commentary changes.
(f90, f90-indent, f90-program-indent, f90-continuation-indent)
(f90-indented-comment-re, f90-imenu-generic-expression)
(f90-mark-subprogram, f90-join-lines): Minor doc changes.
(f90-menu): Shift definition to initialization of f90-mode-map.
Add customization section.
(f90-mode): Minor doc change.  Do not call easy-menu-add.
Set `beginning-of-defun-function' and `end-of-defun-function' to
appropriate F90 functions.
(f90-indent-line, f90-indent-line, f90-indent-subprogram)
(f90-break-line, f90-do-auto-fill, f90-insert-end)
(f90-upcase-keywords, f90-capitalize-keywords)
(f90-downcase-keywords): Change interactive spec.
2003-04-15 19:18:23 +00:00
Glenn Morris
a259425b58 (f90-join-lines): Make it behave more like the standard function
`join-line' - join with previous line, unless an argument supplied.
Join comments correctly. No longer has a meaningful return
value, no longer fills (seems contradictory to join AND fill).
(f90-fill-region, f90-menu): Adapt for new f90-join-lines.
2003-04-12 20:43:58 +00:00
Glenn Morris
be550ccc61 (f90-abbrev-start): Only offer help if abbrev-mode is active. 2003-04-12 15:45:59 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Glenn Morris
34ba7e3d72 Remove (eval-when-compile) for free variables.
(f90-menu): Remove ":active" keyword where not needed.
(f90-menu, f90-add-imenu-menu): Use lookup-key rather than
imenu--index-alist.
A few whitespace changes.
2002-09-01 00:54:55 +00:00
Glenn Morris
901e8d1dc5 (f90-imenu-flag): Deleted - use imenu--index-alist instead. 2002-08-24 01:08:28 +00:00
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