aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-18 15:01:06 +0000
committerRichard M. Stallman2005-08-18 15:01:06 +0000
commitc04a2eab333757b44fa8d1f8e81d54667e7e93f0 (patch)
treefea41e51306d241e0942fdc059cc8e2b4c371894
parentc0d7caba9977215cadc057d290f3780e86ca636f (diff)
downloademacs-c04a2eab333757b44fa8d1f8e81d54667e7e93f0.tar.gz
emacs-c04a2eab333757b44fa8d1f8e81d54667e7e93f0.zip
(Minor Modes): Say that the list here is not complete.
(Keyboard Translations): Node deleted. (Disabling): Delete xref to it. (Customization Groups): Fix Custom buffer example. (Hooks): Mention remove-hooks.
-rw-r--r--man/custom.texi102
1 files changed, 25 insertions, 77 deletions
diff --git a/man/custom.texi b/man/custom.texi
index b3637538a41..d531d92eb0f 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -33,9 +33,6 @@ replay sequences of keys.
33 you can control their functioning. 33 you can control their functioning.
34* Key Bindings:: The keymaps say what command each key runs. 34* Key Bindings:: The keymaps say what command each key runs.
35 By changing them, you can "redefine keys". 35 By changing them, you can "redefine keys".
36* Keyboard Translations:: If your keyboard passes an undesired code
37 for a key, you can tell Emacs to
38 substitute another code.
39* Syntax:: The syntax table controls how words and 36* Syntax:: The syntax table controls how words and
40 expressions are parsed. 37 expressions are parsed.
41* Init File:: How to write common customizations in the 38* Init File:: How to write common customizations in the
@@ -78,16 +75,16 @@ directly turns Outline minor mode on and off. To check whether a
78given minor mode works this way, use @kbd{C-h v} to ask for 75given minor mode works this way, use @kbd{C-h v} to ask for
79documentation on the variable name. 76documentation on the variable name.
80 77
81 These minor-mode variables provide a good way for Lisp programs to turn 78 These minor-mode variables provide a good way for Lisp programs to
82minor modes on and off; they are also useful in a file's local variables 79turn minor modes on and off; they are also useful in a file's local
83list. But please think twice before setting minor modes with a local 80variables list (@pxref{File Variables}). But please think twice
84variables list, because most minor modes are a matter of user 81before setting minor modes with a local variables list, because most
85preference---other users editing the same file might not want the same 82minor modes are a matter of user preference---other users editing the
86minor modes you prefer. 83same file might not want the same minor modes you prefer.
87 84
88 The buffer-local minor modes include Abbrev mode, Auto Fill mode, 85 The most useful buffer-local minor modes include Abbrev mode, Auto
89Auto Save mode, Font-Lock mode, Glasses mode, ISO Accents mode, 86Fill mode, Auto Save mode, Font-Lock mode, Glasses mode, ISO Accents
90Outline minor mode, Overwrite mode, and Binary Overwrite mode. 87mode, Outline minor mode, Overwrite mode, and Binary Overwrite mode.
91 88
92 Abbrev mode allows you to define abbreviations that automatically expand 89 Abbrev mode allows you to define abbreviations that automatically expand
93as you type them. For example, @samp{amd} might expand to @samp{abbrev 90as you type them. For example, @samp{amd} might expand to @samp{abbrev
@@ -146,11 +143,11 @@ they overwrite other characters and can be overwritten by them.
146In Binary Overwrite mode, digits after @kbd{C-q} specify an 143In Binary Overwrite mode, digits after @kbd{C-q} specify an
147octal character code, as usual. 144octal character code, as usual.
148 145
149 The following minor modes normally apply to all buffers at once. 146 Here are some useful minor modes that normally apply to all buffers
150Since each is enabled or disabled by the value of a variable, you 147at once. Since each is enabled or disabled by the value of a
151@emph{can} set them differently for particular buffers, by explicitly 148variable, you @emph{can} set them differently for particular buffers,
152making the corresponding variables local in those buffers. 149by explicitly making the corresponding variables local in those
153@xref{Locals}. 150buffers. @xref{Locals}.
154 151
155 Icomplete mode displays an indication of available completions when 152 Icomplete mode displays an indication of available completions when
156you are in the minibuffer and completion is active. @xref{Completion 153you are in the minibuffer and completion is active. @xref{Completion
@@ -222,10 +219,6 @@ under it. It looks like this, in part:
222 Customization of the One True Editor. 219 Customization of the One True Editor.
223 See also [Manual]. 220 See also [Manual].
224 221
225Confirm Kill Emacs: [Hide] [Value Menu] Don't confirm
226 [State]: this option is unchanged from its standard setting.
227How to ask for confirmation when leaving Emacs. [More]
228
229Editing group: [Go to Group] 222Editing group: [Go to Group]
230Basic text editing facilities. 223Basic text editing facilities.
231 224
@@ -854,8 +847,9 @@ recently added hook functions are executed first.
854 847
855 If you play with adding various different versions of a hook 848 If you play with adding various different versions of a hook
856function by calling @code{add-hook} over and over, remember that all 849function by calling @code{add-hook} over and over, remember that all
857the versions you added will remain in the hook variable together. 850the versions you added will remain in the hook variable together. You
858To clear them out, you can do @code{(setq @var{hook-variable} nil)}. 851can clear out individual functions with @code{remove-hook}, or do
852@code{(setq @var{hook-variable} nil)} to remove everything.
859 853
860@node Locals 854@node Locals
861@subsection Local Variables 855@subsection Local Variables
@@ -1638,14 +1632,14 @@ word:
1638 Many keyboards have a ``numeric keypad'' on the right hand side. 1632 Many keyboards have a ``numeric keypad'' on the right hand side.
1639The numeric keys in the keypad double up as cursor motion keys, 1633The numeric keys in the keypad double up as cursor motion keys,
1640toggled by a key labelled @samp{Num Lock}. By default, Emacs 1634toggled by a key labelled @samp{Num Lock}. By default, Emacs
1641translates these keys to the corresponding keys in the main keyboard 1635translates these keys to the corresponding keys in the main keyboard.
1642(@pxref{Keyboard Translations}). For example, when @samp{Num Lock} is 1636For example, when @samp{Num Lock} is on, the key labelled @samp{8} on
1643on, the key labelled @samp{8} on the numeric keypad produces 1637the numeric keypad produces @code{kp-8}, which is translated to
1644@code{kp-8}, which is translated to @kbd{8}; when @samp{Num Lock} is 1638@kbd{8}; when @samp{Num Lock} is off, the same key produces
1645off, the same key produces @code{kp-up}, which is translated to 1639@code{kp-up}, which is translated to @key{UP}. If you rebind a key
1646@key{UP}. If you rebind a key such as @kbd{8} or @key{UP}, it affects 1640such as @kbd{8} or @key{UP}, it affects the equivalent keypad key too.
1647the equivalent keypad key too. However, if you rebind a @samp{kp-} 1641However, if you rebind a @samp{kp-} key directly, that won't affect
1648key directly, that won't affect its non-keypad equivalent. 1642its non-keypad equivalent.
1649 1643
1650 Emacs provides a convenient method for binding the numeric keypad 1644 Emacs provides a convenient method for binding the numeric keypad
1651keys, using the variables @code{keypad-setup}, 1645keys, using the variables @code{keypad-setup},
@@ -1893,52 +1887,6 @@ invoke it; disabling also applies if the command is invoked using
1893@kbd{M-x}. Disabling a command has no effect on calling it as a 1887@kbd{M-x}. Disabling a command has no effect on calling it as a
1894function from Lisp programs. 1888function from Lisp programs.
1895 1889
1896@node Keyboard Translations
1897@section Keyboard Translations
1898
1899 Some keyboards do not make it convenient to send all the special
1900characters that Emacs uses. The most common problem case is the
1901@key{DEL} character. Some keyboards provide no convenient way to type
1902this very important character---usually because they were designed to
1903expect the character @kbd{C-h} to be used for deletion. On these
1904keyboards, if you press the key normally used for deletion, Emacs handles
1905the @kbd{C-h} as a prefix character and offers you a list of help
1906options, which is not what you want.
1907
1908@cindex keyboard translations
1909@findex keyboard-translate
1910 You can work around this problem within Emacs by setting up keyboard
1911translations to turn @kbd{C-h} into @key{DEL} and @key{DEL} into
1912@kbd{C-h}, as follows:
1913
1914@example
1915;; @r{Translate @kbd{C-h} to @key{DEL}.}
1916(keyboard-translate ?\C-h ?\C-?)
1917
1918;; @r{Translate @key{DEL} to @kbd{C-h}.}
1919(keyboard-translate ?\C-? ?\C-h)
1920@end example
1921
1922 Keyboard translations are not the same as key bindings in keymaps
1923(@pxref{Keymaps}). Emacs contains numerous keymaps that apply in
1924different situations, but there is only one set of keyboard
1925translations, and it applies to every character that Emacs reads from
1926the terminal. Keyboard translations take place at the lowest level of
1927input processing; the keys that are looked up in keymaps contain the
1928characters that result from keyboard translation.
1929
1930 On a window system, the keyboard key named @key{DELETE} is a function
1931key and is distinct from the @acronym{ASCII} character named @key{DEL}.
1932@xref{Named ASCII Chars}. Keyboard translations affect only @acronym{ASCII}
1933character input, not function keys; thus, the above example used on a
1934window system does not affect the @key{DELETE} key. However, the
1935translation above isn't necessary on window systems, because Emacs can
1936also distinguish between the @key{BACKSPACE} key and @kbd{C-h}; and it
1937normally treats @key{BACKSPACE} as @key{DEL}.
1938
1939 For full information about how to use keyboard translations, see
1940@ref{Translating Input,,,elisp, The Emacs Lisp Reference Manual}.
1941
1942@node Syntax 1890@node Syntax
1943@section The Syntax Table 1891@section The Syntax Table
1944@cindex syntax table 1892@cindex syntax table