aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorPaul Eggert2011-10-12 09:48:12 -0700
committerPaul Eggert2011-10-12 09:48:12 -0700
commit682432fc544c2bb4e0531c2931d43bce085eb16a (patch)
tree4bc9e4d78f34e19254382246b89a3462a0186311 /lisp/progmodes
parentd44287d4adc1e268ef9974ea72010f0186f40197 (diff)
parent79beb1785aac3f8326f58710462e4b6be7f0449a (diff)
downloademacs-682432fc544c2bb4e0531c2931d43bce085eb16a.tar.gz
emacs-682432fc544c2bb4e0531c2931d43bce085eb16a.zip
Merge from trunk.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/f90.el23
1 files changed, 14 insertions, 9 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index eb33822ce55..007203a8b21 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -1489,14 +1489,19 @@ Does not check type and subprogram indentation."
1489 (if (not (f90-previous-statement)) 1489 (if (not (f90-previous-statement))
1490 ;; If f90-previous-statement returns nil, we must have been 1490 ;; If f90-previous-statement returns nil, we must have been
1491 ;; called from on or before the first line of the first statement. 1491 ;; called from on or before the first line of the first statement.
1492 (setq icol (if (save-excursion 1492 (setq icol (if (or (save-excursion
1493 ;; f90-previous-statement has moved us over 1493 (goto-char pnt)
1494 ;; comment/blank lines, so we need to get 1494 (beginning-of-line)
1495 ;; back to the first code statement. 1495 ;; Preprocessor line before code statement.
1496 (when (looking-at "[ \t]*\\([!#]\\|$\\)") 1496 (looking-at "[ \t]*#"))
1497 (f90-next-statement)) 1497 (progn
1498 (skip-chars-forward " \t0-9") 1498 ;; f90-previous-statement has moved us over
1499 (f90-looking-at-program-block-start)) 1499 ;; comment/blank lines, so we need to get
1500 ;; back to the first code statement.
1501 (when (looking-at "[ \t]*\\([!#]\\|$\\)")
1502 (f90-next-statement))
1503 (skip-chars-forward " \t0-9")
1504 (f90-looking-at-program-block-start)))
1500 0 1505 0
1501 ;; No explicit PROGRAM start statement. 1506 ;; No explicit PROGRAM start statement.
1502 f90-program-indent)) 1507 f90-program-indent))
@@ -1573,7 +1578,7 @@ Return nil if no later statement is found."
1573 (while (and (setq not-last-statement 1578 (while (and (setq not-last-statement
1574 (and (zerop (forward-line 1)) 1579 (and (zerop (forward-line 1))
1575 (not (eobp)))) 1580 (not (eobp))))
1576 (looking-at "[ \t0-9]*\\(!\\|$\\)"))) 1581 (looking-at "[ \t0-9]*\\(!\\|$\\|#\\)")))
1577 not-last-statement)) 1582 not-last-statement))
1578 1583
1579(defun f90-beginning-of-subprogram () 1584(defun f90-beginning-of-subprogram ()