diff options
| author | Richard M. Stallman | 2005-02-16 10:17:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-16 10:17:01 +0000 |
| commit | 64e207c032f8b69ec1986091c1bd437997474762 (patch) | |
| tree | 5e2ffafae4f118ee2159877060c3c863ff91b648 /man/programs.texi | |
| parent | 3f6cafd9cf62fdd525b36a1feb61da6890cc6ba7 (diff) | |
| download | emacs-64e207c032f8b69ec1986091c1bd437997474762.tar.gz emacs-64e207c032f8b69ec1986091c1bd437997474762.zip | |
(Program Modes): Mention Python mode.
(Moving by Defuns): Repeating C-M-h extends region.
(Basic Indent): Clarify.
(Custom C Indent): Clarify.
(Expressions): Repeating C-M-@ extends region.
(Info Lookup): Clarify for C-h S.
(Symbol Completion): ESC TAB alternative for M-TAB.
(Electric C): Clarify.
Diffstat (limited to 'man/programs.texi')
| -rw-r--r-- | man/programs.texi | 55 |
1 files changed, 33 insertions, 22 deletions
diff --git a/man/programs.texi b/man/programs.texi index 67b19c2e5e4..f884e019d22 100644 --- a/man/programs.texi +++ b/man/programs.texi | |||
| @@ -73,6 +73,7 @@ and you can select it by typing @kbd{M-x @var{l}-mode @key{RET}}. | |||
| 73 | @cindex Metafont mode | 73 | @cindex Metafont mode |
| 74 | @cindex Modula2 mode | 74 | @cindex Modula2 mode |
| 75 | @cindex Prolog mode | 75 | @cindex Prolog mode |
| 76 | @cindex Python mode | ||
| 76 | @cindex Simula mode | 77 | @cindex Simula mode |
| 77 | @cindex VHDL mode | 78 | @cindex VHDL mode |
| 78 | @cindex M4 mode | 79 | @cindex M4 mode |
| @@ -84,7 +85,7 @@ variant of Lisp) and the Scheme-based DSSSL expression language, Ada, | |||
| 84 | ASM, AWK, C, C++, Delphi (Object Pascal), Fortran (free format and fixed | 85 | ASM, AWK, C, C++, Delphi (Object Pascal), Fortran (free format and fixed |
| 85 | format), Icon, IDL (CORBA), IDLWAVE, Java, Metafont (@TeX{}'s | 86 | format), Icon, IDL (CORBA), IDLWAVE, Java, Metafont (@TeX{}'s |
| 86 | companion for font creation), Modula2, Objective-C, Octave, Pascal, | 87 | companion for font creation), Modula2, Objective-C, Octave, Pascal, |
| 87 | Perl, Pike, PostScript, Prolog, Simula, Tcl, and VHDL. There is | 88 | Perl, Pike, PostScript, Prolog, Python, Simula, Tcl, and VHDL. There is |
| 88 | also a major mode for makefiles, called Makefile mode. An alternative | 89 | also a major mode for makefiles, called Makefile mode. An alternative |
| 89 | mode for Perl is called CPerl mode. Modes are available for the | 90 | mode for Perl is called CPerl mode. Modes are available for the |
| 90 | scripting languages of the common GNU and Unix shells, VMS DCL, and | 91 | scripting languages of the common GNU and Unix shells, VMS DCL, and |
| @@ -241,6 +242,9 @@ which puts point at the beginning and mark at the end of the current | |||
| 241 | defun. This is the easiest way to get ready to kill the defun in | 242 | defun. This is the easiest way to get ready to kill the defun in |
| 242 | order to move it to a different place in the file. If you use the | 243 | order to move it to a different place in the file. If you use the |
| 243 | command while point is between defuns, it uses the following defun. | 244 | command while point is between defuns, it uses the following defun. |
| 245 | Successive uses of @kbd{C-M-h}, or using it in Transient Mark mode | ||
| 246 | when the mark is active, includes an additional defun in the region | ||
| 247 | each time. | ||
| 244 | 248 | ||
| 245 | In C mode, @kbd{C-M-h} runs the function @code{c-mark-function}, | 249 | In C mode, @kbd{C-M-h} runs the function @code{c-mark-function}, |
| 246 | which is almost the same as @code{mark-defun}; the difference is that | 250 | which is almost the same as @code{mark-defun}; the difference is that |
| @@ -375,7 +379,7 @@ whitespace at the beginning of the line, @key{TAB} puts it at the end of | |||
| 375 | that whitespace; otherwise, @key{TAB} keeps point fixed with respect to | 379 | that whitespace; otherwise, @key{TAB} keeps point fixed with respect to |
| 376 | the characters around it. | 380 | the characters around it. |
| 377 | 381 | ||
| 378 | Use @kbd{C-q @key{TAB}} to insert a tab at point. | 382 | Use @kbd{C-q @key{TAB}} to insert a tab character at point. |
| 379 | 383 | ||
| 380 | @kindex C-j | 384 | @kindex C-j |
| 381 | @findex newline-and-indent | 385 | @findex newline-and-indent |
| @@ -384,12 +388,13 @@ the characters around it. | |||
| 384 | followed by a @key{TAB}. @kbd{C-j} at the end of a line creates a | 388 | followed by a @key{TAB}. @kbd{C-j} at the end of a line creates a |
| 385 | blank line and then gives it the appropriate indentation. | 389 | blank line and then gives it the appropriate indentation. |
| 386 | 390 | ||
| 387 | @key{TAB} indents lines that start within a parenthetical grouping | 391 | @key{TAB} indents a line that starts within a parenthetical grouping |
| 388 | each under the preceding line (or the text after the parenthesis). | 392 | under the preceding line within the grouping, or the text after the |
| 389 | Therefore, if you manually give one of these lines a nonstandard | 393 | parenthesis. Therefore, if you manually give one of these lines a |
| 390 | indentation, the lines below will tend to follow it. This behavior is | 394 | nonstandard indentation, the lines below will tend to follow it. This |
| 391 | convenient in cases where you have overridden the standard result of | 395 | behavior is convenient in cases where you have overridden the standard |
| 392 | @key{TAB} because you find it unaesthetic for a particular line. | 396 | result of @key{TAB} because you find it unaesthetic for a particular |
| 397 | line. | ||
| 393 | 398 | ||
| 394 | Remember that an open-parenthesis, open-brace or other opening delimiter | 399 | Remember that an open-parenthesis, open-brace or other opening delimiter |
| 395 | at the left margin is assumed by Emacs (including the indentation routines) | 400 | at the left margin is assumed by Emacs (including the indentation routines) |
| @@ -586,10 +591,11 @@ example, | |||
| 586 | 591 | ||
| 587 | @noindent | 592 | @noindent |
| 588 | specifies an explicit choice for Java mode, and the default @samp{gnu} | 593 | specifies an explicit choice for Java mode, and the default @samp{gnu} |
| 589 | style for the other C-like modes. This variable takes effect when you | 594 | style for the other C-like modes. (These settings are actually the |
| 590 | select one of the C-like major modes; thus, if you specify a new | 595 | defaults.) This variable takes effect when you select one of the |
| 591 | default style for Java mode, you can make it take effect in an | 596 | C-like major modes; thus, if you specify a new default style for Java |
| 592 | existing Java mode buffer by typing @kbd{M-x java-mode} there. | 597 | mode, you can make it take effect in an existing Java mode buffer by |
| 598 | typing @kbd{M-x java-mode} there. | ||
| 593 | 599 | ||
| 594 | The @code{gnu} style specifies the formatting recommended by the GNU | 600 | The @code{gnu} style specifies the formatting recommended by the GNU |
| 595 | Project for C; it is the default, so as to encourage use of our | 601 | Project for C; it is the default, so as to encourage use of our |
| @@ -712,8 +718,10 @@ at or after point and the mark. | |||
| 712 | use @kbd{C-M-@@} (@code{mark-sexp}), which sets mark at the same place | 718 | use @kbd{C-M-@@} (@code{mark-sexp}), which sets mark at the same place |
| 713 | that @kbd{C-M-f} would move to. @kbd{C-M-@@} takes arguments like | 719 | that @kbd{C-M-f} would move to. @kbd{C-M-@@} takes arguments like |
| 714 | @kbd{C-M-f}. In particular, a negative argument is useful for putting | 720 | @kbd{C-M-f}. In particular, a negative argument is useful for putting |
| 715 | the mark at the beginning of the previous balanced expression. | 721 | the mark at the beginning of the previous balanced expression. The |
| 716 | The alias @kbd{C-M-@key{SPC}} is equivalent to @kbd{C-M-@@}. | 722 | alias @kbd{C-M-@key{SPC}} is equivalent to @kbd{C-M-@@}. If you use |
| 723 | this command repeatedly, or in Transient Mark mode whenever the mark | ||
| 724 | is active, it extends the region by one sexp each time. | ||
| 717 | 725 | ||
| 718 | In languages that use infix operators, such as C, it is not possible | 726 | In languages that use infix operators, such as C, it is not possible |
| 719 | to recognize all balanced expressions as such because there can be | 727 | to recognize all balanced expressions as such because there can be |
| @@ -1066,9 +1074,10 @@ use in your program. | |||
| 1066 | @kindex C-h S | 1074 | @kindex C-h S |
| 1067 | For C, Lisp, and other languages that have documentation in Info, | 1075 | For C, Lisp, and other languages that have documentation in Info, |
| 1068 | you can use @kbd{C-h S} (@code{info-lookup-symbol}) to view the Info | 1076 | you can use @kbd{C-h S} (@code{info-lookup-symbol}) to view the Info |
| 1069 | documentation for a symbol. You specify the symbol with the | 1077 | documentation for a symbol used in the program. You specify the |
| 1070 | minibuffer; the default is the symbol appearing in the buffer at | 1078 | symbol with the minibuffer; the default is the symbol appearing in the |
| 1071 | point. | 1079 | buffer at point. For example, in C mode this looks for the symbol in |
| 1080 | the C Library Manual. | ||
| 1072 | 1081 | ||
| 1073 | The major mode determines where to look for documentation for the | 1082 | The major mode determines where to look for documentation for the |
| 1074 | symbol---which Info files to look in, and which indices to search. | 1083 | symbol---which Info files to look in, and which indices to search. |
| @@ -1316,7 +1325,9 @@ symbol names. | |||
| 1316 | The character @kbd{M-@key{TAB}} runs a command to complete the | 1325 | The character @kbd{M-@key{TAB}} runs a command to complete the |
| 1317 | partial symbol before point against the set of meaningful symbol | 1326 | partial symbol before point against the set of meaningful symbol |
| 1318 | names. This command inserts at point any additional characters that | 1327 | names. This command inserts at point any additional characters that |
| 1319 | it can determine from the partial name. | 1328 | it can determine from the partial name. (If your window manager |
| 1329 | defines @kbd{M-@key{TAB}} to switch windows, you can type this Emacs | ||
| 1330 | command as @kbd{@key{ESC} @key{TAB}}.) | ||
| 1320 | 1331 | ||
| 1321 | If the partial name in the buffer has multiple possible completions | 1332 | If the partial name in the buffer has multiple possible completions |
| 1322 | that differ in the very next character, so that it is impossible to | 1333 | that differ in the very next character, so that it is impossible to |
| @@ -1513,10 +1524,10 @@ With prefix argument @var{n}, move @var{n} times. | |||
| 1513 | 1524 | ||
| 1514 | In C mode and related modes, certain printing characters are | 1525 | In C mode and related modes, certain printing characters are |
| 1515 | ``electric''---in addition to inserting themselves, they also reindent | 1526 | ``electric''---in addition to inserting themselves, they also reindent |
| 1516 | the current line and may insert newlines. This feature is controlled by | 1527 | the current line, and optionally also insert newlines. The |
| 1517 | the variable @code{c-auto-newline}. The ``electric'' characters are | 1528 | ``electric'' characters are @kbd{@{}, @kbd{@}}, @kbd{:}, @kbd{#}, |
| 1518 | @kbd{@{}, @kbd{@}}, @kbd{:}, @kbd{#}, @kbd{;}, @kbd{,}, @kbd{<}, | 1529 | @kbd{;}, @kbd{,}, @kbd{<}, @kbd{>}, @kbd{/}, @kbd{*}, @kbd{(}, and |
| 1519 | @kbd{>}, @kbd{/}, @kbd{*}, @kbd{(}, and @kbd{)}. | 1530 | @kbd{)}. |
| 1520 | 1531 | ||
| 1521 | Electric characters insert newlines only when the @dfn{auto-newline} | 1532 | Electric characters insert newlines only when the @dfn{auto-newline} |
| 1522 | feature is enabled (indicated by @samp{/a} in the mode line after the | 1533 | feature is enabled (indicated by @samp{/a} in the mode line after the |