diff options
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/fortran-xtra.texi | 46 |
2 files changed, 26 insertions, 24 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 0b6178d6195..8e10749cc35 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-02-16 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * fortran-xtra.texi: Tiny changes and some adjustments to line breaks. | ||
| 4 | |||
| 1 | 2012-02-15 Glenn Morris <rgm@gnu.org> | 5 | 2012-02-15 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * sending.texi (Mail Sending): smtpmail-auth-credentials was removed. | 7 | * sending.texi (Mail Sending): smtpmail-auth-credentials was removed. |
diff --git a/doc/emacs/fortran-xtra.texi b/doc/emacs/fortran-xtra.texi index 5fc20fae8a3..ead08e0babb 100644 --- a/doc/emacs/fortran-xtra.texi +++ b/doc/emacs/fortran-xtra.texi | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | @c This is part of the Emacs manual. | 1 | @c This is part of the Emacs manual. |
| 2 | @c Copyright (C) 2004-2012 Free Software Foundation, Inc. | 2 | @c Copyright (C) 2004-2012 Free Software Foundation, Inc. |
| 3 | @c See file emacs.texi for copying conditions. | 3 | @c See file emacs.texi for copying conditions. |
| 4 | @c | 4 | @c |
| 5 | @c This file is included either in emacs-xtra.texi (when producing the | 5 | @c This file is included either in emacs-xtra.texi (when producing the |
| @@ -70,11 +70,10 @@ command runs the hook @code{fortran-mode-hook}. | |||
| 70 | @subsection Motion Commands | 70 | @subsection Motion Commands |
| 71 | 71 | ||
| 72 | In addition to the normal commands for moving by and operating on | 72 | In addition to the normal commands for moving by and operating on |
| 73 | ``defuns'' (Fortran subprograms---functions and subroutines, using the | 73 | ``defuns'' (Fortran subprograms---functions and subroutines, as well |
| 74 | commands @code{fortran-beginning-of-subprogram} and | 74 | as modules for F90 mode, using the commands @code{fortran-end-of-subprogram} |
| 75 | @code{fortran-end-of-subprogram}; as well as modules for F90 mode), | 75 | and @code{fortran-beginning-of-subprogram}), Fortran mode provides |
| 76 | Fortran mode provides special commands to move by statements and other | 76 | special commands to move by statements and other program units. |
| 77 | program units. | ||
| 78 | 77 | ||
| 79 | @table @kbd | 78 | @table @kbd |
| 80 | @kindex C-c C-n @r{(Fortran mode)} | 79 | @kindex C-c C-n @r{(Fortran mode)} |
| @@ -97,16 +96,15 @@ statement in the buffer), move to the start of the buffer. | |||
| 97 | @findex f90-next-block | 96 | @findex f90-next-block |
| 98 | @item C-c C-e | 97 | @item C-c C-e |
| 99 | Move point forward to the start of the next code block, or the end of | 98 | Move point forward to the start of the next code block, or the end of |
| 100 | the current block, whichever is encountered first. | 99 | the current one, whichever comes first (@code{f90-next-block}). |
| 101 | (@code{f90-next-block}). A code block is a subroutine, | 100 | A code block is a subroutine, @code{if}--@code{endif} statement, and |
| 102 | @code{if}--@code{endif} statement, and so forth. This command exists | 101 | so forth. This command exists for F90 mode only, not Fortran mode. |
| 103 | for F90 mode only, not Fortran mode. With a numeric argument, this | 102 | With a numeric argument, this moves forward that many blocks. |
| 104 | moves forward that many blocks. | ||
| 105 | 103 | ||
| 106 | @kindex C-c C-a @r{(F90 mode)} | 104 | @kindex C-c C-a @r{(F90 mode)} |
| 107 | @findex f90-previous-block | 105 | @findex f90-previous-block |
| 108 | @item C-c C-a | 106 | @item C-c C-a |
| 109 | Move point backward to the previous code block | 107 | Move point backward to the previous block |
| 110 | (@code{f90-previous-block}). This is like @code{f90-next-block}, but | 108 | (@code{f90-previous-block}). This is like @code{f90-next-block}, but |
| 111 | moves backwards. | 109 | moves backwards. |
| 112 | 110 | ||
| @@ -163,7 +161,7 @@ Break the current line at point and set up a continuation line | |||
| 163 | @item M-^ | 161 | @item M-^ |
| 164 | Join this line to the previous line (@code{fortran-join-line}). | 162 | Join this line to the previous line (@code{fortran-join-line}). |
| 165 | @item C-M-q | 163 | @item C-M-q |
| 166 | Indent all the lines of the subprogram point is in | 164 | Indent all the lines of the subprogram that point is in |
| 167 | (@code{fortran-indent-subprogram}). | 165 | (@code{fortran-indent-subprogram}). |
| 168 | @item M-q | 166 | @item M-q |
| 169 | Fill a comment block or statement (using @code{fortran-fill-paragraph} | 167 | Fill a comment block or statement (using @code{fortran-fill-paragraph} |
| @@ -364,7 +362,7 @@ comments start with @samp{!} and can follow other text. Because only | |||
| 364 | some Fortran 77 compilers accept this syntax, Fortran mode will not | 362 | some Fortran 77 compilers accept this syntax, Fortran mode will not |
| 365 | insert such comments unless you have said in advance to do so. To do | 363 | insert such comments unless you have said in advance to do so. To do |
| 366 | this, set the variable @code{fortran-comment-line-start} to @samp{"!"}. | 364 | this, set the variable @code{fortran-comment-line-start} to @samp{"!"}. |
| 367 | If you use an unusual value, you may also need to adjust | 365 | If you use an unusual value, you may need to change |
| 368 | @code{fortran-comment-line-start-skip}. | 366 | @code{fortran-comment-line-start-skip}. |
| 369 | 367 | ||
| 370 | 368 | ||
| @@ -373,7 +371,7 @@ If you use an unusual value, you may also need to adjust | |||
| 373 | Align comment or insert new comment (@code{comment-dwim}). | 371 | Align comment or insert new comment (@code{comment-dwim}). |
| 374 | 372 | ||
| 375 | @item C-x ; | 373 | @item C-x ; |
| 376 | Applies to nonstandard @samp{!} comments only. | 374 | Applies to nonstandard @samp{!} comments only (@code{comment-set-column}). |
| 377 | 375 | ||
| 378 | @item C-c ; | 376 | @item C-c ; |
| 379 | Turn all lines of the region into comments, or (with argument) turn them back | 377 | Turn all lines of the region into comments, or (with argument) turn them back |
| @@ -406,10 +404,10 @@ Align the text at a fixed column, which is the sum of | |||
| 406 | @code{fortran-comment-line-extra-indent} and the minimum statement | 404 | @code{fortran-comment-line-extra-indent} and the minimum statement |
| 407 | indentation. This is the default. | 405 | indentation. This is the default. |
| 408 | 406 | ||
| 409 | The minimum statement indentation is | 407 | The minimum indentation is |
| 410 | @code{fortran-minimum-statement-indent-fixed} for fixed form | 408 | @code{fortran-minimum-statement-indent-tab} for tab format |
| 411 | continuation line style and @code{fortran-minimum-statement-indent-tab} | 409 | continuation line style and @code{fortran-minimum-statement-indent-fixed} |
| 412 | for tab format style. | 410 | for fixed form style. |
| 413 | 411 | ||
| 414 | @item relative | 412 | @item relative |
| 415 | Align the text as if it were a line of code, but with an additional | 413 | Align the text as if it were a line of code, but with an additional |
| @@ -434,17 +432,17 @@ never be indented at all, no matter what the value of | |||
| 434 | lines are directives. Matching lines are never indented, and receive | 432 | lines are directives. Matching lines are never indented, and receive |
| 435 | distinctive font-locking. | 433 | distinctive font-locking. |
| 436 | 434 | ||
| 437 | The normal Emacs comment command @kbd{C-x ;} has not been redefined. If | 435 | The normal Emacs comment command @kbd{C-x ;} (@code{comment-set-column}) |
| 438 | you use @samp{!} comments, this command can be used with them. Otherwise | 436 | has not been redefined. If you use @samp{!} comments, this command |
| 439 | it is useless in Fortran mode. | 437 | can be used with them. Otherwise it is useless in Fortran mode. |
| 440 | 438 | ||
| 441 | @kindex C-c ; @r{(Fortran mode)} | 439 | @kindex C-c ; @r{(Fortran mode)} |
| 442 | @findex fortran-comment-region | 440 | @findex fortran-comment-region |
| 443 | @vindex fortran-comment-region | 441 | @vindex fortran-comment-region |
| 444 | The command @kbd{C-c ;} (@code{fortran-comment-region}) turns all the | 442 | The command @kbd{C-c ;} (@code{fortran-comment-region}) turns all the |
| 445 | lines of the region into comments by inserting the string @samp{C$$$} at | 443 | lines of the region into comments by inserting the string @samp{c$$$} at |
| 446 | the front of each one. With a numeric argument, it turns the region | 444 | the front of each one. With a numeric argument, it turns the region |
| 447 | back into live code by deleting @samp{C$$$} from the front of each line | 445 | back into live code by deleting @samp{c$$$} from the front of each line |
| 448 | in it. The string used for these comments can be controlled by setting | 446 | in it. The string used for these comments can be controlled by setting |
| 449 | the variable @code{fortran-comment-region}. Note that here we have an | 447 | the variable @code{fortran-comment-region}. Note that here we have an |
| 450 | example of a command and a variable with the same name; these two uses | 448 | example of a command and a variable with the same name; these two uses |