diff options
| author | Glenn Morris | 2002-05-19 22:28:15 +0000 |
|---|---|---|
| committer | Glenn Morris | 2002-05-19 22:28:15 +0000 |
| commit | 89fa1ef503c1aa8abb920d1a0ea049d2d651530e (patch) | |
| tree | 19cbe758dbdb3113c30508a8a620b5ca730eb419 | |
| parent | 6dd52cafbdb9da8b498b20d039437185a8e6b7b6 (diff) | |
| download | emacs-89fa1ef503c1aa8abb920d1a0ea049d2d651530e.tar.gz emacs-89fa1ef503c1aa8abb920d1a0ea049d2d651530e.zip | |
(f90-get-present-comment-type): Fix bug introduced in version 1.46.
(f90-comment-indent): Doc fix.
(f90-break-line): Simplify it a bit.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/f90.el | 27 |
2 files changed, 15 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b74d7930cab..7537eed4ecb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2002-05-19 Glenn Morris <gmorris@ast.cam.ac.uk> | 1 | 2002-05-19 Glenn Morris <gmorris@ast.cam.ac.uk> |
| 2 | 2 | ||
| 3 | * progmodes/f90.el (f90-match-end): Simplify it a bit. | 3 | * progmodes/f90.el (f90-match-end, f90-break-line): Simplify a bit. |
| 4 | (f90-get-present-comment-type): Fix earlier change. | ||
| 5 | (f90-comment-indent): Doc fix. | ||
| 4 | 6 | ||
| 5 | 2002-05-19 Richard M. Stallman <rms@gnu.org> | 7 | 2002-05-19 Richard M. Stallman <rms@gnu.org> |
| 6 | 8 | ||
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index f06883c7646..fe5134c086e 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -911,10 +911,10 @@ For example, \"!\" or \"!!\"." | |||
| 911 | (save-excursion | 911 | (save-excursion |
| 912 | (when (f90-in-comment) | 912 | (when (f90-in-comment) |
| 913 | (beginning-of-line) | 913 | (beginning-of-line) |
| 914 | (re-search-forward "[!]+" (line-end-position)) | 914 | (re-search-forward "!+" (line-end-position)) |
| 915 | (while (f90-in-string) | 915 | (while (f90-in-string) |
| 916 | (re-search-forward "[!]+" (line-end-position)) | 916 | (re-search-forward "!+" (line-end-position))) |
| 917 | (match-string 0))))) | 917 | (match-string 0)))) |
| 918 | 918 | ||
| 919 | (defsubst f90-equal-symbols (a b) | 919 | (defsubst f90-equal-symbols (a b) |
| 920 | "Compare strings A and B neglecting case and allowing for nil value." | 920 | "Compare strings A and B neglecting case and allowing for nil value." |
| @@ -1008,7 +1008,7 @@ NAME is non-nil only for type." | |||
| 1008 | Used for `comment-indent-function' by F90 mode. | 1008 | Used for `comment-indent-function' by F90 mode. |
| 1009 | \"!!!\", `f90-directive-comment-re', variable `f90-comment-region' return 0. | 1009 | \"!!!\", `f90-directive-comment-re', variable `f90-comment-region' return 0. |
| 1010 | `f90-indented-comment-re' (if not trailing code) calls `f90-calculate-indent'. | 1010 | `f90-indented-comment-re' (if not trailing code) calls `f90-calculate-indent'. |
| 1011 | Any other type return `comment-column', leaving at least one space after code." | 1011 | All others return `comment-column', leaving at least one space after code." |
| 1012 | (cond ((looking-at "!!!") 0) | 1012 | (cond ((looking-at "!!!") 0) |
| 1013 | ((and f90-directive-comment-re | 1013 | ((and f90-directive-comment-re |
| 1014 | (looking-at f90-directive-comment-re)) 0) | 1014 | (looking-at f90-directive-comment-re)) 0) |
| @@ -1464,17 +1464,14 @@ If run in the middle of a line, the line is not broken." | |||
| 1464 | Unless in a string or comment, or if the optional argument NO-UPDATE | 1464 | Unless in a string or comment, or if the optional argument NO-UPDATE |
| 1465 | is non-nil, call `f90-update-line' after inserting the continuation marker." | 1465 | is non-nil, call `f90-update-line' after inserting the continuation marker." |
| 1466 | (interactive) | 1466 | (interactive) |
| 1467 | (let (ctype) | 1467 | (cond ((f90-in-string) |
| 1468 | (cond ((f90-in-string) | 1468 | (insert "&\n&")) |
| 1469 | (insert "&") (newline 1) (insert "&")) | 1469 | ((f90-in-comment) |
| 1470 | ((f90-in-comment) | 1470 | (insert "\n" (f90-get-present-comment-type))) |
| 1471 | (setq ctype (f90-get-present-comment-type)) | 1471 | (t (insert "&") |
| 1472 | (newline 1) | 1472 | (or no-update (f90-update-line)) |
| 1473 | (insert ctype)) | 1473 | (newline 1) |
| 1474 | (t (insert "&") | 1474 | (if f90-beginning-ampersand (insert "&")))) |
| 1475 | (if (not no-update) (f90-update-line)) | ||
| 1476 | (newline 1) | ||
| 1477 | (if f90-beginning-ampersand (insert "&"))))) | ||
| 1478 | (indent-according-to-mode)) | 1475 | (indent-according-to-mode)) |
| 1479 | 1476 | ||
| 1480 | (defun f90-find-breakpoint () | 1477 | (defun f90-find-breakpoint () |