# HG changeset patch # User Dave Love # Date 943637733 0 # Node ID d09cca4b3d50ea85d68bb982e03fc3396e3d89aa # Parent 2cde2efdc20f2bb4718bc57d37069c62c3ec03e7 (add-log-current-defun): Use fortran-{beginning,end}-of-subprogram. diff -r 2cde2efdc20f -r d09cca4b3d50 lisp/add-log.el --- a/lisp/add-log.el Fri Nov 26 17:34:46 1999 +0000 +++ b/lisp/add-log.el Fri Nov 26 17:35:33 1999 +0000 @@ -665,13 +665,13 @@ ;; Needs work for f90, but better than nothing. (eq major-mode 'f90-mode)) ;; must be inside function body for this to work - (beginning-of-fortran-subprogram) + (fortran-beginning-of-subprogram) (let ((case-fold-search t)) ; case-insensitive ;; search for fortran subprogram start (if (re-search-forward "^[ \t]*\\(program\\|subroutine\\|function\ \\|[ \ta-z0-9*()]*[ \t]+function\\|\\(block[ \t]*data\\)\\)" - (save-excursion (end-of-fortran-subprogram) + (save-excursion (fortran-end-of-subprogram) (point)) t) (or (match-string 2)