aboutsummaryrefslogtreecommitdiffstats
path: root/man/programs.texi
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-16 10:17:01 +0000
committerRichard M. Stallman2005-02-16 10:17:01 +0000
commit64e207c032f8b69ec1986091c1bd437997474762 (patch)
tree5e2ffafae4f118ee2159877060c3c863ff91b648 /man/programs.texi
parent3f6cafd9cf62fdd525b36a1feb61da6890cc6ba7 (diff)
downloademacs-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.texi55
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,
84ASM, AWK, C, C++, Delphi (Object Pascal), Fortran (free format and fixed 85ASM, AWK, C, C++, Delphi (Object Pascal), Fortran (free format and fixed
85format), Icon, IDL (CORBA), IDLWAVE, Java, Metafont (@TeX{}'s 86format), Icon, IDL (CORBA), IDLWAVE, Java, Metafont (@TeX{}'s
86companion for font creation), Modula2, Objective-C, Octave, Pascal, 87companion for font creation), Modula2, Objective-C, Octave, Pascal,
87Perl, Pike, PostScript, Prolog, Simula, Tcl, and VHDL. There is 88Perl, Pike, PostScript, Prolog, Python, Simula, Tcl, and VHDL. There is
88also a major mode for makefiles, called Makefile mode. An alternative 89also a major mode for makefiles, called Makefile mode. An alternative
89mode for Perl is called CPerl mode. Modes are available for the 90mode for Perl is called CPerl mode. Modes are available for the
90scripting languages of the common GNU and Unix shells, VMS DCL, and 91scripting 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
241defun. This is the easiest way to get ready to kill the defun in 242defun. This is the easiest way to get ready to kill the defun in
242order to move it to a different place in the file. If you use the 243order to move it to a different place in the file. If you use the
243command while point is between defuns, it uses the following defun. 244command while point is between defuns, it uses the following defun.
245Successive uses of @kbd{C-M-h}, or using it in Transient Mark mode
246when the mark is active, includes an additional defun in the region
247each 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},
246which is almost the same as @code{mark-defun}; the difference is that 250which 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
375that whitespace; otherwise, @key{TAB} keeps point fixed with respect to 379that whitespace; otherwise, @key{TAB} keeps point fixed with respect to
376the characters around it. 380the 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.
384followed by a @key{TAB}. @kbd{C-j} at the end of a line creates a 388followed by a @key{TAB}. @kbd{C-j} at the end of a line creates a
385blank line and then gives it the appropriate indentation. 389blank 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
388each under the preceding line (or the text after the parenthesis). 392under the preceding line within the grouping, or the text after the
389Therefore, if you manually give one of these lines a nonstandard 393parenthesis. Therefore, if you manually give one of these lines a
390indentation, the lines below will tend to follow it. This behavior is 394nonstandard indentation, the lines below will tend to follow it. This
391convenient in cases where you have overridden the standard result of 395behavior is convenient in cases where you have overridden the standard
392@key{TAB} because you find it unaesthetic for a particular line. 396result of @key{TAB} because you find it unaesthetic for a particular
397line.
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
395at the left margin is assumed by Emacs (including the indentation routines) 400at the left margin is assumed by Emacs (including the indentation routines)
@@ -586,10 +591,11 @@ example,
586 591
587@noindent 592@noindent
588specifies an explicit choice for Java mode, and the default @samp{gnu} 593specifies an explicit choice for Java mode, and the default @samp{gnu}
589style for the other C-like modes. This variable takes effect when you 594style for the other C-like modes. (These settings are actually the
590select one of the C-like major modes; thus, if you specify a new 595defaults.) This variable takes effect when you select one of the
591default style for Java mode, you can make it take effect in an 596C-like major modes; thus, if you specify a new default style for Java
592existing Java mode buffer by typing @kbd{M-x java-mode} there. 597mode, you can make it take effect in an existing Java mode buffer by
598typing @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
595Project for C; it is the default, so as to encourage use of our 601Project for C; it is the default, so as to encourage use of our
@@ -712,8 +718,10 @@ at or after point and the mark.
712use @kbd{C-M-@@} (@code{mark-sexp}), which sets mark at the same place 718use @kbd{C-M-@@} (@code{mark-sexp}), which sets mark at the same place
713that @kbd{C-M-f} would move to. @kbd{C-M-@@} takes arguments like 719that @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
715the mark at the beginning of the previous balanced expression. 721the mark at the beginning of the previous balanced expression. The
716The alias @kbd{C-M-@key{SPC}} is equivalent to @kbd{C-M-@@}. 722alias @kbd{C-M-@key{SPC}} is equivalent to @kbd{C-M-@@}. If you use
723this command repeatedly, or in Transient Mark mode whenever the mark
724is 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
719to recognize all balanced expressions as such because there can be 727to 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,
1068you can use @kbd{C-h S} (@code{info-lookup-symbol}) to view the Info 1076you can use @kbd{C-h S} (@code{info-lookup-symbol}) to view the Info
1069documentation for a symbol. You specify the symbol with the 1077documentation for a symbol used in the program. You specify the
1070minibuffer; the default is the symbol appearing in the buffer at 1078symbol with the minibuffer; the default is the symbol appearing in the
1071point. 1079buffer at point. For example, in C mode this looks for the symbol in
1080the 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
1074symbol---which Info files to look in, and which indices to search. 1083symbol---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
1317partial symbol before point against the set of meaningful symbol 1326partial symbol before point against the set of meaningful symbol
1318names. This command inserts at point any additional characters that 1327names. This command inserts at point any additional characters that
1319it can determine from the partial name. 1328it can determine from the partial name. (If your window manager
1329defines @kbd{M-@key{TAB}} to switch windows, you can type this Emacs
1330command 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
1322that differ in the very next character, so that it is impossible to 1333that 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
1516the current line and may insert newlines. This feature is controlled by 1527the current line, and optionally also insert newlines. The
1517the 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}
1522feature is enabled (indicated by @samp{/a} in the mode line after the 1533feature is enabled (indicated by @samp{/a} in the mode line after the