diff options
| author | Dave Love | 1999-08-03 11:13:23 +0000 |
|---|---|---|
| committer | Dave Love | 1999-08-03 11:13:23 +0000 |
| commit | 5aca2648a2166f2ed3aa48e18a4607bd072bea81 (patch) | |
| tree | 98881ad44b9a052f992806a926d1a10afc73ecda | |
| parent | 95c1652d1c7cffd8ddd76604e76c1216d9f179a8 (diff) | |
| download | emacs-5aca2648a2166f2ed3aa48e18a4607bd072bea81.tar.gz emacs-5aca2648a2166f2ed3aa48e18a4607bd072bea81.zip | |
(fortran-indent-new-line): Make it an alias
for reindent-then-newline-and-indent.
| -rw-r--r-- | lisp/progmodes/fortran.el | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index bd0d0aad004..120a885d017 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -1323,22 +1323,9 @@ Return point or nil." | |||
| 1323 | (fortran-blink-matching-if) | 1323 | (fortran-blink-matching-if) |
| 1324 | (fortran-blink-matching-do))))) | 1324 | (fortran-blink-matching-do))))) |
| 1325 | 1325 | ||
| 1326 | (defun fortran-indent-new-line () | 1326 | ;; Historically this was a separate function which advertised itself |
| 1327 | "Reindent the current Fortran line, insert a newline and indent the newline. | 1327 | ;; as reindenting but only did so where `most likely to be necessary'. |
| 1328 | An abbrev before point is expanded if variable `abbrev-mode' is non-nil." | 1328 | (defalias 'fortran-indent-new-line 'reindent-then-newline-and-indent) |
| 1329 | (interactive) | ||
| 1330 | (if abbrev-mode (expand-abbrev)) | ||
| 1331 | (save-excursion | ||
| 1332 | (beginning-of-line) | ||
| 1333 | (skip-chars-forward " \t") | ||
| 1334 | (let ((case-fold-search t)) | ||
| 1335 | (if (or (looking-at "[0-9]") ;Reindent only where it is most | ||
| 1336 | (looking-at "end") ;likely to be necessary | ||
| 1337 | (looking-at "else") | ||
| 1338 | (looking-at (regexp-quote fortran-continuation-string))) | ||
| 1339 | (fortran-indent-line)))) | ||
| 1340 | (newline) | ||
| 1341 | (fortran-indent-line)) | ||
| 1342 | 1329 | ||
| 1343 | (defun fortran-indent-subprogram () | 1330 | (defun fortran-indent-subprogram () |
| 1344 | "Properly indent the Fortran subprogram which contains point." | 1331 | "Properly indent the Fortran subprogram which contains point." |