diff options
| author | Dave Love | 1999-02-02 19:35:29 +0000 |
|---|---|---|
| committer | Dave Love | 1999-02-02 19:35:29 +0000 |
| commit | c4c42b2e438cb9c28b36c44c17e710ec1debacbc (patch) | |
| tree | c823aeba95c961d0cda57de2b81acf73af21199d | |
| parent | 73b7a92263c375786dc5e733235b9852ff49d17f (diff) | |
| download | emacs-c4c42b2e438cb9c28b36c44c17e710ec1debacbc.tar.gz emacs-c4c42b2e438cb9c28b36c44c17e710ec1debacbc.zip | |
(mark-fortran-subprogram): Activate mark
here...
(fortran-narrow-to-subprogram, fortran-indent-subprogram): ... not
here.
| -rw-r--r-- | lisp/progmodes/fortran.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index ca75eae67f2..af6aee0f64b 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -980,7 +980,7 @@ Auto-indent does not happen if a numeric ARG is used." | |||
| 980 | The marks are pushed." | 980 | The marks are pushed." |
| 981 | (interactive) | 981 | (interactive) |
| 982 | (end-of-fortran-subprogram) | 982 | (end-of-fortran-subprogram) |
| 983 | (push-mark (point)) | 983 | (push-mark (point) nil t) |
| 984 | (beginning-of-fortran-subprogram)) | 984 | (beginning-of-fortran-subprogram)) |
| 985 | 985 | ||
| 986 | (defun fortran-previous-statement () | 986 | (defun fortran-previous-statement () |
| @@ -1034,9 +1034,8 @@ non-comment Fortran statement in the file, and nil otherwise." | |||
| 1034 | The subprogram visible is the one that contains or follows point." | 1034 | The subprogram visible is the one that contains or follows point." |
| 1035 | (interactive) | 1035 | (interactive) |
| 1036 | (save-excursion | 1036 | (save-excursion |
| 1037 | (let ((mark-active t)) | 1037 | (mark-fortran-subprogram) |
| 1038 | (mark-fortran-subprogram) | 1038 | (narrow-to-region (point) (mark)))) |
| 1039 | (narrow-to-region (point) (mark))))) | ||
| 1040 | 1039 | ||
| 1041 | (defmacro fortran-with-subprogram-narrowing (&rest forms) | 1040 | (defmacro fortran-with-subprogram-narrowing (&rest forms) |
| 1042 | "Execute FORMS with buffer temporarily narrowed to current subprogram. | 1041 | "Execute FORMS with buffer temporarily narrowed to current subprogram. |
| @@ -1344,10 +1343,9 @@ An abbrev before point is expanded if variable `abbrev-mode' is non-nil." | |||
| 1344 | "Properly indent the Fortran subprogram which contains point." | 1343 | "Properly indent the Fortran subprogram which contains point." |
| 1345 | (interactive) | 1344 | (interactive) |
| 1346 | (save-excursion | 1345 | (save-excursion |
| 1347 | (let ((mark-active t)) | 1346 | (mark-fortran-subprogram) |
| 1348 | (mark-fortran-subprogram) | 1347 | (message "Indenting subprogram...") |
| 1349 | (message "Indenting subprogram...") | 1348 | (indent-region (point) (mark) nil)) |
| 1350 | (indent-region (point) (mark) nil))) | ||
| 1351 | (message "Indenting subprogram...done.")) | 1349 | (message "Indenting subprogram...done.")) |
| 1352 | 1350 | ||
| 1353 | (defun fortran-calculate-indent () | 1351 | (defun fortran-calculate-indent () |