diff options
| author | Dave Love | 2000-11-28 10:55:35 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-28 10:55:35 +0000 |
| commit | 8b31236d80dc99e7625696996c5cdeb0f628cb13 (patch) | |
| tree | a0f8dd1cc507c2dd1db8bc291443273af9ef2353 /lisp | |
| parent | 665b27a691b95ddfb2ce17fe934b6d77c97b66aa (diff) | |
| download | emacs-8b31236d80dc99e7625696996c5cdeb0f628cb13.tar.gz emacs-8b31236d80dc99e7625696996c5cdeb0f628cb13.zip | |
(fortran-mode): Don't set
fortran-comment-line-start-skip. Set comment-start to
fortran-comment-line-start.
(fortran-fill-paragraph) <non-empty-comment>: Remove regexp group.
(fortran-comment-line-start-skip): Simplify slightly.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/progmodes/fortran.el | 9 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b6821311474..d2c8c5ec443 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2000-11-28 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/fortran.el (fortran-mode): Don't set | ||
| 4 | fortran-comment-line-start-skip. Set comment-start to | ||
| 5 | fortran-comment-line-start. | ||
| 6 | (fortran-fill-paragraph) <non-empty-comment>: Remove regexp group. | ||
| 7 | (fortran-comment-line-start-skip): Simplify slightly. | ||
| 8 | |||
| 1 | 2000-11-28 Gerd Moellmann <gerd@gnu.org> | 9 | 2000-11-28 Gerd Moellmann <gerd@gnu.org> |
| 2 | 10 | ||
| 3 | * play/5x5.el: Remove RCS keyword. | 11 | * play/5x5.el: Remove RCS keyword. |
| @@ -29,6 +37,8 @@ | |||
| 29 | 37 | ||
| 30 | 2000-11-27 Dave Love <fx@gnu.org> | 38 | 2000-11-27 Dave Love <fx@gnu.org> |
| 31 | 39 | ||
| 40 | * net/ldap.el (ldap) <defgroup>: Add :version. | ||
| 41 | |||
| 32 | * tooltip.el (tooltip-use-echo-area): Doc fix. | 42 | * tooltip.el (tooltip-use-echo-area): Doc fix. |
| 33 | 43 | ||
| 34 | * cus-start.el <minibuffer-prompt-properties>: Add version. | 44 | * cus-start.el <minibuffer-prompt-properties>: Add version. |
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index f335b097abd..b5b2caa2cff 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -130,7 +130,7 @@ You might want to change this to \"*\", for instance." | |||
| 130 | ;; This used to match preprocessor lines too, but that messes up | 130 | ;; This used to match preprocessor lines too, but that messes up |
| 131 | ;; filling and doesn't seem to be necessary. | 131 | ;; filling and doesn't seem to be necessary. |
| 132 | (defcustom fortran-comment-line-start-skip | 132 | (defcustom fortran-comment-line-start-skip |
| 133 | "^[CcDd*!]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*" | 133 | "^[CcDd*!]\\(\\([^ \t\n]\\)\\2+\\)?[ \t]*" |
| 134 | "*Regexp to match the start of a full-line comment." | 134 | "*Regexp to match the start of a full-line comment." |
| 135 | :version "21.1" | 135 | :version "21.1" |
| 136 | :type 'regexp | 136 | :type 'regexp |
| @@ -636,10 +636,8 @@ with no args, if that value is non-nil." | |||
| 636 | (setq comment-indent-function 'fortran-comment-indent) | 636 | (setq comment-indent-function 'fortran-comment-indent) |
| 637 | (make-local-variable 'comment-start-skip) | 637 | (make-local-variable 'comment-start-skip) |
| 638 | (setq comment-start-skip "![ \t]*") | 638 | (setq comment-start-skip "![ \t]*") |
| 639 | (setq fortran-comment-line-start-skip | ||
| 640 | "^[Cc*]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*\\|^#.*") | ||
| 641 | (make-local-variable 'comment-start) | 639 | (make-local-variable 'comment-start) |
| 642 | (setq fortran-comment-line-start "c") | 640 | (setq comment-start fortran-comment-line-start) |
| 643 | (make-local-variable 'require-final-newline) | 641 | (make-local-variable 'require-final-newline) |
| 644 | (setq require-final-newline t) | 642 | (setq require-final-newline t) |
| 645 | (make-local-variable 'abbrev-all-caps) | 643 | (make-local-variable 'abbrev-all-caps) |
| @@ -1737,8 +1735,7 @@ Intended as the value of `fill-paragraph-function'." | |||
| 1737 | ;; comments. (Get positions as markers, since the | 1735 | ;; comments. (Get positions as markers, since the |
| 1738 | ;; `indent-region' below can shift the block's end). | 1736 | ;; `indent-region' below can shift the block's end). |
| 1739 | (let* ((non-empty-comment | 1737 | (let* ((non-empty-comment |
| 1740 | (concat "\\(" fortran-comment-line-start-skip "\\)" | 1738 | (concat fortran-comment-line-start-skip "[^ \t\n]")) |
| 1741 | "[^ \t\n]")) | ||
| 1742 | (start (save-excursion | 1739 | (start (save-excursion |
| 1743 | ;; Find (start of) first line. | 1740 | ;; Find (start of) first line. |
| 1744 | (while (and (zerop (forward-line -1)) | 1741 | (while (and (zerop (forward-line -1)) |