]> git.eshelyaron.com Git - emacs.git/commitdiff
(fortran-split-line): Make it work with any `!' comment as well.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Mar 2002 16:42:47 +0000 (16:42 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Mar 2002 16:42:47 +0000 (16:42 +0000)
lisp/progmodes/fortran.el

index 2ef875e1fe31dd763334b6ad324db2846b6586b9..8d4d0131180fcaf9d36e282c8e4be933ca858e99 100644 (file)
@@ -844,8 +844,10 @@ See also `fortran-window-create'."
   (interactive)
   (delete-horizontal-space)
   (if (save-excursion
-       (beginning-of-line)
-       (looking-at fortran-comment-line-start-skip))
+       (let ((pos (point)))
+         (beginning-of-line)
+         (and (fortran-find-comment-start-skip 'all)
+              (< (match-beginning 0) pos))))
       (insert ?\n (match-string 0))
     (if indent-tabs-mode
        (insert ?\n ?\t (fortran-numerical-continuation-char))