aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDave Love1998-07-02 19:26:15 +0000
committerDave Love1998-07-02 19:26:15 +0000
commitd7faae566d3d8f3df90ae70030e4ee5a76623252 (patch)
treeeaf3b4054e296c1ff57f5e54d69c7a91cf9d356b /lisp
parent8fbfe89f860203f767ea902dc3803a540e5702ef (diff)
downloademacs-d7faae566d3d8f3df90ae70030e4ee5a76623252.tar.gz
emacs-d7faae566d3d8f3df90ae70030e4ee5a76623252.zip
(end-of-fortran-subprogram): Check if we're on the END statement.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/fortran.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 4b54bb16ed7..dc622e675a1 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -904,10 +904,14 @@ Auto-indent does not happen if a numeric ARG is used."
904 "Moves point to the end of the current Fortran subprogram." 904 "Moves point to the end of the current Fortran subprogram."
905 (interactive) 905 (interactive)
906 (let ((case-fold-search t)) 906 (let ((case-fold-search t))
907 (beginning-of-line 2) 907 (if (save-excursion ; on END
908 (re-search-forward fortran-end-prog-re nil 'move) 908 (beginning-of-line)
909 (goto-char (match-beginning 0)) 909 (looking-at fortran-end-prog-re))
910 (forward-line))) 910 (forward-line)
911 (beginning-of-line 2)
912 (re-search-forward fortran-end-prog-re nil 'move)
913 (goto-char (match-beginning 0))
914 (forward-line))))
911 915
912(defun mark-fortran-subprogram () 916(defun mark-fortran-subprogram ()
913 "Put mark at end of Fortran subprogram, point at beginning. 917 "Put mark at end of Fortran subprogram, point at beginning.