annotate man/custom.texi @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents b980b6286996
children 25f70ba0133c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
1 \input texinfo.tex
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
2
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
3 @c %**start of header
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
4 @setfilename custom
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
5 @settitle The Customization Library
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
6 @iftex
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
7 @afourpaper
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
8 @headings double
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
9 @end iftex
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
10 @c %**end of header
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
11
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
12 @node Top, Introduction, (dir), (dir)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
13 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
14 @top The Customization Library
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
15
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
16 Version: 1.97
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
17
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
18 @menu
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
19 * Introduction::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
20 * User Commands::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
21 * The Customization Buffer::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
22 * Declarations::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
23 * Utilities::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
24 * The Init File::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
25 * Wishlist::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
26 @end menu
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
27
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
28 @node Introduction, User Commands, Top, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
29 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
30 @section Introduction
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
31
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
32 This library allows customization of @dfn{user options}. Currently two
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
33 types of user options are supported, namely @dfn{variables} and
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
34 @dfn{faces}. Each user option can have four different values
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
35 simultaneously:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
36 @table @dfn
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
37 @item factory setting
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
38 The value specified by the programmer.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
39 @item saved value
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
40 The value saved by the user as the default for this variable. This
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
41 overwrites the factory setting when starting a new emacs.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
42 @item current value
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
43 The value used by Emacs. This will not be remembered next time you
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
44 run Emacs.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
45 @item widget value
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
46 The value entered by the user in a customization buffer, but not yet
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
47 applied.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
48 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
49
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
50 Variables also have a @dfn{type}, which specifies what kind of values
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
51 the variable can hold, and how the value is presented in a customization
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
52 buffer. By default a variable can hold any valid expression, but the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
53 programmer can specify a more limited type when declaring the variable.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
54
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
55 The user options are organized in a number of @dfn{groups}. Each group
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
56 can contain a number user options, as well as other groups. The groups
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
57 allows the user to concentrate on a specific part of emacs.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
58
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
59 @node User Commands, The Customization Buffer, Introduction, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
60 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
61 @section User Commands
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
62
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
63 The following commands will create a customization buffer:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
64
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
65 @table @code
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
66 @item customize
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
67 Create a customization buffer containing a specific group, by default
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
68 the @code{emacs} group.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
69
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
70 @item customize-variable
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
71 Create a customization buffer containing a single variable.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
72
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
73 @item customize-face
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
74 Create a customization buffer containing a single face.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
75
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
76 @item customize-apropos
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
77 Create a customization buffer containing all variables, faces, and
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
78 groups that match a user specified regular expression.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
79
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
80 @item customize-saved
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
81 Create a customization buffer containing all variables and faces that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
82 have been saved with customize.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
83
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
84 @item customize-customized
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
85 Create a customization buffer containing all variables and faces that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
86 have been customized but not saved.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
87 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
88
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
89 You can also set variables without creating a customization buffer.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
90
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
91 @deffn Command customize-set-variable var val
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
92 Set the default for @var{variable} to @var{value}.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
93 @var{value} is a Lisp object.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
94
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
95 If @var{variable} has a @code{custom-set} property, that is used for setting
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
96 @var{variable}, otherwise @code{set-default} is used.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
97
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
98 The @code{customized-value} property of the @var{variable} will be set
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
99 to a list with a quoted @var{value} as its sole list member.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
100
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
101 If @var{variable} has a @code{variable-interactive} property, that is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
102 used as if it were the arg to `interactive' (which see) to interactively
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
103 read the value.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
104
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
105 If @var{variable} has a @code{custom-type} property, it must be a widget
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
106 and the @code{:prompt-value} property of that widget will be used for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
107 reading the value.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
108 @end deffn
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
109
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
110 All variables that have been set either from a customization buffer or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
111 with @code{customize-set-variable} can be saved with the command
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
112 @code{custom-save-customized}.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
113
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
114 @deffn Command custom-save-customized
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
115 Save all variables that have been set with customize in this session.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
116 @end deffn
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
117
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
118
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
119 @node The Customization Buffer, Declarations, User Commands, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
120 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
121 @section The Customization Buffer.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
122
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
123 The customization buffer allows the user to make temporary or permanent
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
124 changes to how specific aspects of emacs works, by setting and editing
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
125 user options.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
126
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
127 The customization buffer contains three types of text:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
128
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
129 @table @dfn
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
130 @item informative text
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
131 where the normal editing commands are disabled.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
132
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
133 @item editable fields
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
134 where you can edit with the usual emacs commands. Editable fields are
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
135 usually displayed with a grey background if your terminal supports
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
136 colors, or an italic font otherwise.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
137
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
138 @item buttons
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
139 which can be activated by either pressing the @kbd{@key{ret}} while
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
140 point is located on the text, or pushing @kbd{mouse-2} while the mouse
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
141 pointer is above the tex. Buttons are usually displayed in a bold
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
142 font.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
143 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
144
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
145 You can move to the next the next editable field or button by pressing
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
146 @kbd{@key{tab}} or the previous with @kbd{M-@key{tab}}. Some buttons
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
147 have a small helpful message about their purpose, which will be
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
148 displayed when you move to it with the @key{tab} key.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
149
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
150 The buffer is divided into three part, an introductory text, a list of
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
151 customization options, and a line of customization buttons. Each part
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
152 will be described in the following.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
153
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
154 @menu
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
155 * The Introductory Text::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
156 * The Customization Options::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
157 * The Variable Options::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
158 * The Face Options::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
159 * The Group Options::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
160 * The State Button::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
161 * The Customization Buttons::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
162 @end menu
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
163
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
164 @node The Introductory Text, The Customization Options, The Customization Buffer, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
165 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
166 @subsection The Introductory Text
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
167
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
168 The start of the buffer contains a short explanation of what it is, and
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
169 how to get help. It will typically look like this:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
170
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
171 @example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
172 This is a customization buffer.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
173 Push RET or click mouse-2 on the word _help_ for more information.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
174 @end example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
175
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
176 Rather boring. It is mostly just informative text, but the word
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
177 @samp{help} is a button that will bring up this document when
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
178 activated.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
179
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
180 @node The Customization Options, The Variable Options, The Introductory Text, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
181 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
182 @subsection The Customization Options
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
183
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
184 Each customization option looks similar to the following text:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
185
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
186 @example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
187 *** custom-background-mode: default
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
188 State: this item is unchanged from its factory setting.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
189 [ ] [?] The brightness of the background.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
190 @end example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
191
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
192 The option contains the parts described below.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
193
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
194 @table @samp
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
195 @item ***
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
196 The Level Button. The customization options in the buffer are organized
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
197 in a hierarchy, which is indicated by the number of stars in the level
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
198 button. The top level options will be shown as @samp{*}. When they are
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
199 expanded, the suboptions will be shown as @samp{**}. The example option
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
200 is thus a subsuboption.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
201
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
202 Activating the level buttons will toggle between hiding and exposing the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
203 content of that option. The content can either be the value of the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
204 option, as in this example, or a list of suboptions.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
205
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
206 @item custom-background-mode
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
207 This is the tag of the the option. The tag is a name of a variable, a
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
208 face, or customization group. Activating the tag has an effect that
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
209 depends on the exact type of the option. In this particular case,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
210 activating the tag will bring up a menu that will allow you to choose
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
211 from the three possible values of the `custom-background-mode'
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
212 variable.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
213
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
214 @item default
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
215 After the tag, the options value is shown. Depending on its type, you
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
216 may be able to edit the value directly. If an option should contain a
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
217 file name, it is displayed in an editable field, i.e. you can edit it
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
218 using the standard emacs editing commands.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
219
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
220 @item State: this item is unchanged from its factory setting.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
221 The state line. This line will explain the state of the option,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
222 e.g. whether it is currently hidden, or whether it has been modified or
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
223 not. Activating the button will allow you to change the state, e.g. set
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
224 or reset the changes you have made. This is explained in detail in the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
225 following sections.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
226
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
227 @item [ ]
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
228 The magic button. This is an abbreviated version of the state line.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
229
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
230 @item [?]
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
231 The documentation button. If the documentation is more than one line,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
232 this button will be present. Activating the button will toggle whether
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
233 the complete documentation is shown, or only the first line.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
234
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
235 @item The brightness of the background.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
236 This is a documentation string explaining the purpose of this particular
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
237 customization option.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
238
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
239 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
240
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
241 @node The Variable Options, The Face Options, The Customization Options, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
242 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
243 @subsection The Variable Options
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
244
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
245 The most common customization options are emacs lisp variables. The
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
246 actual editing of these variables depend on what type values the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
247 variable is expected to contain. For example, a lisp variable whose
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
248 value should be a string will typically be represented with an editable
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
249 text field in the buffer, where you can change the string directly. If
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
250 the value is a list, each item in the list will be presented in the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
251 buffer buffer on a separate line, with buttons to insert new items in
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
252 the list, or delete existing items from the list. You may want to see
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
253 @ref{User Interface,,, widget, The Widget Library}, where some examples
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
254 of editing are discussed.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
255
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
256 You can either choose to edit the value directly, or edit the lisp
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
257 value for that variable. The lisp value is a lisp expression that
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
258 will be evaluated when you start emacs. The result of the evaluation
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
259 will be used as the initial value for that variable. Editing the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
260 lisp value is for experts only, but if the current value of the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
261 variable is of a wrong type (i.e. a symbol where a string is expected),
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
262 the `edit lisp' mode will always be selected.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
263
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
264 You can see what mode is currently selected by looking at the state
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
265 button. If it uses parenthesises (like @samp{( )}) it is in edit lisp
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
266 mode, with square brackets (like @samp{[ ]}) it is normal edit mode.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
267 You can switch mode by activating the state button, and select either
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
268 @samp{Edit} or @samp{Edit lisp} from the menu.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
269
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
270 You can change the state of the variable with the other menu items:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
271
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
272 @table @samp
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
273 @item Set
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
274 When you have made your modifications in the buffer, you need to
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
275 activate this item to make the modifications take effect. The
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
276 modifications will be forgotten next time you run emacs.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
277
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
278 @item Save
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
279 Unless you activate this item instead! This will mark the modification
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
280 as permanent, i.e. the changes will be remembered in the next emacs
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
281 session.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
282
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
283 @item Reset
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
284 If you have made some modifications and not yet applied them, you can
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
285 undo the modification by activating this item.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
286
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
287 @item Reset to Saved
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
288 Activating this item will reset the value of the variable to the last
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
289 value you marked as permanent with `Save'.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
290
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
291 @item Reset to Factory Settings
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
292 Activating this item will undo all modifications you have made, and
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
293 reset the value to the initial value specified by the program itself.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
294 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
295
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
296 By default, the value of large or complicated variables are hidden. You
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
297 can show the value by clicking on the level button.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
298
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
299 @node The Face Options, The Group Options, The Variable Options, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
300 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
301 @subsection The Face Options
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
302
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
303 A face is an object that controls the appearance of some buffer text.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
304 The face has a number of possible attributes, such as boldness,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
305 foreground color, and more. For each attribute you can specify whether
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
306 this attribute is controlled by the face, and if so, what the value is.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
307 For example, if the attribute bold is not controlled by a face, using
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
308 that face on some buffer text will not affect its boldness. If the bold
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
309 attribute is controlled by the face, it can be turned either on or of.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
310
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
311 It is possible to specify that a face should have different attributes
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
312 on different device types. For example, a face may make text red on a
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
313 color device, and bold on a monochrome device. You do this by
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
314 activating `Edit All' in the state menu.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
315
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
316 The way this is presented in the customization buffer is to have a list
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
317 of display specifications, and for each display specification a list of
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
318 face attributes. For each face attribute, there is a checkbox
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
319 specifying whether this attribute has effect and what the value is.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
320 Here is an example:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
321
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
322 @example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
323 *** custom-invalid-face: (sample)
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
324 State: this item is unchanged from its factory setting.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
325 [ ] Face used when the customize item is invalid.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
326 [INS] [DEL] Display: [ ] Type: [ ] X [ ] PM [ ] Win32 [ ] DOS [ ] TTY
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
327 [X] Class: [X] Color [ ] Grayscale [ ] Monochrome
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
328 [ ] Background: [ ] Light [ ] Dark
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
329 Attributes: [ ] Bold: off
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
330 [ ] Italic: off
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
331 [ ] Underline: off
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
332 [X] Foreground: yellow (sample)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
333 [X] Background: red (sample)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
334 [ ] Stipple:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
335 [INS] [DEL] Display: all
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
336 Attributes: [X] Bold: on
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
337 [X] Italic: on
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
338 [X] Underline: on
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
339 [ ] Foreground: default (sample)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
340 [ ] Background: default (sample)
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
341 [ ] Stipple:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
342 [INS]
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
343 @end example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
344
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
345 This has two display specifications. The first will match all color
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
346 displays, independently on what window system the device belongs to, and
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
347 whether background color is dark or light. For devices matching this
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
348 specification, @samp{custom-invalid-face} will force text to be
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
349 displayed in yellow on red, but leave all other attributes alone.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
350
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
351 The second display will simply match everything. Since the list is
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
352 prioritised, this means that it will match all non-color displays. For
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
353 these, the face will not affect the foreground or background color, but
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
354 force the font to be both bold, italic, and underline.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
355
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
356 You can add or delete display specifications by activating the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
357 @samp{[INS]} and @samp{[DEL]} buttons, and modify them by clicking on
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
358 the check boxes. The first checkbox in each line in the display
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
359 specification is special. It specify whether this particular property
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
360 will even be relevant. By not checking the box in the first display, we
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
361 match all device types, also device types other than those listed.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
362
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
363 After modifying the face, you can activate the state button to make the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
364 changes take effect. The menu items in the state button menu is similar
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
365 to the state menu items for variables described in the previous section.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
366
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
367 @node The Group Options, The State Button, The Face Options, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
368 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
369 @subsection The Group Options
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
370
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
371 Since Emacs has approximately a zillion configuration options, they have
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
372 been organized in groups. Each group can contain other groups, thus
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
373 creating a customization hierarchy. The nesting of the customization
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
374 within the visible part of this hierarchy is indicated by the number of
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
375 stars in the level button.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
376
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
377 Since there is really no customization needed for the group itself, the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
378 menu items in the groups state button will affect all modified group
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
379 members recursively. Thus, if you activate the @samp{Set} menu item,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
380 all variables and faces that have been modified and belong to that group
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
381 will be applied. For those members that themselves are groups, it will
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
382 work as if you had activated the @samp{Set} menu item on them as well.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
383
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
384 @node The State Button, The Customization Buttons, The Group Options, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
385 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
386 @subsection The State Line and The Magic Button
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
387
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
388 The state line has two purposes. The first is to hold the state menu,
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
389 as described in the previous sections. The second is to indicate the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
390 state of each customization item.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
391
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
392 For the magic button, this is done by the character inside the brackets.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
393 The following states have been defined, the first that applies to the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
394 current item will be used:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
395
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
396 @table @samp
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
397 @item -
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
398 The option is currently hidden. For group options that means the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
399 members are not shown, for variables and faces that the value is not
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
400 shown. You cannot perform any of the state change operations on a
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
401 hidden customization option.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
402
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
403 @item *
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
404 The value if this option has been modified in the buffer, but not yet
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
405 applied.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
406
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
407 @item +
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
408 The item has has been set by the user.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
409
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
410 @item :
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
411 The current value of this option is different from the saved value.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
412
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
413 @item !
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
414 The saved value of this option is different from the factory setting.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
415
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
416 @item @@
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
417 The factory setting of this option is not known. This occurs when you
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
418 try to customize variables or faces that have not been explicitly
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
419 declared as customizable.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
420
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
421 @item SPC
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
422 The factory setting is still in effect.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
423
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
424 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
425
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
426 For non-hidden group options, the state shown is the most severe state
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
427 of its members, where more severe means that it appears earlier in the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
428 list above (except hidden members, which are ignored).
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
429
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
430 @node The Customization Buttons, , The State Button, The Customization Buffer
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
431 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
432 @subsection The Customization Buttons
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
433
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
434 The last part of the customization buffer looks like this:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
435
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
436 @example
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
437 [Set] [Save] [Reset] [Done]
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
438 @end example
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
439
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
440 Activating the @samp{[Set]}, @samp{[Save]}, or @samp{[Reset]}
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
441 button will affect all modified customization items that are visible in
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
442 the buffer. @samp{[Done]} will bury the buffer.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
443
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
444 @node Declarations, Utilities, The Customization Buffer, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
445 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
446 @section Declarations
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
447
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
448 This section describes how to declare customization groups, variables,
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
449 and faces. It doesn't contain any examples, but please look at the file
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
450 @file{cus-edit.el} which contains many declarations you can learn from.
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
451
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
452 @menu
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
453 * Declaring Groups::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
454 * Declaring Variables::
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
455 * Declaring Faces::
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
456 * Usage for Package Authors::
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
457 @end menu
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
458
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
459 All the customization declarations can be changes by keyword arguments.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
460 Groups, variables, and faces all share these common keywords:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
461
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
462 @table @code
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
463 @item :group
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
464 @var{value} should be a customization group.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
465 Add @var{symbol} to that group.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
466 @item :link
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
467 @var{value} should be a widget type.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
468 Add @var{value} to the extrenal links for this customization option.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
469 Useful widget types include @code{custom-manual}, @code{info-link}, and
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
470 @code{url-link}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
471 @item :load
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
472 Add @var{value} to the files that should be loaded nefore displaying
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
473 this customization option. The value should be iether a string, which
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
474 should be a string which will be loaded with @code{load-library} unless
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
475 present in @code{load-history}, or a symbol which will be loaded with
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
476 @code{require}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
477 @item :tag
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
478 @var{Value} should be a short string used for identifying the option in
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
479 customization menus and buffers. By default the tag will be
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
480 automatically created from the options name.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
481 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
482
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
483 @node Declaring Groups, Declaring Variables, Declarations, Declarations
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
484 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
485 @subsection Declaring Groups
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
486
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
487 Use @code{defgroup} to declare new customization groups.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
488
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
489 @defun defgroup symbol members doc [keyword value]...
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
490 Declare @var{symbol} as a customization group containing @var{members}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
491 @var{symbol} does not need to be quoted.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
492
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
493 @var{doc} is the group documentation.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
494
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
495 @var{members} should be an alist of the form ((@var{name}
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
496 @var{widget})...) where @var{name} is a symbol and @var{widget} is a
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
497 widget for editing that symbol. Useful widgets are
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
498 @code{custom-variable} for editing variables, @code{custom-face} for
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
499 editing faces, and @code{custom-group} for editing groups.@refill
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
500
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
501 Internally, custom uses the symbol property @code{custom-group} to keep
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
502 track of the group members, and @code{group-documentation} for the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
503 documentation string.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
504
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
505 The following additional @var{keyword}'s are defined:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
506
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
507 @table @code
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
508 @item :prefix
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
509 @var{value} should be a string. If the string is a prefix for the name
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
510 of a member of the group, that prefix will be ignored when creating a
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
511 tag for that member.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
512 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
513 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
514
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
515 @node Declaring Variables, Declaring Faces, Declaring Groups, Declarations
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
516 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
517 @subsection Declaring Variables
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
518
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
519 Use @code{defcustom} to declare user editable variables.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
520
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
521 @defun defcustom symbol value doc [keyword value]...
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
522 Declare @var{symbol} as a customizable variable that defaults to @var{value}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
523 Neither @var{symbol} nor @var{value} needs to be quoted.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
524 If @var{symbol} is not already bound, initialize it to @var{value}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
525
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
526 @var{doc} is the variable documentation.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
527
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
528 The following additional @var{keyword}'s are defined:
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
529
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
530 @table @code
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
531 @item :type
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
532 @var{value} should be a widget type.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
533
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
534 @item :options
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
535 @var{value} should be a list of possible members of the specified type.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
536 For hooks, this is a list of function names.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
537
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
538 @item :initialize
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
539 @var{value} should be a function used to initialize the variable. It
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
540 takes two arguments, the symbol and value given in the @code{defcustom} call.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
541 Some predefined functions are:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
542
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
543 @table @code
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
544 @item custom-initialize-set
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
545 Use the @code{:set} method to initialize the variable. Do not
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
546 initialize it if already bound. This is the default @code{:initialize}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
547 method.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
548
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
549 @item custom-initialize-default
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
550 Always use @code{set-default} to initialize the variable, even if a
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
551 @code{:set} method has been specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
552
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
553 @item custom-initialize-reset
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
554 If the variable is already bound, reset it by calling the @code{:set}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
555 method with the value returned by the @code{:get} method.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
556
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
557 @item custom-initialize-changed
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
558 Like @code{custom-initialize-reset}, but use @code{set-default} to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
559 initialize the variable if it is not bound and has not been set
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
560 already.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
561 @end table
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
562
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
563 @item :set
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
564 @var{value} should be a function to set the value of the symbol. It
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
565 takes two arguments, the symbol to set and the value to give it. The
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
566 default is @code{set-default}.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
567
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
568 @item :get
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
569 @var{value} should be a function to extract the value of symbol. The
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
570 function takes one argument, a symbol, and should return the current
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
571 value for that symbol. The default is @code{default-value}.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
572
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
573 @item :require
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
574 @var{value} should be a feature symbol. Each feature will be required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
575 after initialization, of the the user have saved this option.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
576
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
577 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
578
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
579 @xref{Sexp Types,,,widget,The Widget Library}, for information about
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
580 widgets to use together with the @code{:type} keyword.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
581 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
582
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
583 Internally, custom uses the symbol property @code{custom-type} to keep
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
584 track of the variables type, @code{factory-value} for the program
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
585 specified default value, @code{saved-value} for a value saved by the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
586 user, and @code{variable-documentation} for the documentation string.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
587
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
588 Use @code{custom-add-option} to specify that a specific function is
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
589 useful as an meber of a hook.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
590
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
591 @defun custom-add-option symbol option
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
592 To the variable @var{symbol} add @var{option}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
593
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
594 If @var{symbol} is a hook variable, @var{option} should be a hook
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
595 member. For other types variables, the effect is undefined."
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
596 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
597
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
598 @node Declaring Faces, Usage for Package Authors, Declaring Variables, Declarations
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
599 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
600 @subsection Declaring Faces
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
601
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
602 Faces are declared with @code{defface}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
603
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
604 @defun defface face spec doc [keyword value]...
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
605
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
606 Declare @var{face} as a customizable face that defaults to @var{spec}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
607 @var{face} does not need to be quoted.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
608
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
609 If @var{face} has been set with `custom-set-face', set the face attributes
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
610 as specified by that function, otherwise set the face attributes
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
611 according to @var{spec}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
612
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
613 @var{doc} is the face documentation.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
614
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
615 @var{spec} should be an alist of the form @samp{((@var{display} @var{atts})...)}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
616
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
617 @var{atts} is a list of face attributes and their values. The possible
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
618 attributes are defined in the variable `custom-face-attributes'.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
619 Alternatively, @var{atts} can be a face in which case the attributes of
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
620 that face is used.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
621
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
622 The @var{atts} of the first entry in @var{spec} where the @var{display}
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
623 matches the frame should take effect in that frame. @var{display} can
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
624 either be the symbol `t', which will match all frames, or an alist of
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
625 the form @samp{((@var{req} @var{item}...)...)}@refill
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
626
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
627 For the @var{display} to match a FRAME, the @var{req} property of the
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
628 frame must match one of the @var{item}. The following @var{req} are
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
629 defined:@refill
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
630
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
631 @table @code
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
632 @item type
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
633 (the value of (window-system))@*
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
634 Should be one of @code{x} or @code{tty}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
635
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
636 @item class
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
637 (the frame's color support)@*
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
638 Should be one of @code{color}, @code{grayscale}, or @code{mono}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
639
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
640 @item background
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
641 (what color is used for the background text)@*
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
642 Should be one of @code{light} or @code{dark}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
643 @end table
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
644
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
645 Internally, custom uses the symbol property @code{face-defface-spec} for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
646 the program specified default face properties, @code{saved-face} for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
647 properties saved by the user, and @code{face-documentation} for the
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
648 documentation string.@refill
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
649
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
650 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
651
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
652 @node Usage for Package Authors, , Declaring Faces, Declarations
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
653 @comment node-name, next, previous, up
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
654 @subsection Usage for Package Authors
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
655
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
656 The recommended usage for the author of a typical emacs lisp package is
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
657 to create one group identifying the package, and make all user options
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
658 and faces members of that group. If the package has more than around 20
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
659 such options, they should be divided into a number of subgroups, with
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
660 each subgroup being member of the top level group.
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
661
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
662 The top level group for the package should itself be member of one or
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
663 more of the standard customization groups. There exists a group for
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
664 each @emph{finder} keyword. Press @kbd{C-c p} to see a list of finder
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
665 keywords, and add you group to each of them, using the @code{:group}
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
666 keyword.
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 100
diff changeset
667
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
668 @node Utilities, The Init File, Declarations, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
669 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
670 @section Utilities
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
671
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
672 These utilities can come in handy when adding customization support.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
673
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
674 @deffn Widget custom-manual
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
675 Widget type for specifying the info manual entry for a customization
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
676 option. It takes one argument, an info address.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
677 @end deffn
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
678
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
679 @defun custom-add-to-group group member widget
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
680 To existing @var{group} add a new @var{member} of type @var{widget},
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
681 If there already is an entry for that member, overwrite it.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
682 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
683
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
684 @defun custom-add-link symbol widget
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
685 To the custom option @var{symbol} add the link @var{widget}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
686 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
687
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
688 @defun custom-add-load symbol load
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
689 To the custom option @var{symbol} add the dependency @var{load}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
690 @var{load} should be either a library file name, or a feature name.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
691 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
692
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 120
diff changeset
693 @defun customize-menu-create symbol &optional name
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
694 Create menu for customization group @var{symbol}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
695 If optional @var{name} is given, use that as the name of the menu.
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 120
diff changeset
696 Otherwise the menu will be named `Customize'.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
697 The menu is in a format applicable to @code{easy-menu-define}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
698 @end defun
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
699
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
700 @node The Init File, Wishlist, Utilities, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
701 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
702 @section The Init File
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
703
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
704 When you save the customizations, call to @code{custom-set-variables},
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
705 @code{custom-set-faces} are inserted into the file specified by
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
706 @code{custom-file}. By default @code{custom-file} is your @file{.emacs}
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
707 file. If you use another file, you must explicitly load it yourself.
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
708 The two functions will initialize variables and faces as you have
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
709 specified.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
710
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
711 @node Wishlist, , The Init File, Top
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
712 @comment node-name, next, previous, up
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
713 @section Wishlist
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
714
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
715 @itemize @bullet
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
716 @item
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
717 Better support for keyboard operations in the customize buffer.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
718
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
719 @item
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
720 Integrate with @file{w3} so you can customization buffers with much
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
721 better formatting. I'm thinking about adding a <custom>name</custom>
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
722 tag. The latest w3 have some support for this, so come up with a
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 106
diff changeset
723 convincing example.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
724
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
725 @item
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
726 Add an `examples' section, with explained examples of custom type
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
727 definitions.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
728
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
729 @item
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
730 Support selectable color themes. I.e., change many faces by setting one
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
731 variable.
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
732
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
733 @item
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
734 Support undo using lmi's @file{gnus-undo.el}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
735
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
736 @item
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
737 Make it possible to append to `choice', `radio', and `set' options.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
738
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
739 @item
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
740 Ask whether set or modified variables should be saved in
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
741 @code{kill-buffer-hook}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
742
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
743 Ditto for @code{kill-emacs-query-functions}.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
744
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
745 @item
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
746 Command to check if there are any customization options that
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
747 does not belong to an existing group.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
748
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
749 @item
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
750 Optionally disable the point-cursor and instead highlight the selected
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
751 item in XEmacs. This is like the *Completions* buffer in XEmacs.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
752 Suggested by Jens Lautenbacher
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
753 @samp{<jens@@lemming0.lem.uni-karlsruhe.de>}.@refill
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
754
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
755 @item
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
756 Empty customization groups should start open (harder than it looks).
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
757
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 120
diff changeset
758 @item
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 120
diff changeset
759 Make it possible to include a comment/remark/annotation when saving an
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 120
diff changeset
760 option.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 120
diff changeset
761
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
762 @item
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
763 Add some direct support for meta variables, i.e. make it possible to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
764 specify that this variable should be reset when that variable is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
765 changed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
766
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
767 @item
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
768 Add tutorial.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
769
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
770 @item
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
771 Describe the @code{:type} syntax in this manual.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
772
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
773 @item
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
774 Find a place is this manual for the following text:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
775
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
776 @strong{Radio vs. Buttons}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
777
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
778 Use a radio if you can't find a good way to describe the item in the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
779 choice menu text. I.e. it is better to use a radio if you expect the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
780 user would otherwise manually select each item from the choice menu in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
781 turn to see what it expands too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
782
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
783 Avoid radios if some of the items expands to complex structures.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
784
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
785 I mostly use radios when most of the items are of type
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
786 @code{function-item} or @code{variable-item}.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
788 @item
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
789 Update customize buffers when @code{custom-set-variable} or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
790 @code{custom-save-customized} is called.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
791
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
792 @item
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
793 Better handling of saved but uninitialized items.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 136
diff changeset
794
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
795 @end itemize
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
796
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
797 @contents
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents:
diff changeset
798 @bye