comparison lisp/progmodes/fortran.el @ 21432:79711f0f4079

(fortran-fill-paragraph): This is the one which must return t, not: (fortran-fill-statement):
author Dave Love <fx@gnu.org>
date Wed, 08 Apr 1998 18:08:59 +0000
parents d68f866455c6
children 7312e8eb2568
comparison
equal deleted inserted replaced
21431:a080769e8f7d 21432:79711f0f4079
1766 (looking-at comment-line-start-skip) 1766 (looking-at comment-line-start-skip)
1767 (match-string 0)))) 1767 (match-string 0))))
1768 (let (fill-paragraph-function) 1768 (let (fill-paragraph-function)
1769 (fill-region start end justify))) ; with normal `fill-paragraph' 1769 (fill-region start end justify))) ; with normal `fill-paragraph'
1770 (set-marker start nil) 1770 (set-marker start nil)
1771 (set-marker end nil))))) 1771 (set-marker end nil))))
1772 t)
1772 1773
1773 (defun fortran-fill-statement () 1774 (defun fortran-fill-statement ()
1774 "Fill a fortran statement up to `fill-column'." 1775 "Fill a fortran statement up to `fill-column'."
1775 (interactive) 1776 (interactive)
1776 (if (not (save-excursion 1777 (if (not (save-excursion
1789 ;; single space. 1790 ;; single space.
1790 (while (progn 1791 (while (progn
1791 (forward-line) 1792 (forward-line)
1792 (fortran-remove-continuation))) 1793 (fortran-remove-continuation)))
1793 (fortran-previous-statement))) 1794 (fortran-previous-statement)))
1794 (fortran-indent-line) 1795 (fortran-indent-line))
1795 t) ; must return t for fill-paragraph
1796 1796
1797 (provide 'fortran) 1797 (provide 'fortran)
1798 1798
1799 ;;; fortran.el ends here 1799 ;;; fortran.el ends here