Small fix for f90-next-statement.
authorGlenn Morris <rgm@gnu.org>
Tue, 11 Oct 2011 07:27:46 +0000 (00:27 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 11 Oct 2011 07:27:46 +0000 (00:27 -0700)
* lisp/progmodes/f90.el (f90-next-statement):
Ignore preprocessor lines, like f90-previous-statement does.

lisp/ChangeLog
lisp/progmodes/f90.el

index c84b2ea..aec57cc 100644 (file)
@@ -1,8 +1,13 @@
+2011-10-11  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/f90.el (f90-next-statement): Ignore preprocessor lines,
+       like f90-previous-statement does.
+
 2011-10-11  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
 
-       * lisp/eshell/eshell.el (eshell-command): History have to be saved 
-       only in interactive use to avoid error.
-       
+       * lisp/eshell/eshell.el (eshell-command): History should be saved
+       only in interactive use, to avoid error.
+
 2011-10-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * minibuffer.el (completion-file-name-table): Fix last change,
index 3d5c8a9..007203a 100644 (file)
@@ -1578,7 +1578,7 @@ Return nil if no later statement is found."
     (while (and (setq not-last-statement
                       (and (zerop (forward-line 1))
                            (not (eobp))))
-                (looking-at "[ \t0-9]*\\(!\\|$\\)")))
+                (looking-at "[ \t0-9]*\\(!\\|$\\|#\\)")))
     not-last-statement))
 
 (defun f90-beginning-of-subprogram ()