Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d7faae56
Commit
d7faae56
authored
Jul 02, 1998
by
Dave Love
Browse files
(end-of-fortran-subprogram): Check if we're on the END statement.
parent
8fbfe89f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lisp/progmodes/fortran.el
lisp/progmodes/fortran.el
+8
-4
No files found.
lisp/progmodes/fortran.el
View file @
d7faae56
...
...
@@ -904,10 +904,14 @@ Auto-indent does not happen if a numeric ARG is used."
"
Moves
point
to
the
end
of
the
current
Fortran
subprogram.
"
(interactive)
(let ((case-fold-search t))
(beginning-of-line 2)
(re-search-forward fortran-end-prog-re nil 'move)
(goto-char (match-beginning 0))
(forward-line)))
(if (save-excursion ; on END
(beginning-of-line)
(looking-at fortran-end-prog-re))
(forward-line)
(beginning-of-line 2)
(re-search-forward fortran-end-prog-re nil 'move)
(goto-char (match-beginning 0))
(forward-line))))
(defun mark-fortran-subprogram ()
"
Put
mark
at
end
of
Fortran
subprogram,
point
at
beginning.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment