diff options
| author | Richard M. Stallman | 2006-02-08 00:11:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-02-08 00:11:23 +0000 |
| commit | dfec8297317cb3074ef7df25eff0fc908ba861d6 (patch) | |
| tree | 72b5ee74bde2f2a776b3e07e272a17c93e1a7b85 /man/programs.texi | |
| parent | 3f7ba267740e16c406e1509a86ec58867fe34e33 (diff) | |
| download | emacs-dfec8297317cb3074ef7df25eff0fc908ba861d6.tar.gz emacs-dfec8297317cb3074ef7df25eff0fc908ba861d6.zip | |
Minor cleanups.
(Comment Commands): Mention momentary Transient Mark mode.
(Matching): Be more specific about customizing show-paren-mode.
(Info Lookup): Don't list the modes that support C-h S.
Just say what it does in an unsupported mode.
(Man Page): Delete excessive info on customizing woman.
(Motion in C): Don't mention c-for/backward-into-nomenclature.
Diffstat (limited to 'man/programs.texi')
| -rw-r--r-- | man/programs.texi | 144 |
1 files changed, 46 insertions, 98 deletions
diff --git a/man/programs.texi b/man/programs.texi index b3870eeafee..3e7978952a4 100644 --- a/man/programs.texi +++ b/man/programs.texi | |||
| @@ -259,8 +259,8 @@ defun. This is the easiest way to get ready to kill the defun in | |||
| 259 | order to move it to a different place in the file. If you use the | 259 | order to move it to a different place in the file. If you use the |
| 260 | command while point is between defuns, it uses the following defun. | 260 | command while point is between defuns, it uses the following defun. |
| 261 | Successive uses of @kbd{C-M-h}, or using it in Transient Mark mode | 261 | Successive uses of @kbd{C-M-h}, or using it in Transient Mark mode |
| 262 | when the mark is active, includes an additional defun in the region | 262 | when the mark is active, extends the end of the region to include one |
| 263 | each time. | 263 | more defun each time. |
| 264 | 264 | ||
| 265 | In C mode, @kbd{C-M-h} runs the function @code{c-mark-function}, | 265 | In C mode, @kbd{C-M-h} runs the function @code{c-mark-function}, |
| 266 | which is almost the same as @code{mark-defun}; the difference is that | 266 | which is almost the same as @code{mark-defun}; the difference is that |
| @@ -296,9 +296,9 @@ name. You can also add the buffer's index to the menu bar by calling | |||
| 296 | @code{imenu-add-menubar-index}. If you want to have this menu bar | 296 | @code{imenu-add-menubar-index}. If you want to have this menu bar |
| 297 | item available for all buffers in a certain major mode, you can do | 297 | item available for all buffers in a certain major mode, you can do |
| 298 | this by adding @code{imenu-add-menubar-index} to its mode hook. But | 298 | this by adding @code{imenu-add-menubar-index} to its mode hook. But |
| 299 | if you have done that, you will have to wait each time you visit a | 299 | if you have done that, you will have to wait a little while each time |
| 300 | file in that mode, while Emacs finds all the definitions in that | 300 | you visit a file in that mode, while Emacs finds all the definitions |
| 301 | buffer. | 301 | in that buffer. |
| 302 | 302 | ||
| 303 | @vindex imenu-auto-rescan | 303 | @vindex imenu-auto-rescan |
| 304 | When you change the contents of a buffer, if you add or delete | 304 | When you change the contents of a buffer, if you add or delete |
| @@ -374,8 +374,6 @@ usual conventions of the language you are editing. | |||
| 374 | Adjust indentation of current line. | 374 | Adjust indentation of current line. |
| 375 | @item C-j | 375 | @item C-j |
| 376 | Equivalent to @key{RET} followed by @key{TAB} (@code{newline-and-indent}). | 376 | Equivalent to @key{RET} followed by @key{TAB} (@code{newline-and-indent}). |
| 377 | @item @key{LINEFEED} | ||
| 378 | This key, if the keyboard has it, is another way to enter @kbd{C-j}. | ||
| 379 | @end table | 377 | @end table |
| 380 | 378 | ||
| 381 | @kindex TAB @r{(programming modes)} | 379 | @kindex TAB @r{(programming modes)} |
| @@ -400,8 +398,8 @@ the characters around it. | |||
| 400 | @kindex C-j | 398 | @kindex C-j |
| 401 | @findex newline-and-indent | 399 | @findex newline-and-indent |
| 402 | When entering lines of new code, use @kbd{C-j} | 400 | When entering lines of new code, use @kbd{C-j} |
| 403 | (@code{newline-and-indent}), which is equivalent to a @key{RET} | 401 | (@code{newline-and-indent}), which is equivalent to @key{RET} |
| 404 | followed by a @key{TAB}. @kbd{C-j} at the end of a line creates a | 402 | followed by @key{TAB}. @kbd{C-j} at the end of a line creates a |
| 405 | blank line and then gives it the appropriate indentation. | 403 | blank line and then gives it the appropriate indentation. |
| 406 | 404 | ||
| 407 | @key{TAB} indents a line that starts within a parenthetical grouping | 405 | @key{TAB} indents a line that starts within a parenthetical grouping |
| @@ -412,7 +410,7 @@ behavior is convenient in cases where you have overridden the standard | |||
| 412 | result of @key{TAB} because you find it unaesthetic for a particular | 410 | result of @key{TAB} because you find it unaesthetic for a particular |
| 413 | line. | 411 | line. |
| 414 | 412 | ||
| 415 | By default, an open-parenthesis, open-brace or other opening | 413 | In some modes, an open-parenthesis, open-brace or other opening |
| 416 | delimiter at the left margin is assumed by Emacs (including the | 414 | delimiter at the left margin is assumed by Emacs (including the |
| 417 | indentation routines) to be the start of a function. This speeds up | 415 | indentation routines) to be the start of a function. This speeds up |
| 418 | indentation commands. If you will be editing text which contains | 416 | indentation commands. If you will be editing text which contains |
| @@ -422,7 +420,7 @@ functions, even inside strings or comments, you must set | |||
| 422 | Paren}, for more information on this. | 420 | Paren}, for more information on this. |
| 423 | 421 | ||
| 424 | Normally, lines are indented with tabs and spaces. If you want Emacs | 422 | Normally, lines are indented with tabs and spaces. If you want Emacs |
| 425 | to use spaces only, see @ref{Just Spaces}. | 423 | to use spaces only, set @code{indent-tabs-mode} (@pref{Just Spaces}). |
| 426 | 424 | ||
| 427 | @node Multi-line Indent | 425 | @node Multi-line Indent |
| 428 | @subsection Indenting Several Lines | 426 | @subsection Indenting Several Lines |
| @@ -587,8 +585,8 @@ typing @key{C-M-q} at the start of a function definition. | |||
| 587 | 585 | ||
| 588 | @kindex C-c . @r{(C mode)} | 586 | @kindex C-c . @r{(C mode)} |
| 589 | @findex c-set-style | 587 | @findex c-set-style |
| 590 | To choose a style for the current buffer, use the command @kbd{C-c | 588 | To choose a style for the current buffer, use the command @w{@kbd{C-c |
| 591 | .}. Specify a style name as an argument (case is not significant). | 589 | .}}. Specify a style name as an argument (case is not significant). |
| 592 | This command affects the current buffer only, and it affects only | 590 | This command affects the current buffer only, and it affects only |
| 593 | future invocations of the indentation commands; it does not reindent | 591 | future invocations of the indentation commands; it does not reindent |
| 594 | the code already in the buffer. To reindent the whole buffer in the | 592 | the code already in the buffer. To reindent the whole buffer in the |
| @@ -740,7 +738,7 @@ that @kbd{C-M-f} would move to. @kbd{C-M-@@} takes arguments like | |||
| 740 | the mark at the beginning of the previous balanced expression. The | 738 | the mark at the beginning of the previous balanced expression. The |
| 741 | alias @kbd{C-M-@key{SPC}} is equivalent to @kbd{C-M-@@}. When you | 739 | alias @kbd{C-M-@key{SPC}} is equivalent to @kbd{C-M-@@}. When you |
| 742 | repeat this command, or use it in Transient Mark mode when the mark is | 740 | repeat this command, or use it in Transient Mark mode when the mark is |
| 743 | active, it extends the region by one sexp each time. | 741 | active, it extends the end of the region by one sexp each time. |
| 744 | 742 | ||
| 745 | In languages that use infix operators, such as C, it is not possible | 743 | In languages that use infix operators, such as C, it is not possible |
| 746 | to recognize all balanced expressions as such because there can be | 744 | to recognize all balanced expressions as such because there can be |
| @@ -791,9 +789,7 @@ parenthetical groupings, skipping blithely over any amount of text | |||
| 791 | that doesn't include meaningful parentheses (symbols, strings, etc.). | 789 | that doesn't include meaningful parentheses (symbols, strings, etc.). |
| 792 | 790 | ||
| 793 | @kindex C-M-u | 791 | @kindex C-M-u |
| 794 | @kindex C-M-d | ||
| 795 | @findex backward-up-list | 792 | @findex backward-up-list |
| 796 | @findex down-list | ||
| 797 | @kbd{C-M-n} and @kbd{C-M-p} try to stay at the same level in the | 793 | @kbd{C-M-n} and @kbd{C-M-p} try to stay at the same level in the |
| 798 | parenthesis structure. To move @emph{up} one (or @var{n}) levels, use | 794 | parenthesis structure. To move @emph{up} one (or @var{n}) levels, use |
| 799 | @kbd{C-M-u} (@code{backward-up-list}). @kbd{C-M-u} moves backward up | 795 | @kbd{C-M-u} (@code{backward-up-list}). @kbd{C-M-u} moves backward up |
| @@ -801,6 +797,8 @@ past one unmatched opening delimiter. A positive argument serves as a | |||
| 801 | repeat count; a negative argument reverses the direction of motion, so | 797 | repeat count; a negative argument reverses the direction of motion, so |
| 802 | that the command moves forward and up one or more levels. | 798 | that the command moves forward and up one or more levels. |
| 803 | 799 | ||
| 800 | @kindex C-M-d | ||
| 801 | @findex down-list | ||
| 804 | To move @emph{down} in the parenthesis structure, use @kbd{C-M-d} | 802 | To move @emph{down} in the parenthesis structure, use @kbd{C-M-d} |
| 805 | (@code{down-list}). In Lisp mode, where @samp{(} is the only opening | 803 | (@code{down-list}). In Lisp mode, where @samp{(} is the only opening |
| 806 | delimiter, this is nearly the same as searching for a @samp{(}. An | 804 | delimiter, this is nearly the same as searching for a @samp{(}. An |
| @@ -852,11 +850,9 @@ highlighted. (There is no need to highlight the opening delimiter in | |||
| 852 | that case, because the cursor appears on top of that character.) Use | 850 | that case, because the cursor appears on top of that character.) Use |
| 853 | the command @kbd{M-x show-paren-mode} to enable or disable this mode. | 851 | the command @kbd{M-x show-paren-mode} to enable or disable this mode. |
| 854 | 852 | ||
| 855 | By default, @code{show-paren-mode} uses colors to highlight the | 853 | Show Paren mode uses the faces @code{show-paren-match} and |
| 856 | parentheses. However, if your display doesn't support colors, you can | 854 | @code{show-paren-mismatch} to highlight parentheses; you can customize |
| 857 | customize the faces @code{show-paren-match-face} and | 855 | them to control how highlighting looks. @xref{Face Customization}. |
| 858 | @code{show-paren-mismatch-face} to use other attributes, such as bold or | ||
| 859 | underline. @xref{Face Customization}. | ||
| 860 | 856 | ||
| 861 | @node Comments | 857 | @node Comments |
| 862 | @section Manipulating Comments | 858 | @section Manipulating Comments |
| @@ -911,11 +907,11 @@ The new comment begins with the string Emacs thinks comments should | |||
| 911 | start with (the value of @code{comment-start}; see below). Point is | 907 | start with (the value of @code{comment-start}; see below). Point is |
| 912 | after that string, so you can insert the text of the comment right | 908 | after that string, so you can insert the text of the comment right |
| 913 | away. If the major mode has specified a string to terminate comments, | 909 | away. If the major mode has specified a string to terminate comments, |
| 914 | @kbd{M-;} inserts that too, to keep the syntax valid. | 910 | @kbd{M-;} inserts that after point, to keep the syntax valid. |
| 915 | 911 | ||
| 916 | If the text of the line extends past the comment column, then the | 912 | If the text of the line extends past the comment column, this |
| 917 | comment start string is indented to a suitable boundary (usually, at | 913 | command indents the comment start string to a suitable boundary |
| 918 | least one space is inserted). | 914 | (usually, at least one space is inserted). |
| 919 | 915 | ||
| 920 | You can also use @kbd{M-;} to align an existing comment. If a line | 916 | You can also use @kbd{M-;} to align an existing comment. If a line |
| 921 | already contains the comment-start string, @kbd{M-;} reindents it to | 917 | already contains the comment-start string, @kbd{M-;} reindents it to |
| @@ -943,7 +939,8 @@ removes comment delimiters on each line of the region. (If every line | |||
| 943 | is a comment, it removes comment delimiters from each; otherwise, it | 939 | is a comment, it removes comment delimiters from each; otherwise, it |
| 944 | adds comment delimiters to each.) If you are not using Transient Mark | 940 | adds comment delimiters to each.) If you are not using Transient Mark |
| 945 | mode, then you should use the commands @code{comment-region} and | 941 | mode, then you should use the commands @code{comment-region} and |
| 946 | @code{uncomment-region} to do these jobs (@pxref{Multi-Line Comments}). | 942 | @code{uncomment-region} to do these jobs (@pxref{Multi-Line Comments}), |
| 943 | or else enable Transient Mark mode momentarily (@pxref{Momentary Mark}). | ||
| 947 | A prefix argument used in these circumstances specifies how many | 944 | A prefix argument used in these circumstances specifies how many |
| 948 | comment delimiters to add or how many to delete. | 945 | comment delimiters to add or how many to delete. |
| 949 | 946 | ||
| @@ -964,8 +961,8 @@ and by not changing the indentation of a triple-semicolon comment at all. | |||
| 964 | (1+ x)) ; This line adds one. | 961 | (1+ x)) ; This line adds one. |
| 965 | @end example | 962 | @end example |
| 966 | 963 | ||
| 967 | For C-like buffers, you can configure the exact effect of @kbd{M-;} | 964 | For C-like modes, you can configure the exact effect of @kbd{M-;} |
| 968 | more flexibly than for most buffers by setting the user options | 965 | more flexibly than for most buffers by setting the variables |
| 969 | @code{c-indent-comment-alist} and | 966 | @code{c-indent-comment-alist} and |
| 970 | @code{c-indent-comments-syntactically-p}. For example, on a line | 967 | @code{c-indent-comments-syntactically-p}. For example, on a line |
| 971 | ending in a closing brace, @kbd{M-;} puts the comment one space after | 968 | ending in a closing brace, @kbd{M-;} puts the comment one space after |
| @@ -992,7 +989,7 @@ in just this fashion. | |||
| 992 | @kindex C-c C-c (C mode) | 989 | @kindex C-c C-c (C mode) |
| 993 | @findex comment-region | 990 | @findex comment-region |
| 994 | To turn existing lines into comment lines, use the @kbd{M-x | 991 | To turn existing lines into comment lines, use the @kbd{M-x |
| 995 | comment-region} command (or type @kbd{C-c C-c} in C-like buffers). It | 992 | comment-region} command (or type @kbd{C-c C-c} in C-like modes). It |
| 996 | adds comment delimiters to the lines that start in the region, thus | 993 | adds comment delimiters to the lines that start in the region, thus |
| 997 | commenting them out. With a negative argument, it does the | 994 | commenting them out. With a negative argument, it does the |
| 998 | opposite---it deletes comment delimiters from the lines in the region. | 995 | opposite---it deletes comment delimiters from the lines in the region. |
| @@ -1103,29 +1100,31 @@ use in your program. | |||
| 1103 | @findex info-lookup-symbol | 1100 | @findex info-lookup-symbol |
| 1104 | @findex info-lookup-file | 1101 | @findex info-lookup-file |
| 1105 | @kindex C-h S | 1102 | @kindex C-h S |
| 1106 | For C, Lisp, and other languages that have documentation in Info, | 1103 | For many major modes, that apply to languages that have |
| 1107 | you can use @kbd{C-h S} (@code{info-lookup-symbol}) to view the Info | 1104 | documentation in Info, you can use @kbd{C-h S} |
| 1108 | documentation for a symbol used in the program. You specify the | 1105 | (@code{info-lookup-symbol}) to view the Info documentation for a |
| 1109 | symbol with the minibuffer; the default is the symbol appearing in the | 1106 | symbol used in the program. You specify the symbol with the |
| 1110 | buffer at point. For example, in C mode this looks for the symbol in | 1107 | minibuffer; the default is the symbol appearing in the buffer at |
| 1111 | the C Library Manual. | 1108 | point. For example, in C mode this looks for the symbol in the C |
| 1109 | Library Manual. The command only works if the appropriate manual's | ||
| 1110 | Info files are installed. | ||
| 1112 | 1111 | ||
| 1113 | The major mode determines where to look for documentation for the | 1112 | The major mode determines where to look for documentation for the |
| 1114 | symbol---which Info files to look in, and which indices to search. | 1113 | symbol---which Info files to look in, and which indices to search. |
| 1115 | You can also use @kbd{M-x info-lookup-file} to look for documentation | 1114 | You can also use @kbd{M-x info-lookup-file} to look for documentation |
| 1116 | for a file name. | 1115 | for a file name. |
| 1117 | 1116 | ||
| 1118 | This feature currently supports the modes AWK, Autoconf, Bison, C, | 1117 | If you use @kbd{C-h S} in a major mode that does not support it, |
| 1119 | Emacs Lisp, LaTeX, M4, Makefile, Octave, Perl, Scheme, and Texinfo, | 1118 | it asks you to specify the ``symbol help mode''. You should enter |
| 1120 | provided you have installed the relevant Info files, which are | 1119 | a command such as @code{c-mode} that would select a major |
| 1121 | typically available with the appropriate GNU package. | 1120 | mode which @kbd{C-h S} does support. |
| 1122 | 1121 | ||
| 1123 | @node Man Page | 1122 | @node Man Page |
| 1124 | @subsection Man Page Lookup | 1123 | @subsection Man Page Lookup |
| 1125 | 1124 | ||
| 1126 | @cindex manual page | 1125 | @cindex manual page |
| 1127 | On Unix, the main form of on-line documentation was the @dfn{manual | 1126 | On Unix, the main form of on-line documentation was the @dfn{manual |
| 1128 | page} or @dfn{man page}. In the GNU operating system, we hope to | 1127 | page} or @dfn{man page}. In the GNU operating system, we aim to |
| 1129 | replace man pages with better-organized manuals that you can browse | 1128 | replace man pages with better-organized manuals that you can browse |
| 1130 | with Info (@pxref{Misc Help}). This process is not finished, so it is | 1129 | with Info (@pxref{Misc Help}). This process is not finished, so it is |
| 1131 | still useful to read manual pages. | 1130 | still useful to read manual pages. |
| @@ -1151,8 +1150,8 @@ a man page from a specific section, type | |||
| 1151 | when @kbd{M-x manual-entry} prompts for the topic. For example, to | 1150 | when @kbd{M-x manual-entry} prompts for the topic. For example, to |
| 1152 | read the man page for the C library function @code{chmod} (as opposed | 1151 | read the man page for the C library function @code{chmod} (as opposed |
| 1153 | to a command of the same name), type @kbd{M-x manual-entry @key{RET} | 1152 | to a command of the same name), type @kbd{M-x manual-entry @key{RET} |
| 1154 | chmod(2) @key{RET}} (@code{chmod} is a system call, so it is in | 1153 | chmod(2) @key{RET}}. (@code{chmod} is a system call, so it is in |
| 1155 | section @samp{2}). | 1154 | section @samp{2}.) |
| 1156 | 1155 | ||
| 1157 | @vindex Man-switches | 1156 | @vindex Man-switches |
| 1158 | If you do not specify a section, the results depend on how the | 1157 | If you do not specify a section, the results depend on how the |
| @@ -1203,42 +1202,6 @@ several manual pages by the same name exist in different sections, it | |||
| 1203 | pops up a window with possible candidates asking you to choose one of | 1202 | pops up a window with possible candidates asking you to choose one of |
| 1204 | them. | 1203 | them. |
| 1205 | 1204 | ||
| 1206 | @vindex woman-manpath | ||
| 1207 | By default, @kbd{M-x woman} looks for manual pages in the | ||
| 1208 | directories specified in the @code{MANPATH} environment variable. (If | ||
| 1209 | @code{MANPATH} is not set, @code{woman} uses a suitable default value, | ||
| 1210 | which can be customized.) More precisely, @code{woman} looks for | ||
| 1211 | subdirectories that match the shell wildcard pattern @file{man*} in each one | ||
| 1212 | of these directories, and tries to find the manual pages in those | ||
| 1213 | subdirectories. When first invoked, @kbd{M-x woman} converts the | ||
| 1214 | value of @code{MANPATH} to a list of directory names and stores that | ||
| 1215 | list in the @code{woman-manpath} variable. Changing the value of this | ||
| 1216 | variable is another way to control the list of directories used. | ||
| 1217 | |||
| 1218 | @vindex woman-path | ||
| 1219 | You can also augment the list of directories searched by | ||
| 1220 | @code{woman} by setting the value of the @code{woman-path} variable. | ||
| 1221 | This variable should hold a list of specific directories which | ||
| 1222 | @code{woman} should search, in addition to those in | ||
| 1223 | @code{woman-manpath}. Unlike @code{woman-manpath}, the directories in | ||
| 1224 | @code{woman-path} are searched for the manual pages, not for | ||
| 1225 | @file{man*} subdirectories. | ||
| 1226 | |||
| 1227 | @findex woman-find-file | ||
| 1228 | Occasionally, you might need to display manual pages that are not in | ||
| 1229 | any of the directories listed by @code{woman-manpath} and | ||
| 1230 | @code{woman-path}. The @kbd{M-x woman-find-file} command prompts for a | ||
| 1231 | name of a manual page file, with completion, and then formats and | ||
| 1232 | displays that file like @kbd{M-x woman} does. | ||
| 1233 | |||
| 1234 | @vindex woman-dired-keys | ||
| 1235 | The first time you invoke @kbd{M-x woman}, it defines the Dired | ||
| 1236 | @kbd{W} key to run the @code{woman-find-file} command on the current | ||
| 1237 | line's file. You can disable this by setting the variable | ||
| 1238 | @code{woman-dired-keys} to @code{nil}. @xref{Dired}. In addition, | ||
| 1239 | the Tar-mode @kbd{w} key is define to invoke @code{woman-find-file} on | ||
| 1240 | the current line's archive member. | ||
| 1241 | |||
| 1242 | For more information about setting up and using @kbd{M-x woman}, see | 1205 | For more information about setting up and using @kbd{M-x woman}, see |
| 1243 | @ref{Top, WoMan, Browse UN*X Manual Pages WithOut Man, woman, The WoMan | 1206 | @ref{Top, WoMan, Browse UN*X Manual Pages WithOut Man, woman, The WoMan |
| 1244 | Manual}. | 1207 | Manual}. |
| @@ -1325,8 +1288,8 @@ Hide all blocks @var{n} levels below this block | |||
| 1325 | Non-@code{nil} says that @kbd{hs-hide-all} should hide comments too. | 1288 | Non-@code{nil} says that @kbd{hs-hide-all} should hide comments too. |
| 1326 | 1289 | ||
| 1327 | @item hs-isearch-open | 1290 | @item hs-isearch-open |
| 1328 | Specifies what kind of hidden blocks to open in Isearch mode. | 1291 | Specifies what kind of hidden blocks incremental search should make |
| 1329 | The value should be one of these four symbols: | 1292 | visible. The value should be one of these four symbols: |
| 1330 | 1293 | ||
| 1331 | @table @code | 1294 | @table @code |
| 1332 | @item code | 1295 | @item code |
| @@ -1533,24 +1496,6 @@ moves by sentences instead of statements. | |||
| 1533 | Move point to the end of the innermost C statement or sentence; like | 1496 | Move point to the end of the innermost C statement or sentence; like |
| 1534 | @kbd{M-a} except that it moves in the other direction | 1497 | @kbd{M-a} except that it moves in the other direction |
| 1535 | (@code{c-end-of-statement}). | 1498 | (@code{c-end-of-statement}). |
| 1536 | |||
| 1537 | @item M-x c-backward-into-nomenclature | ||
| 1538 | @findex c-backward-into-nomenclature | ||
| 1539 | Move point backward to beginning of a C++ nomenclature section or | ||
| 1540 | word. With prefix argument @var{n}, move @var{n} times. If @var{n} | ||
| 1541 | is negative, move forward. C++ nomenclature means a symbol name in | ||
| 1542 | the style of NamingSymbolsWithMixedCaseAndNoUnderlines; each capital | ||
| 1543 | letter begins a section or word. Rather than this command, you might | ||
| 1544 | well prefer the newer ``Subword Mode'', which does the same thing | ||
| 1545 | better. @xref{Other C Commands}. | ||
| 1546 | |||
| 1547 | In the GNU project, we recommend using underscores to separate words | ||
| 1548 | within an identifier in C or C++, rather than using case distinctions. | ||
| 1549 | |||
| 1550 | @item M-x c-forward-into-nomenclature | ||
| 1551 | @findex c-forward-into-nomenclature | ||
| 1552 | Move point forward to end of a C++ nomenclature section or word. | ||
| 1553 | With prefix argument @var{n}, move @var{n} times. | ||
| 1554 | @end table | 1499 | @end table |
| 1555 | 1500 | ||
| 1556 | @node Electric C | 1501 | @node Electric C |
| @@ -1661,6 +1606,9 @@ the flag @samp{/w} on the mode line after the mode name | |||
| 1661 | (e.g. @samp{C/law}). You can even use @kbd{M-x c-subword-mode} in | 1606 | (e.g. @samp{C/law}). You can even use @kbd{M-x c-subword-mode} in |
| 1662 | non-CC Mode buffers. | 1607 | non-CC Mode buffers. |
| 1663 | 1608 | ||
| 1609 | In the GNU project, we recommend using underscores to separate words | ||
| 1610 | within an identifier in C or C++, rather than using case distinctions. | ||
| 1611 | |||
| 1664 | @item M-x c-context-line-break | 1612 | @item M-x c-context-line-break |
| 1665 | @findex c-context-line-break | 1613 | @findex c-context-line-break |
| 1666 | This command inserts a line break and indents the new line in a manner | 1614 | This command inserts a line break and indents the new line in a manner |