473 |
</tr></table> |
</tr></table> |
474 |
<h2 class="section"> 21.4 Indentation for Programs </h2> |
<h2 class="section"> 21.4 Indentation for Programs </h2> |
475 |
|
|
476 |
<p> The best way to keep a program properly indented ("ground") is to |
<p> The best way to keep a program properly indented (“ground”) is to |
477 |
use Emacs to re-indent it as you change the program. Emacs has commands |
use Emacs to re-indent it as you change the program. Emacs has commands |
478 |
to indent properly either a single line, a specified number of lines, or |
to indent properly either a single line, a specified number of lines, or |
479 |
all of the lines inside a single parenthetical grouping. |
all of the lines inside a single parenthetical grouping. |
936 |
as matching delimiters based on the syntax table set by the major |
as matching delimiters based on the syntax table set by the major |
937 |
mode. See section <a href="xemacs_30.html#SEC374">The Syntax Table</a>. |
mode. See section <a href="xemacs_30.html#SEC374">The Syntax Table</a>. |
938 |
</p> |
</p> |
939 |
<p> If the opening delimiter and closing delimiter are mismatched--as |
<p> If the opening delimiter and closing delimiter are mismatched—as |
940 |
in <samp>`[x)'</samp>--the echo area displays a warning message. The |
in <samp>`[x)'</samp>—the echo area displays a warning message. The |
941 |
correct matches are specified in the syntax table. |
correct matches are specified in the syntax table. |
942 |
</p> |
</p> |
943 |
<a name="IDX948"></a> |
<a name="IDX948"></a> |
2058 |
<p> The commands in this section visit and search all the files listed in the |
<p> The commands in this section visit and search all the files listed in the |
2059 |
selected tags table, one by one. For these commands, the tags table serves |
selected tags table, one by one. For these commands, the tags table serves |
2060 |
only to specify a sequence of files to search. A related command is |
only to specify a sequence of files to search. A related command is |
2061 |
<kbd>M-x grep</kbd> (see section <a href="xemacs_25.html#SEC252">Running "make", or Compilers Generally</a>). |
<kbd>M-x grep</kbd> (see section <a href="xemacs_25.html#SEC252">Running “make”, or Compilers Generally</a>). |
2062 |
</p> |
</p> |
2063 |
<dl compact="compact"> |
<dl compact="compact"> |
2064 |
<dt> <kbd>M-x tags-search <kbd>RET</kbd> <var>regexp</var> <kbd>RET</kbd></kbd></dt> |
<dt> <kbd>M-x tags-search <kbd>RET</kbd> <var>regexp</var> <kbd>RET</kbd></kbd></dt> |
2120 |
Emacs and have Emacs show you the matching lines one by one. This works |
Emacs and have Emacs show you the matching lines one by one. This works |
2121 |
much like running a compilation; finding the source locations of the |
much like running a compilation; finding the source locations of the |
2122 |
<code>grep</code> matches works like finding the compilation errors. |
<code>grep</code> matches works like finding the compilation errors. |
2123 |
See section <a href="xemacs_25.html#SEC252">Running "make", or Compilers Generally</a>. |
See section <a href="xemacs_25.html#SEC252">Running “make”, or Compilers Generally</a>. |
2124 |
</p> |
</p> |
2125 |
<p> If you wish to process all the files in a selected tags table, but |
<p> If you wish to process all the files in a selected tags table, but |
2126 |
<kbd>M-x tags-search</kbd> and <kbd>M-x tags-query-replace</kbd> are not giving |
<kbd>M-x tags-search</kbd> and <kbd>M-x tags-query-replace</kbd> are not giving |
2169 |
<a name="IDX986"></a> |
<a name="IDX986"></a> |
2170 |
<p> <kbd>M-x list-tags</kbd> reads the name of one of the files described by the |
<p> <kbd>M-x list-tags</kbd> reads the name of one of the files described by the |
2171 |
selected tags table, and displays a list of all the tags defined in that |
selected tags table, and displays a list of all the tags defined in that |
2172 |
file. The "file name" argument is really just a string to compare |
file. The “file name” argument is really just a string to compare |
2173 |
against the names recorded in the tags table; it is read as a string rather |
against the names recorded in the tags table; it is read as a string rather |
2174 |
than a file name. Therefore, completion and defaulting are not |
than a file name. Therefore, completion and defaulting are not |
2175 |
available, and you must enter the string the same way it appears in the tag |
available, and you must enter the string the same way it appears in the tag |
2651 |
|
|
2652 |
<dl compact="compact"> |
<dl compact="compact"> |
2653 |
<dt> <kbd>C-c C-r</kbd></dt> |
<dt> <kbd>C-c C-r</kbd></dt> |
2654 |
<dd><p>Displays a "column ruler" momentarily above the current line |
<dd><p>Displays a “column ruler” momentarily above the current line |
2655 |
(<code>fortran-column-ruler</code>). |
(<code>fortran-column-ruler</code>). |
2656 |
</p></dd> |
</p></dd> |
2657 |
<dt> <kbd>C-c C-w</kbd></dt> |
<dt> <kbd>C-c C-w</kbd></dt> |
2711 |
</p> |
</p> |
2712 |
<p> The built-in abbrevs are unusual in one way: they all start with a |
<p> The built-in abbrevs are unusual in one way: they all start with a |
2713 |
semicolon. You cannot normally use semicolon in an abbrev, but Fortran |
semicolon. You cannot normally use semicolon in an abbrev, but Fortran |
2714 |
mode makes this possible by changing the syntax of semicolon to "word |
mode makes this possible by changing the syntax of semicolon to “word |
2715 |
constituent". |
constituent”. |
2716 |
</p> |
</p> |
2717 |
<p> For example, one built-in Fortran abbrev is <samp>`;c'</samp> for |
<p> For example, one built-in Fortran abbrev is <samp>`;c'</samp> for |
2718 |
<samp>`continue'</samp>. If you insert <samp>`;c'</samp> and then insert a punctuation |
<samp>`continue'</samp>. If you insert <samp>`;c'</samp> and then insert a punctuation |