annotate man/new-users-guide/help.texi @ 5044:e84a30b0e4a2

remove duplicative code in change_frame_size() -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-02-15 Ben Wing <ben@xemacs.org> * frame.c (change_frame_size_1): Simplify the logic in this function. (1) Don't allow 0 as the value of height or width. The old code that tried to allow this was totally broken, anyway, so obviously this never happens any more. (2) Don't duplicate the code in frame_conversion_internal() that converts displayable pixel size to total pixel size -- just call that function.
author Ben Wing <ben@xemacs.org>
date Mon, 15 Feb 2010 22:58:10 -0600
parents 8de8e3f6228a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 @comment node-name, next, previous, up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 @node Help, Modes, Customization Basics, Top
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 @chapter Help
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 @cindex help
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 XEmacs provides a comprehensive Help facility. On the extreme right of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 the menu-bar there is a @b{Help} menu. There are several help commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 provided by this menu. You can also use @kbd{C-h} for invoking the Help
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 facility. Type "?" for a list of keys you can type after typing
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 @kbd{C-h}. If you want more information on what your options are and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 what kind of help you can get type "?" again. You will get a listing of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 all the keys you can type and what they will do. Initially if you want
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 help, type @kbd{C-h} three times.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 @comment node-name, next, previous, up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 @menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 * The Help Menu:: Items on the Help menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 @end menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 @node The Help Menu, , Help, Help
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 @section Help menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 @cindex help
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 When you click on the Help menu with any of the mouse buttons you will
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 get the following menu items:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 @table @b
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 @item Info
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 Selecting this item will take you to the Info page which is the online
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31 documentation browsing system. You can simply click on the highlighted
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 items and "Info" will take you to the document providing information
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 about that topic.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 @item Describe Mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 After you select this item, you will get a documentation on the major
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 and minor modes which are enabled in the buffer you are working
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 with. @xref{Modes}, for information on Modes.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 @item Hyper Apropos...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 After you select this item, you will see the following message in the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 echo area:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 List symbols matching regexp:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 If you type "mode" and hit @key{RET}, you will get a list of all the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 symbols (like functions and commands). You can now get documentation on
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 any of the given symbols by "clicking" on any of the symbols (i.e. drag
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 your mouse on the appropriate symbol and release the button). For
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 example, if you "click" on the 'auto-fill-mode' you will get the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 following message in the window at the bottom:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 auto-fill-mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59 Function, Command:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 Toggle auto-fill mode.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62 With arg, turn auto-fill mode on if and only if arg is positive.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 In auto-fill mode, inserting a space at a column beyond `fill-column'
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 automatically breaks the line at a previous space.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66 Variable:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 value = nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 variable not documented
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 @item Command Apropos...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 Selecting this item will prompt you for a string just like when you
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 select @b{Hyper Apropos...}. After you give a string name, you will get
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76 a listing of all the functions and commands containing that string name
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 with a very short description about what that command does.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 @item Full Apropos...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 After you select this item, you will be prompted for a string name in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 the echo area:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 Apropos (regexp):
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 Now you can give any string name, for example "mode" and hit
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89 @key{RET}. You will get a listing of all the variables and commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 containing that string i.e "mode" with a short description of its
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 function.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 @item List Keybindings
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94 Select this item and you will get a listing of all the keys and the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 commands that they execute. Depending on which Major mode your buffer is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 in, you will get a listing of the special keybindings for that
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 particular buffer also. For example, if you are in "Texinfo" mode, part
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 of your list will contain:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 @example
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
101 C-c C-c n texinfo-insert-@@node
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
102 C-c C-c o texinfo-insert-@@noindent
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
103 C-c C-c s texinfo-insert-@@samp
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
104 C-c C-c t texinfo-insert-@@table
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
105 C-c C-c v texinfo-insert-@@var
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
106 C-c C-c x texinfo-insert-@@example
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
107 C-c C-c @{ texinfo-insert-braces
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 These keybindings apply only to "Texinfo" mode. @xref{Modes}, for more
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 information on various modes.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 @item Describe Key...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 After you select this item, you will be see the following message in the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 echo area:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 Describe Key:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 After you type a command key sequence, full documentation of that
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 command will be displayed. For example if you type @kbd{C-g}, you will
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 see the following documentation for @kbd{C-g}:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 @kindex C-g
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 keyboard-quit:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 Signal a `quit' condition.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 This means that @kbd{C-g} will quit whatever command you gave earlier.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 @kindex C-h d
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 @item Describe Function...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 This menu item provides documentation for a function. After you select
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134 this item, it will prompt you for a function name in the echo area:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 Describe function (default <some function name>):
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140 If you hit @key{RET} without giving a function name, you will get
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 documentation for that default function name, otherwise if you type a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 function name and hit @key{RET}, you will get documentation for the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 given function.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 @kindex C-h k
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 @item Describe Variable...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 You can get documentation on any variable by selecting this menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 item. It is similar to @b{Describe Function} and will prompt you for a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 variable name.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 @item Unix Manual...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 After you select this item you will be prompted for a Unix command for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 which you wish to see the man page. You will see the following message
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 in the echo area:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 Manual entry: (default <some name>)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 Now you can type any command, for example type @samp{who} and press
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 @key{RET}. You will get the man page for the Unix command @samp{who} which
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 lists who is on the system.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 @item Emacs Tutorial
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 Select this item and you will get a tutorial on Emacs. It is good for new
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 users.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168 @item Emacs News
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 Select this item and you will get a lot of historical and current news
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170 on Emacs !
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 For more information on the Help facility, @xref{Help,,,xemacs,XEmacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 User's Manual}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
186
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187