diff options
| author | Glenn Morris | 2002-06-23 15:45:48 +0000 |
|---|---|---|
| committer | Glenn Morris | 2002-06-23 15:45:48 +0000 |
| commit | d595e95d3ef0c1edcfed282a48d5752c74245aa4 (patch) | |
| tree | f4e587aa6f1466ba6db1d30d4b9c167cc31f52b7 | |
| parent | 11554bdd63e64fa6838882b4b9d8502302f84bd2 (diff) | |
| download | emacs-d595e95d3ef0c1edcfed282a48d5752c74245aa4.tar.gz emacs-d595e95d3ef0c1edcfed282a48d5752c74245aa4.zip | |
(f90-do-auto-fill): Make it respect `comment-auto-fill-only-comments'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/f90.el | 18 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e4bd5ed83e..bbcca326542 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-06-23 Glenn Morris <gmorris@ast.cam.ac.uk> | ||
| 2 | |||
| 3 | * progmodes/f90.el (f90-do-auto-fill): Respect the value of | ||
| 4 | comment-auto-fill-only-comments. | ||
| 5 | |||
| 1 | 2002-06-21 Kai Gro,b_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> | 6 | 2002-06-21 Kai Gro,b_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> |
| 2 | 7 | ||
| 3 | * net/ange-ftp.el (backup-buffer): Delete `ange-ftp' property. | 8 | * net/ange-ftp.el (backup-buffer): Delete `ange-ftp' property. |
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index 5b34e8506b3..097f0bcba6b 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -1624,13 +1624,17 @@ Update keyword case first." | |||
| 1624 | ;; position is beyond fill-column. | 1624 | ;; position is beyond fill-column. |
| 1625 | ;; Will not break **, //, or => (as specified by f90-no-break-re). | 1625 | ;; Will not break **, //, or => (as specified by f90-no-break-re). |
| 1626 | (f90-update-line) | 1626 | (f90-update-line) |
| 1627 | (while (> (current-column) fill-column) | 1627 | ;; Need this for `f90-electric-insert' and other f90- callers. |
| 1628 | (let ((pos-mark (point-marker))) | 1628 | (unless (and (boundp 'comment-auto-fill-only-comments) |
| 1629 | (move-to-column fill-column) | 1629 | comment-auto-fill-only-comments |
| 1630 | (or (f90-in-string) (f90-find-breakpoint)) | 1630 | (not (f90-in-comment))) |
| 1631 | (f90-break-line) | 1631 | (while (> (current-column) fill-column) |
| 1632 | (goto-char pos-mark) | 1632 | (let ((pos-mark (point-marker))) |
| 1633 | (set-marker pos-mark nil)))) | 1633 | (move-to-column fill-column) |
| 1634 | (or (f90-in-string) (f90-find-breakpoint)) | ||
| 1635 | (f90-break-line) | ||
| 1636 | (goto-char pos-mark) | ||
| 1637 | (set-marker pos-mark nil))))) | ||
| 1634 | 1638 | ||
| 1635 | 1639 | ||
| 1636 | (defun f90-join-lines () | 1640 | (defun f90-join-lines () |