diff options
| author | Miles Bader | 2007-01-02 02:34:44 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-01-02 02:34:44 +0000 |
| commit | e35ae98e41ee3c7b511aa351455683aff26fc3cd (patch) | |
| tree | 6be4accc54e7156820a590566adfff4d12af17cc /man | |
| parent | c24fa7dcae432696df74d2fa537e233bcbeeeb92 (diff) | |
| parent | e19bc9c426237617960d9b6a4ab1f776bdf09ec3 (diff) | |
| download | emacs-e35ae98e41ee3c7b511aa351455683aff26fc3cd.tar.gz emacs-e35ae98e41ee3c7b511aa351455683aff26fc3cd.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 583-585)
- Update from CVS
- Fix admin/quick-install-emacs to work with recent versions of autoconf
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-160
Diffstat (limited to 'man')
| -rw-r--r-- | man/ChangeLog | 43 | ||||
| -rw-r--r-- | man/cc-mode.texi | 167 | ||||
| -rw-r--r-- | man/commands.texi | 9 | ||||
| -rw-r--r-- | man/custom.texi | 30 | ||||
| -rw-r--r-- | man/xresources.texi | 5 |
5 files changed, 172 insertions, 82 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index 3e6fb6d8164..34c900ed619 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,6 +1,47 @@ | |||
| 1 | 2007-01-01 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * cc-mode.texi ("Limitations and Known Bugs"): Document problems with | ||
| 4 | eval-after-load in Emacs <=21 and a workaround. Document that | ||
| 5 | trigraphs are not supported. | ||
| 6 | |||
| 7 | 2007-01-01 Alan Mackenzie <acm@muc.de> | ||
| 8 | |||
| 9 | * cc-mode.texi ("Filling and Breaking"): Amend the doc for | ||
| 10 | c-context-line-break. When invoked within a string, preserve | ||
| 11 | whitespace. Add a backslash only when also in a macro. | ||
| 12 | |||
| 13 | 2007-01-01 Alan Mackenzie <acm@muc.de> | ||
| 14 | |||
| 15 | * cc-mode.texi ("Choosing a Style"): Mention c-file-style. | ||
| 16 | |||
| 17 | 2007-01-01 Alan Mackenzie <acm@muc.de> | ||
| 18 | |||
| 19 | * cc-mode.texi ("Movement Commands", "Sample .emacs File"): C-M-[ae] | ||
| 20 | are now bound by default to c-\(beginning\|end\)-of-defun by default. | ||
| 21 | |||
| 22 | 2007-01-01 Alan Mackenzie <acm@muc.de> | ||
| 23 | |||
| 24 | * cc-mode.texi ("Other Commands"): Move c-set-style (C-c .) here from | ||
| 25 | "Choosing a Style". | ||
| 26 | |||
| 27 | * cc-mode.texi ("Styles"): Add @dfn{style}. | ||
| 28 | |||
| 29 | 2007-01-01 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 30 | |||
| 31 | * xresources.texi (Table of Resources): Add scrollBarWidth resource. | ||
| 32 | |||
| 33 | 2007-01-01 Richard Stallman <rms@gnu.org> | ||
| 34 | |||
| 35 | * commands.texi (User Input): Document keys stolen by window mangers. | ||
| 36 | |||
| 37 | 2006-12-31 Richard Stallman <rms@gnu.org> | ||
| 38 | |||
| 39 | * custom.texi (Specific Customization): Document customize-option | ||
| 40 | instead of customize-variable. | ||
| 41 | |||
| 1 | 2006-12-31 Kim F. Storm <storm@cua.dk> | 42 | 2006-12-31 Kim F. Storm <storm@cua.dk> |
| 2 | 43 | ||
| 3 | * major.texi (Choosing Modes): Document auto-mode-case-fond. | 44 | * major.texi (Choosing Modes): Document auto-mode-case-fold. |
| 4 | 45 | ||
| 5 | 2006-12-30 Kim F. Storm <storm@cua.dk> | 46 | 2006-12-30 Kim F. Storm <storm@cua.dk> |
| 6 | 47 | ||
diff --git a/man/cc-mode.texi b/man/cc-mode.texi index 801f098b9ce..e9a7d46d7fe 100644 --- a/man/cc-mode.texi +++ b/man/cc-mode.texi | |||
| @@ -486,7 +486,7 @@ work just fine right out of the box. Note however that you might not | |||
| 486 | have the latest @ccmode{} release and might want to upgrade your copy | 486 | have the latest @ccmode{} release and might want to upgrade your copy |
| 487 | (see below). | 487 | (see below). |
| 488 | 488 | ||
| 489 | You should probably start by reading the entire chapter | 489 | You should probably start by skimming through the entire chapter |
| 490 | @ref{Commands} to get an overview of @ccmode{}'s capabilities. | 490 | @ref{Commands} to get an overview of @ccmode{}'s capabilities. |
| 491 | 491 | ||
| 492 | After trying out some commands, you may dislike some aspects of | 492 | After trying out some commands, you may dislike some aspects of |
| @@ -687,7 +687,7 @@ that begins at the line's left margin. | |||
| 687 | @item | 687 | @item |
| 688 | When it's @code{nil}, the command indents the line by an extra | 688 | When it's @code{nil}, the command indents the line by an extra |
| 689 | @code{c-basic-offset} columns. A prefix argument acts as a | 689 | @code{c-basic-offset} columns. A prefix argument acts as a |
| 690 | multiplier. A bare prefix (@kbd{C-u @key{TAB}} is equivalent to -1, | 690 | multiplier. A bare prefix (@kbd{C-u @key{TAB}}) is equivalent to -1, |
| 691 | removing @code{c-basic-offset} columns from the indentation. | 691 | removing @code{c-basic-offset} columns from the indentation. |
| 692 | @end itemize | 692 | @end itemize |
| 693 | 693 | ||
| @@ -880,30 +880,29 @@ lines. | |||
| 880 | @ccmode{} contains some useful commands for moving around in C code. | 880 | @ccmode{} contains some useful commands for moving around in C code. |
| 881 | 881 | ||
| 882 | @table @asis | 882 | @table @asis |
| 883 | @item @kbd{M-x c-beginning-of-defun} | 883 | @item @kbd{C-M-a} |
| 884 | @itemx @kbd{M-x c-end-of-defun} | 884 | @itemx @kbd{C-M-e} |
| 885 | @findex c-beginning-of-defun | 885 | @findex c-beginning-of-defun |
| 886 | @findex c-end-of-defun | 886 | @findex c-end-of-defun |
| 887 | @findex beginning-of-defun (c-) | 887 | |
| 888 | @findex end-of-defun (c-) | 888 | Move to the beginning or end of the current or next function. Other |
| 889 | @findex beginning-of-defun | 889 | constructs (such as a structs or classes) which have a brace block |
| 890 | @findex end-of-defun | 890 | also count as ``functions'' here. To move over several functions, you |
| 891 | Move to the start or end of the current top-level definition. This is | 891 | can give these commands a repeat count. |
| 892 | the outermost brace pair which encloses point, together with the | 892 | |
| 893 | function header or similar preamble which precedes the opening brace. | 893 | The start of a function is at its header. The end of the function is |
| 894 | after its closing brace, or after the semicolon of a construct (such | ||
| 895 | as a @code{struct}) which doesn't end at the brace. These two | ||
| 896 | commands try to leave point at the beginning of a line near the actual | ||
| 897 | start or end of the function. This occasionally causes point not to | ||
| 898 | move at all. | ||
| 899 | |||
| 894 | These functions are analogous to the Emacs built-in commands | 900 | These functions are analogous to the Emacs built-in commands |
| 895 | @code{beginning-of-defun} and @code{end-of-defun}, except they | 901 | @code{beginning-of-defun} and @code{end-of-defun}, except they |
| 896 | eliminate the constraint that the top-level opening brace of the defun | 902 | eliminate the constraint that the top-level opening brace of the defun |
| 897 | must be in column zero. See @ref{Defuns,,,@emacsman{}, | 903 | must be in column zero. See @ref{Defuns,,,@emacsman{}, |
| 898 | @emacsmantitle{}}, for more information. | 904 | @emacsmantitle{}}, for more information. |
| 899 | 905 | ||
| 900 | Depending on the coding style you're using, you might prefer these two | ||
| 901 | commands to the standard Emacs ones. If so, consider binding them to | ||
| 902 | @kbd{C-M-a} and @kbd{C-M-e}. @xref{Sample .emacs File}. This | ||
| 903 | customization won't affect the special bindings for these key | ||
| 904 | sequences in force in AWK Mode. For backwards compatibility reasons, | ||
| 905 | the default bindings for @kbd{C-M-a} and @kbd{C-M-e} remain in effect. | ||
| 906 | |||
| 907 | @item @kbd{C-M-a} (AWK Mode) (@code{c-awk-beginning-of-defun}) | 906 | @item @kbd{C-M-a} (AWK Mode) (@code{c-awk-beginning-of-defun}) |
| 908 | @itemx @kbd{C-M-e} (AWK Mode) (@code{c-awk-end-of-defun}) | 907 | @itemx @kbd{C-M-e} (AWK Mode) (@code{c-awk-end-of-defun}) |
| 909 | @kindex C-M-a (AWK Mode) | 908 | @kindex C-M-a (AWK Mode) |
| @@ -912,11 +911,9 @@ the default bindings for @kbd{C-M-a} and @kbd{C-M-e} remain in effect. | |||
| 912 | @findex awk-beginning-of-defun (c-) | 911 | @findex awk-beginning-of-defun (c-) |
| 913 | @findex c-awk-end-of-defun | 912 | @findex c-awk-end-of-defun |
| 914 | @findex awk-end-of-defun (c-) | 913 | @findex awk-end-of-defun (c-) |
| 915 | Move back to the beginning or forward to the end of the current AWK | 914 | Move to the beginning or end of the current or next AWK defun. These |
| 916 | defun. These functions are bound to @kbd{C-M-a} and @kbd{C-M-e} by | 915 | commands can take prefix-arguments, their functionality being entirely |
| 917 | default in AWK Mode. They can take prefix-arguments, their | 916 | equivalent to @code{beginning-of-defun} and @code{end-of-defun}. |
| 918 | functionality being entirely equivalent to @code{beginning-of-defun} | ||
| 919 | and @code{end-of-defun}. | ||
| 920 | 917 | ||
| 921 | AWK Mode @dfn{defuns} are either pattern/action pairs (either of which | 918 | AWK Mode @dfn{defuns} are either pattern/action pairs (either of which |
| 922 | might be implicit) or user defined functions. Having the @samp{@{} and | 919 | might be implicit) or user defined functions. Having the @samp{@{} and |
| @@ -1094,7 +1091,10 @@ prefix like @code{c-indent-new-comment-line}. In normal code it's | |||
| 1094 | indented like @code{newline-and-indent} would do. In macros it acts | 1091 | indented like @code{newline-and-indent} would do. In macros it acts |
| 1095 | like @code{newline-and-indent} but additionally inserts and optionally | 1092 | like @code{newline-and-indent} but additionally inserts and optionally |
| 1096 | aligns the line ending backslash so that the macro remains unbroken. | 1093 | aligns the line ending backslash so that the macro remains unbroken. |
| 1097 | @xref{Custom Macros}, for details about the backslash alignment. | 1094 | @xref{Custom Macros}, for details about the backslash alignment. In a |
| 1095 | string, a backslash is inserted only if the string is within a | ||
| 1096 | macro@footnote{In GCC, unescaped line breaks within strings are | ||
| 1097 | valid.}. | ||
| 1098 | 1098 | ||
| 1099 | This function is not bound to a key by default, but it's intended to be | 1099 | This function is not bound to a key by default, but it's intended to be |
| 1100 | used on the @kbd{RET} key. If you like the behavior of | 1100 | used on the @kbd{RET} key. If you like the behavior of |
| @@ -1710,6 +1710,25 @@ buffers by typing @kbd{M-x c-subword-mode}. | |||
| 1710 | Here are the various other commands that didn't fit anywhere else: | 1710 | Here are the various other commands that didn't fit anywhere else: |
| 1711 | 1711 | ||
| 1712 | @table @asis | 1712 | @table @asis |
| 1713 | @item @kbd{C-c .} (@code{c-set-style}) | ||
| 1714 | @kindex C-c . | ||
| 1715 | @findex c-set-style | ||
| 1716 | @findex set-style (c-) | ||
| 1717 | Switch to the specified style in the current buffer. Use like this: | ||
| 1718 | |||
| 1719 | @example | ||
| 1720 | @kbd{C-c . @var{style-name} @key{RET}} | ||
| 1721 | @end example | ||
| 1722 | |||
| 1723 | You can use the @key{TAB} in the normal way to do completion on the | ||
| 1724 | style name. Note that all style names are case insensitive, even the | ||
| 1725 | ones you define yourself. | ||
| 1726 | |||
| 1727 | Setting a style in this way does @emph{not} automatically reindent your | ||
| 1728 | file. For commands that you can use to view the effect of your changes, | ||
| 1729 | see @ref{Indentation Commands} and @ref{Filling and Breaking}. | ||
| 1730 | |||
| 1731 | For details of the @ccmode{} style system, see @ref{Styles}. | ||
| 1713 | @item @kbd{C-c :} (@code{c-scope-operator}) | 1732 | @item @kbd{C-c :} (@code{c-scope-operator}) |
| 1714 | @kindex C-c : | 1733 | @kindex C-c : |
| 1715 | @findex c-scope-operator | 1734 | @findex c-scope-operator |
| @@ -2363,7 +2382,7 @@ last thing when you enter that language mode. | |||
| 2363 | @end defvar | 2382 | @end defvar |
| 2364 | 2383 | ||
| 2365 | Although these hooks are variables defined in @ccmode{}, you can give | 2384 | Although these hooks are variables defined in @ccmode{}, you can give |
| 2366 | them values before @ccmode{}'s code is loaded - indeed, this is the | 2385 | them values before @ccmode{}'s code is loaded---indeed, this is the |
| 2367 | only way to use @code{c-initialization-hook}. Their values aren't | 2386 | only way to use @code{c-initialization-hook}. Their values aren't |
| 2368 | overwritten when @ccmode{} gets loaded. | 2387 | overwritten when @ccmode{} gets loaded. |
| 2369 | 2388 | ||
| @@ -2476,6 +2495,11 @@ Commas});@* | |||
| 2476 | @cindex styles | 2495 | @cindex styles |
| 2477 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 2496 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 2478 | 2497 | ||
| 2498 | By @dfn{style} we mean the layout of the code---things like how many | ||
| 2499 | columns to indent a block of code, whether an opening brace gets | ||
| 2500 | indented to the level of the code it encloses, or of the construct | ||
| 2501 | that introduces it, or ``hangs'' at the end of a line. | ||
| 2502 | |||
| 2479 | Most people only need to edit code formatted in just a few well-defined | 2503 | Most people only need to edit code formatted in just a few well-defined |
| 2480 | and consistent styles. For example, their organization might impose a | 2504 | and consistent styles. For example, their organization might impose a |
| 2481 | ``blessed'' style that all its programmers must conform to. Similarly, | 2505 | ``blessed'' style that all its programmers must conform to. Similarly, |
| @@ -2577,35 +2601,19 @@ afterwards. | |||
| 2577 | @subsection Choosing a Style | 2601 | @subsection Choosing a Style |
| 2578 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 2602 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 2579 | 2603 | ||
| 2580 | Use @kbd{C-c .} to choose a style interactively: | 2604 | When you create a new buffer, its style will be set from |
| 2581 | 2605 | @code{c-default-style}. The factory default is the style @code{gnu}, | |
| 2582 | @deffn Command c-set-style style-name | 2606 | except in Java and AWK modes where it's @code{java} and @code{awk}. |
| 2583 | @findex set-style (c-) | ||
| 2584 | @kindex C-c . | ||
| 2585 | Switch to the specified style in the current buffer. Use | ||
| 2586 | interactively like this: | ||
| 2587 | |||
| 2588 | @example | ||
| 2589 | @kbd{C-c . @var{style-name} @key{RET}} | ||
| 2590 | @end example | ||
| 2591 | |||
| 2592 | You can use the @key{TAB} in the normal way to do completion on the | ||
| 2593 | style name. Note that all style names are case insensitive, even the | ||
| 2594 | ones you define yourself. | ||
| 2595 | |||
| 2596 | Setting a style in this way does @emph{not} automatically reindent your | ||
| 2597 | file. For commands that you can use to view the effect of your changes, | ||
| 2598 | see @ref{Indentation Commands} and @ref{Filling and Breaking}. | ||
| 2599 | @end deffn | ||
| 2600 | |||
| 2601 | The default style in all newly created buffers is @code{gnu}, except | ||
| 2602 | in Java and AWK modes where it's @code{java} and @code{awk}. | ||
| 2603 | 2607 | ||
| 2604 | Remember that if you set a style variable with the Customization | 2608 | Remember that if you set a style variable with the Customization |
| 2605 | interface or at the top level of your @file{.emacs} file before the | 2609 | interface or at the top level of your @file{.emacs} file before the |
| 2606 | style system is initialised (@pxref{Config Basics}), this setting will | 2610 | style system is initialised (@pxref{Config Basics}), this setting will |
| 2607 | override the one that the style system would have given the variable. | 2611 | override the one that the style system would have given the variable. |
| 2608 | 2612 | ||
| 2613 | To set a buffer's style interactively, use the command @kbd{C-c .} | ||
| 2614 | (@pxref{Other Commands}). To set it from a file's local variable | ||
| 2615 | list, @ref{File Styles}. | ||
| 2616 | |||
| 2609 | @defopt c-default-style | 2617 | @defopt c-default-style |
| 2610 | @vindex default-style (c-) | 2618 | @vindex default-style (c-) |
| 2611 | This variable specifies which style to install by default in new | 2619 | This variable specifies which style to install by default in new |
| @@ -3247,8 +3255,8 @@ the proper functioning of @ccmode{}. | |||
| 3247 | 3255 | ||
| 3248 | This variable is also bound in three other circumstances: | 3256 | This variable is also bound in three other circumstances: |
| 3249 | (i)@w{ }when calling a c-hanging-semi&comma-criteria function | 3257 | (i)@w{ }when calling a c-hanging-semi&comma-criteria function |
| 3250 | (@pxref{Hanging Semicolons and Commas}; (ii)@w{ }when calling a | 3258 | (@pxref{Hanging Semicolons and Commas}); (ii)@w{ }when calling a |
| 3251 | line-up function (@pxref{Custom Line-Up}; (iii)@w{ }when calling a | 3259 | line-up function (@pxref{Custom Line-Up}); (iii)@w{ }when calling a |
| 3252 | c-special-indent-hook function (@pxref{Other Indentation}). | 3260 | c-special-indent-hook function (@pxref{Other Indentation}). |
| 3253 | @end defvar | 3261 | @end defvar |
| 3254 | 3262 | ||
| @@ -3430,7 +3438,11 @@ newlines after semicolons inside one-line inline method definitions | |||
| 3430 | @dfn{Clean-ups} are mechanisms which remove (or exceptionally, add) | 3438 | @dfn{Clean-ups} are mechanisms which remove (or exceptionally, add) |
| 3431 | whitespace in specific circumstances and are complementary to colon | 3439 | whitespace in specific circumstances and are complementary to colon |
| 3432 | and brace hanging. You enable a clean-up by adding its symbol into | 3440 | and brace hanging. You enable a clean-up by adding its symbol into |
| 3433 | @code{c-cleanup-list}. | 3441 | @code{c-cleanup-list}, e.g. like this: |
| 3442 | |||
| 3443 | @example | ||
| 3444 | (add-to-list 'c-cleanup-list 'space-before-funcall) | ||
| 3445 | @end example | ||
| 3434 | 3446 | ||
| 3435 | On the surface, it would seem that clean-ups overlap the functionality | 3447 | On the surface, it would seem that clean-ups overlap the functionality |
| 3436 | provided by the @code{c-hanging-*-alist} variables. Clean-ups, | 3448 | provided by the @code{c-hanging-*-alist} variables. Clean-ups, |
| @@ -3661,10 +3673,11 @@ it's only an empty parenthesis pair. I.e. you will get @samp{signal | |||
| 3661 | closing parenthesis is typed. | 3673 | closing parenthesis is typed. |
| 3662 | 3674 | ||
| 3663 | @item comment-close-slash | 3675 | @item comment-close-slash |
| 3664 | When inside a block comment, terminate the comment when you type a | 3676 | When inside a block comment, terminate the comment when you type a slash |
| 3665 | slash at the beginning of a line (i.e. immediately after the comment | 3677 | at the beginning of a line (i.e. immediately after the comment prefix). |
| 3666 | prefix). This clean-up removes whitespace preceding the slash and if | 3678 | This clean-up removes whitespace preceding the slash and if needed, |
| 3667 | needed, inserts a star to complete the token @samp{*/}. | 3679 | inserts a star to complete the token @samp{*/}. Type @kbd{C-q /} in this |
| 3680 | situation if you just want a literal @samp{/} inserted. | ||
| 3668 | @end table | 3681 | @end table |
| 3669 | 3682 | ||
| 3670 | 3683 | ||
| @@ -5182,7 +5195,7 @@ If an offset specification evaluates to @code{nil}, then a relative | |||
| 5182 | offset of 0 (zero) is used@footnote{There is however a variable | 5195 | offset of 0 (zero) is used@footnote{There is however a variable |
| 5183 | @code{c-strict-syntax-p} that when set to non-@code{nil} will cause an | 5196 | @code{c-strict-syntax-p} that when set to non-@code{nil} will cause an |
| 5184 | error to be signaled in that case. It's now considered obsolete since | 5197 | error to be signaled in that case. It's now considered obsolete since |
| 5185 | it doesn't work well with some of the alignment functions that returns | 5198 | it doesn't work well with some of the alignment functions that return |
| 5186 | @code{nil} instead of zero. You should therefore leave | 5199 | @code{nil} instead of zero. You should therefore leave |
| 5187 | @code{c-strict-syntax-p} set to @code{nil}.}. | 5200 | @code{c-strict-syntax-p} set to @code{nil}.}. |
| 5188 | 5201 | ||
| @@ -6549,18 +6562,16 @@ anchoring position to indent the line in that case. | |||
| 6549 | @appendix Sample .emacs File | 6562 | @appendix Sample .emacs File |
| 6550 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 6563 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 6551 | 6564 | ||
| 6552 | @verbatim | 6565 | Here's a sample .emacs file fragment that might help you along the way. |
| 6553 | ;; Here's a sample .emacs file fragment that might help you along the | 6566 | Just copy this region and paste it into your .emacs file. You might want |
| 6554 | ;; way. Just copy this region and paste it into your .emacs file. | 6567 | to change some of the actual values. |
| 6555 | ;; You might want to change some of the actual values. | ||
| 6556 | 6568 | ||
| 6557 | ;; Make some non-standard key bindings. We can put these in | 6569 | @verbatim |
| 6570 | ;; Make a non-standard key binding. We can put this in | ||
| 6558 | ;; c-mode-base-map because c-mode-map, c++-mode-map, and so on, | 6571 | ;; c-mode-base-map because c-mode-map, c++-mode-map, and so on, |
| 6559 | ;; inherit from it. | 6572 | ;; inherit from it. |
| 6560 | (defun my-c-initialization-hook () | 6573 | (defun my-c-initialization-hook () |
| 6561 | (define-key c-mode-base-map "\C-m" 'c-context-line-break) | 6574 | (define-key c-mode-base-map "\C-m" 'c-context-line-break)) |
| 6562 | (define-key c-mode-base-map [?\C-\M-a] 'c-beginning-of-defun) | ||
| 6563 | (define-key c-mode-base-map [?\C-\M-e] 'c-end-of-defun)) | ||
| 6564 | (add-hook 'c-initialization-hook 'my-c-initialization-hook) | 6575 | (add-hook 'c-initialization-hook 'my-c-initialization-hook) |
| 6565 | 6576 | ||
| 6566 | ;; offset customizations not in my-c-style | 6577 | ;; offset customizations not in my-c-style |
| @@ -6647,9 +6658,6 @@ embodied in the @code{beginning-of-defun} function. @ccmode now | |||
| 6647 | caches syntactic information much better, so that the delay caused by | 6658 | caches syntactic information much better, so that the delay caused by |
| 6648 | searching for such a brace when it's not in column 0 is minimal, | 6659 | searching for such a brace when it's not in column 0 is minimal, |
| 6649 | except perhaps when you've just moved a long way inside the file. | 6660 | except perhaps when you've just moved a long way inside the file. |
| 6650 | Don't forget to rebind @kbd{C-M-a} and @kbd{C-M-e} to the @ccmode{} | ||
| 6651 | functions @code{beginning-of-defun} and @code{end-of-defun} if you're | ||
| 6652 | going to be hanging your braces! @xref{Sample .emacs File}. | ||
| 6653 | 6661 | ||
| 6654 | @findex defun-prompt-regexp | 6662 | @findex defun-prompt-regexp |
| 6655 | @vindex c-Java-defun-prompt-regexp | 6663 | @vindex c-Java-defun-prompt-regexp |
| @@ -6726,6 +6734,12 @@ more info. | |||
| 6726 | 6734 | ||
| 6727 | @itemize @bullet | 6735 | @itemize @bullet |
| 6728 | @item | 6736 | @item |
| 6737 | @ccmode{} doesn't support trigraphs. (These are character sequences | ||
| 6738 | such as @samp{??(}, which represents @samp{[}. They date from a time | ||
| 6739 | when some character sets didn't have all the characters that C needs, | ||
| 6740 | and are now utterly obsolete.) | ||
| 6741 | |||
| 6742 | @item | ||
| 6729 | There is no way to apply auto newline settings (@pxref{Auto-newlines}) | 6743 | There is no way to apply auto newline settings (@pxref{Auto-newlines}) |
| 6730 | on already typed lines. That's only a feature to ease interactive | 6744 | on already typed lines. That's only a feature to ease interactive |
| 6731 | editing. | 6745 | editing. |
| @@ -6747,6 +6761,25 @@ When a non-nested template is used in a declaration, @ccmode{} indents | |||
| 6747 | it and font-locks it OK. Templates used in expressions, and nested | 6761 | it and font-locks it OK. Templates used in expressions, and nested |
| 6748 | templates do not fare so well. Sometimes a workaround is to refontify | 6762 | templates do not fare so well. Sometimes a workaround is to refontify |
| 6749 | the expression after typing the closing @samp{>}. | 6763 | the expression after typing the closing @samp{>}. |
| 6764 | |||
| 6765 | @item | ||
| 6766 | On loading @ccmode{}, sometimes this error message appears: | ||
| 6767 | |||
| 6768 | @example | ||
| 6769 | File mode specification error: (void-variable c-font-lock-keywords-3) | ||
| 6770 | @end example | ||
| 6771 | |||
| 6772 | This is due to a bug in the function @code{eval-after-load} in some | ||
| 6773 | versions of (X)Emacs. It can manifest itself when there is a symbolic | ||
| 6774 | link in the path of the directory which contains (X)Emacs. As a | ||
| 6775 | workaround, put the following into your @file{.emacs} file, fairly | ||
| 6776 | early on: | ||
| 6777 | |||
| 6778 | @example | ||
| 6779 | (defun my-load-cc-fonts () | ||
| 6780 | (require "cc-fonts")) | ||
| 6781 | (add-hook 'c-initialization-hook 'my-load-cc-fonts) | ||
| 6782 | @end example | ||
| 6750 | @end itemize | 6783 | @end itemize |
| 6751 | 6784 | ||
| 6752 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 6785 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
diff --git a/man/commands.texi b/man/commands.texi index dd518252f24..1f67a671fbe 100644 --- a/man/commands.texi +++ b/man/commands.texi | |||
| @@ -134,6 +134,15 @@ because the keyboard input routines catch these special sequences | |||
| 134 | and convert them to function key events before any other part of Emacs | 134 | and convert them to function key events before any other part of Emacs |
| 135 | gets to see them. | 135 | gets to see them. |
| 136 | 136 | ||
| 137 | @cindex keys stolen by window manager | ||
| 138 | @cindex window manager, keys stolen by | ||
| 139 | On graphical displays, the window manager is likely to block the | ||
| 140 | character @kbd{Meta-@key{TAB}} before Emacs can see it. It may also | ||
| 141 | block @kbd{Meta-@key{SPC}}, @kbd{C-M-d} and @kbd{C-M-l}. If you have | ||
| 142 | these problems, we recommend that you customize your window manager to | ||
| 143 | turn off those commands, or put them on key combinations that Emacs | ||
| 144 | does not use. | ||
| 145 | |||
| 137 | @node Keys, Commands, User Input, Top | 146 | @node Keys, Commands, User Input, Top |
| 138 | @section Keys | 147 | @section Keys |
| 139 | 148 | ||
diff --git a/man/custom.texi b/man/custom.texi index d20558dd06b..49c7e6215ea 100644 --- a/man/custom.texi +++ b/man/custom.texi | |||
| @@ -625,8 +625,9 @@ structure of groups, here are other ways to specify the settings that | |||
| 625 | you want to customize. | 625 | you want to customize. |
| 626 | 626 | ||
| 627 | @table @kbd | 627 | @table @kbd |
| 628 | @item M-x customize-variable @key{RET} @var{variable} @key{RET} | 628 | @item M-x customize-option @key{RET} @var{option} @key{RET} |
| 629 | Set up a customization buffer with just one variable, @var{variable}. | 629 | Set up a customization buffer with just one user option variable, |
| 630 | @var{option}. | ||
| 630 | @item M-x customize-face @key{RET} @var{face} @key{RET} | 631 | @item M-x customize-face @key{RET} @var{face} @key{RET} |
| 631 | Set up a customization buffer with just one face, @var{face}. | 632 | Set up a customization buffer with just one face, @var{face}. |
| 632 | @item M-x customize-group @key{RET} @var{group} @key{RET} | 633 | @item M-x customize-group @key{RET} @var{group} @key{RET} |
| @@ -634,7 +635,7 @@ Set up a customization buffer with just one group, @var{group}. | |||
| 634 | @item M-x customize-apropos @key{RET} @var{regexp} @key{RET} | 635 | @item M-x customize-apropos @key{RET} @var{regexp} @key{RET} |
| 635 | Set up a customization buffer with all the settings and groups that | 636 | Set up a customization buffer with all the settings and groups that |
| 636 | match @var{regexp}. | 637 | match @var{regexp}. |
| 637 | @item M-x customize-changed-options @key{RET} @var{version} @key{RET} | 638 | @item M-x customize-changed @key{RET} @var{version} @key{RET} |
| 638 | Set up a customization buffer with all the settings and groups | 639 | Set up a customization buffer with all the settings and groups |
| 639 | whose meaning has changed since Emacs version @var{version}. | 640 | whose meaning has changed since Emacs version @var{version}. |
| 640 | @item M-x customize-saved | 641 | @item M-x customize-saved |
| @@ -645,15 +646,16 @@ Set up a customization buffer containing all settings that you have | |||
| 645 | customized but not saved. | 646 | customized but not saved. |
| 646 | @end table | 647 | @end table |
| 647 | 648 | ||
| 648 | @findex customize-variable | 649 | @findex customize-option |
| 649 | If you want to alter a particular variable with the customization | 650 | If you want to alter a particular user option with the customization |
| 650 | buffer, and you know its name, you can use the command @kbd{M-x | 651 | buffer, and you know its name, you can use the command @kbd{M-x |
| 651 | customize-variable} and specify the variable name. This sets up the | 652 | customize-option} and specify the user option (variable) name. This |
| 652 | customization buffer with just one variable---the one that you asked | 653 | sets up the customization buffer with just one user option---the one |
| 653 | for. Editing, setting and saving the value work as described above, | 654 | that you asked for. Editing, setting and saving the value work as |
| 654 | but only for the specified variable. Minibuffer completion is handy | 655 | described above, but only for the specified user option. Minibuffer |
| 655 | if you only know part of the name. However, this command can only see | 656 | completion is handy if you only know part of the name. However, this |
| 656 | options that have been loaded in the current Emacs session. | 657 | command can only see options that have been loaded in the current |
| 658 | Emacs session. | ||
| 657 | 659 | ||
| 658 | @findex customize-face | 660 | @findex customize-face |
| 659 | Likewise, you can modify a specific face, chosen by name, using | 661 | Likewise, you can modify a specific face, chosen by name, using |
| @@ -663,9 +665,9 @@ on the character after point. | |||
| 663 | @findex customize-group | 665 | @findex customize-group |
| 664 | You can also set up the customization buffer with a specific group, | 666 | You can also set up the customization buffer with a specific group, |
| 665 | using @kbd{M-x customize-group}. The immediate contents of the chosen | 667 | using @kbd{M-x customize-group}. The immediate contents of the chosen |
| 666 | group, including settings (variables and faces), and other groups, all | 668 | group, including settings (user options and faces), and other groups, |
| 667 | appear as well (even if not already loaded). However, the subgroups' | 669 | all appear as well (even if not already loaded). However, the |
| 668 | own contents are not included. | 670 | subgroups' own contents are not included. |
| 669 | 671 | ||
| 670 | @findex customize-apropos | 672 | @findex customize-apropos |
| 671 | For a more general way of controlling what to customize, you can use | 673 | For a more general way of controlling what to customize, you can use |
diff --git a/man/xresources.texi b/man/xresources.texi index 142b1bc70a0..3fec4200863 100644 --- a/man/xresources.texi +++ b/man/xresources.texi | |||
| @@ -294,6 +294,11 @@ specified if @samp{off}. | |||
| 294 | Gamma correction for colors, equivalent to the frame parameter | 294 | Gamma correction for colors, equivalent to the frame parameter |
| 295 | @code{screen-gamma}. | 295 | @code{screen-gamma}. |
| 296 | 296 | ||
| 297 | @item @code{scrollBarWidth} (class @code{ScrollBarWidth}) | ||
| 298 | @cindex scrollbar width | ||
| 299 | The scroll bar width in pixels, equivalent to the frame parameter | ||
| 300 | @code{scroll-bar-width}. | ||
| 301 | |||
| 297 | @ifnottex | 302 | @ifnottex |
| 298 | @item @code{selectionFont} (class @code{SelectionFont}) | 303 | @item @code{selectionFont} (class @code{SelectionFont}) |
| 299 | Font name for pop-up menu items, in non-toolkit versions of Emacs. (For | 304 | Font name for pop-up menu items, in non-toolkit versions of Emacs. (For |