annotate man/xemacs/menus.texi @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents a4f53d9b3154
children 7d59cb494b73
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @node Pull-down Menus, Entering Emacs, Keystrokes, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 @section XEmacs Pull-down Menus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 If you are running XEmacs under X, a menu bar on top of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 Emacs frame provides access to pull-down menus of file, edit, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 help-related commands. The menus provide convenient shortcuts and an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 easy interface for novice users. They do not provide additions to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 functionality available via key commands; you can still invoke commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 from the keyboard as in previous versions of Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 @table @b
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 @item File
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 Perform file and buffer-related operations, such as opening and closing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 files, saving and printing buffers, as well as exiting Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 @cindex File menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 @item Edit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Perform standard editing operations, such as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 cutting, copying, pasting, and killing selected text.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 @cindex Edit menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 @item Apps
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 Access to sub-applications implemented within XEmacs, such as the mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 reader, the World Wide Web browser, the spell-checker, and the calendar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 @cindex Apps menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 @item Options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 Control various options regarding the way XEmacs works, such as controlling
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 which elements of the frame are visible, selecting the fonts to be used for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 text, specifying whether searches are case-sensitive, etc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 @cindex Options menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 @item Buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 Present a menu of buffers for selection as well as the option to display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 a buffer list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 @cindex Buffers menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 @item Tools
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 Perform various actions designed to automate software development and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 similar technical work, such as searching through many files, compiling
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 a program, and comparing or merging two or three files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 @cindex Tools menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 @item Help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 Access to Emacs Info.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 @cindex Help menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 @cindex Pull-down Menus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 @cindex menus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 There are two ways of selecting an item from a pull-down menu:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 Select an item in the menu bar by moving the cursor over it and click the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 left mouse-button. Then move the cursor over the menu item you want to choose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 and click left again.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 Select an item in the menu bar by moving the cursor over it and click and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 hold the left mouse-button. With the mouse-button depressed, move the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 cursor over the menu item you want, then release it to make your selection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 If a command in the pull-down menu is not applicable in a given
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 situation, the command is disabled and its name appears faded. You
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 cannot invoke items that are faded. For example, many commands on the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 @b{Edit} menu appear faded until you select text on which they are to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 operate; after you select a block of text, edit commands are enabled.
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
72 @xref{Mouse Selection} for information on using the mouse to select
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
73 text. @xref{Using X Selections} for related information.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 There are also @kbd{M-x} equivalents for each menu item. To find the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 equivalent for any left-button menu item, do the following:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 @enumerate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 Type @kbd{C-h k} to get the @code{Describe Key} prompt.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 Select the menu item and click.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 @end enumerate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 Emacs displays the function associated with the menu item in a separate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 window, usually together with some documentation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 * File Menu:: Items on the File menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 * Edit Menu:: Items on the Edit menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 * Apps Menu:: Items on the Apps menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 * Options Menu:: Items on the Options menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 * Buffers Menu:: Information about the Buffers menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 * Tools Menu:: Items on the Tools menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 * Help Menu:: Items on the Help menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 * Menu Customization:: Adding and removing menu items and related
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 operations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 @node File Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 @subsection The File Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 @cindex File menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 The @b{File} menu bar item contains the items @b{New Frame}, @b{Open
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 File...}, @b{Save Buffer}, @b{Save Buffer As...}, @b{Revert Buffer},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 @b{Print Buffer}, @b{Delete Frame}, @b{Kill Buffer} and @b{Exit Emacs}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 on the pull-down menu. If you select a menu item, Emacs executes the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 equivalent command.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 @cindex Open File, New Frame... menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 @cindex Open File... menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 @cindex Insert File... menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 @cindex Save Buffer menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 @cindex Save Buffer As ... menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 @cindex Revert Buffer menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 @cindex Kill Buffer menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 @cindex Print Buffer menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 @cindex New Frame menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 @cindex Delete Frame menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 @cindex Split Frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 @cindex Un-split (Keep This)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 @cindex Un-split (Keep Others)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 @cindex Exit Emacs menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 @table @b
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 @item Open File, New Frame...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 Prompts you for a filename and loads that file into a new buffer in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 new Emacs frame, that is, a new X window running under the same Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 process. You can remove the frame using the @b{Delete Frame} menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 item. When you remove the last frame, you exit Emacs and are prompted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 for confirmation. @refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 @item Open File...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 Prompts you for a filename and loads that file into a new buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 @b{Open File...} is equivalent to the Emacs command @code{find-file} (@kbd{C-x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 C-f}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 @item Insert File...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 Prompts you for a filename and inserts the contents of that file into
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 the current buffer. The file associated with the current buffer is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 not changed by this command. This is equivalent to the Emacs command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @code{insert-file} (@kbd{C-x i}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 @item Save Buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 Writes and saves the current Emacs buffer as the latest
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 version of the current visited file. @b{Save Buffer} is equivalent to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 Emacs command @code{save-buffer} (@kbd{C-x C-s}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 @item Save Buffer As...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 Writes and saves the current Emacs buffer to the filename you specify.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 @b{Save Buffer As...} is equivalent to the Emacs command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 @code{write-file} (@kbd{C-x C-w}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 @item Revert Buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 Restores the last saved version of the file to the current buffer. When
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 you edit a buffer containing a text file, you must save the buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 before your changes become effective. Use @b{Revert Buffer} if you do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 not want to keep the changes you have made in the buffer. @b{Revert
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 Buffer} is equivalent to the Emacs command @code{revert-file} (@kbd{M-x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 revert-buffer}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 @item Kill Buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 Kills the current buffer, prompting you first if there are unsaved
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 changes. This is roughly equivalent to the Emacs command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 @code{kill-buffer} (@kbd{C-x k}), except that @code{kill-buffer}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 prompts for the name of a buffer to kill. @refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 @item Print Buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 Prints a hardcopy of the current buffer. Equivalent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 to the Emacs command @code{print-buffer} (@kbd{M-x print-buffer}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 @item New Frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 Creates a new Emacs frame displaying the @code{*scratch*} buffer. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 is like the @b{Open File, New Frame...} menu item, except that it does
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 not prompt for or load a file.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 @item Delete Frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 Allows you to close all but one of the frames created by @b{New Frame}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 If you created several Emacs frames belonging to the same Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 process, you can close all but one of them. When you attempt to close the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 last frame, Emacs informs you that you are attempting to delete the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 last frame. You have to choose @b{Exit Emacs} for that.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 @item Split Frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 Divides the current window on the current frame into two equal-sized
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 windows, both displaying the same buffer. Equivalent to the Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 command @code{split-window-vertically} (@kbd{C-x 2}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 @item Un-split (Keep This)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 If the frame is divided into multiple windows, this removes all windows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 other than the selected one. Equivalent to the Emacs command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 @code{delete-other-windows} (@kbd{C-x 1}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 @item Un-split (Keep Others)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 If the frame is divided into multiple windows, this removes the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 selected window from the frame, giving the space back to one of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 other windows. Equivalent to the Emacs command @code{delete-window}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (@kbd{C-x 0}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 @item Exit Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 Shuts down (kills) the Emacs process. Equivalent to the Emacs command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 @code{save-buffers-kill-emacs} (@kbd{C-x C-c}). Before killing the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 Emacs process, the system asks which unsaved buffers to save by going through
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 the list of all buffers in that Emacs process.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 @node Edit Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 @subsection The Edit Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 @cindex Edit menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 The @b{Edit} pull-down menu contains the @b{Undo}, @b{Cut}, @b{Copy},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 @b{Paste}, and @b{Clear} menu items. When you select a menu item, Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 executes the equivalent command. Most commands on the @b{Edit} menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 work on a block of text, the X selection. They appear faded until you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 select a block of text (activate a region) with the mouse. @xref{Using
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 X Selections}, @pxref{Killing}, and @pxref{Yanking} for more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 information.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 @c **** zmacs-regions is on by default these days - jwz
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 @c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 @c Note: By default, you can use the @b{Edit} menu items on the region between
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 @c point an the mark as well as regions selected with the mouse. To change
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 @c this behavior, set the variable @code{zmacs-regions} to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 @c @code{t}. @xref{Active Regions} for more information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @cindex Undo menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 @cindex Cut menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 @cindex Copy menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 @cindex Paste menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 @cindex Clear menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 @cindex Start Macro Recording menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 @cindex End Macro Recording menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 @cindex Execute Last Macro menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 @table @b
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 @item Undo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 Undoes the previous command. @b{Undo} is equivalent to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 the Emacs command @code{undo} (@kbd{C-x u}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 @item Cut
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 Removes the selected text block from the current buffer, makes it the X
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 clipboard selection, and places it in the kill ring. Before executing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 this command, you have to select a region using Emacs region selection
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 commands or with the mouse.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 @item Copy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 Makes a selected text block the X clipboard selection, and places it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 the kill ring. You can select text using one of the Emacs region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 selection commands or by selecting a text region with the mouse.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 @item Paste
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 Inserts the current value of the X clipboard selection in the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 buffer. Note that this is not necessarily the same as the Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 @code{yank} command, because the Emacs kill ring and the X clipboard
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 selection are not the same thing. You can paste in text you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 have placed in the clipboard using @b{Copy} or @b{Cut}. You can also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 use @b{Paste} to insert text that was pasted into the clipboard from other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 applications.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 @item Clear
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 Removes the selected text block from the current buffer but does not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 place it in the kill ring or the X clipboard selection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 @item Start Macro Recording
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 After selecting this, Emacs will remember every keystroke you type until
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 @b{End Macro Recording} is selected. This is the same as the Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 command @code{start-kbd-macro} (@kbd{C-x (}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 @item End Macro Recording
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 Selecting this tells emacs to stop remembering your keystrokes. This is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 the same as the Emacs command @code{end-kbd-macro} (@kbd{C-x )}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 @item Execute Last Macro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 Selecting this item will cause emacs to re-interpret all of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 keystrokes which were saved between selections of the @b{Start Macro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 Recording} and @b{End Macro Recording} menu items. This is the same
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 as the Emacs command @code{call-last-kbd-macro} (@kbd{C-x e}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 @node Apps Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 @subsection The Apps Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 @cindex Apps menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 The @b{Apps} pull-down menu contains the @b{Read Mail (VM)...}, @b{Read
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 Mail (MH)...}, @b{Send Mail...}, @b{Usenet News}, @b{Browse the Web},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 @b{Gopher}, @b{Spell-Check Buffer} and @b{Emulate VI} menu items,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 and the @b{Calendar} and @b{Games} sub-menus. When you select a menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 item, Emacs executes the equivalent command. For some of the menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 items, there are sub-menus which you will need to select.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 @node Options Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 @subsection The Options Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 @cindex Options menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 The @b{Options} pull-down menu contains the @b{Read Only}, @b{Case
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 Sensitive Search}, @b{Overstrike}, @b{Auto Delete Selection},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 @b{Teach Extended Commands}, @b{Syntax Highlighting}, @b{Paren
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 Highlighting}, @b{Font}, @b{Size}, @b{Weight}, @b{Buffers Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 Length...}, @b{Buffers Sub-Menus} and @b{Save Options} menu items.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 When you select a menu item, Emacs executes the equivalent command.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 For some of the menu items, there are sub-menus which you will need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 to select.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 @cindex Read Only menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 @cindex Case Sensitive Search menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 @cindex Overstrike menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 @cindex Auto Delete Selection menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 @cindex Teach Extended Commands menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 @cindex Syntax Highlighting menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 @cindex Paren Highlighting menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 @cindex Font menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 @cindex Size menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 @cindex Weight menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 @cindex Buffers Menu Length... menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 @cindex Buffers Sub-Menus menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 @cindex Save Options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 @table @b
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 @item Read Only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 Selecting this item will cause the buffer to visit the file in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 read-only mode. Changes to the file will not be allowed. This is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 equivalent to the Emacs command @code{toggle-read-only}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 (@kbd{C-x C-q}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 @item Case Sensitive Search
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 Selecting this item will cause searches to be case-sensitive. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 its not selected then searches will ignore case. This option is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 local to the buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 @item Overstrike
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 After selecting this item, when you type letters they will replace
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 existing text on a one-to-one basis, rather than pushing it to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 right. At the end of a line, such characters extend the line. Before
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 a tab, such characters insert until the tab is filled in. This is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 same as Emacs command @code{quoted-insert} (@kbd{C-q}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 @item Auto Delete Selection
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 Selecting this item will cause automatic deletion of the selected
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 region. The typed text will replace the selection if the selection
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 is active (i.e. if its highlighted). If the option is not selected
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 then the typed text is just inserted at the point.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 @item Teach Extended Commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 After you select this item, any time you execute a command with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 @kbd{M-x}which has a shorter keybinding, you will be shown the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 alternate binding before the command executes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 @item Syntax Highlighting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 You can customize your @code{.emacs} file to include the font-lock
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 mode so that when you select this item, the comments will be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 displayed in one face, strings in another, reserved words in another,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 and so on. When @b{Fonts} is selected, different parts of the program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 will appear in different Fonts. When @b{Colors} is selected, then the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 program will be displayed in different colors. Selecting @b{None}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 causes the program to appear in just one Font and Color. Selecting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 @b{Less} resets the Fonts and Colors to a fast, minimal set of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 decorations. Selecting @b{More} resets the Fonts and Colors to a larger
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 set of decorations. For example, if @b{Less} is selected (which is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 default setting) then you might have all comments in green color.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 Whereas, if @b{More} is selected then a function name in the comments
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 themselves might appear in a different Color or Font.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 @item Paren Highlighting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 After selecting @b{Blink} from this item, if you place the cursor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 on a parenthesis, the matching parenthesis will blink. If you select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 @b{Highlight} and place the cursor on a parenthesis, the whole
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 expression of the parenthesis under the cursor will be highlighted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 Selecting @b{None} will turn off the options (regarding @b{Paren
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 Highlighting}) which you had selected earlier.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 @item Font
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 You can select any Font for your program by choosing from one of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 available Fonts.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 @item Size
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 You can select any size ranging from @b{2} to @b{24} by selecting the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 appropriate option.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 @item Weight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 You can choose either @b{Bold} or @b{Medium} for the weight.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 @item Buffers Menu Length...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 Prompts you for the number of buffers to display. Then it will display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 that number of most recently selected buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 @item Buffers Sub-Menus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 After selection of this item the Buffers menu will contain several
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 commands, as submenus of each buffer line. If this item is unselected,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 then there are no submenus for each buffer line, the only command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 available will be selecting that buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 @item Save Options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 Selecting this item will save the current settings of your Options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 menu to your @code{.emacs} file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 @node Buffers Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 @subsection The Buffers Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 @cindex Buffers menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 The @b{Buffers} menu provides a selection of up to ten buffers and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 item @b{List All Buffers}, which provides a Buffer List. @xref{List
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
401 Buffers} for more information.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 @node Tools Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 @subsection The Tools Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 @cindex Tools menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 The @b{Tools} pull-down menu contains the @b{Grep...}, @b{Compile...},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 @b{Shell Command...}, @b{Shell Command on Region...}, @b{Debug(GDB)...}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 and @b{Debug(DBX)...} menu items, and the @b{Compare}, @b{Merge},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 @b{Apply Patch} and @b{Tags} sub-menus. When you select a menu item,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 Emacs executes the equivalent command. For some of the menu items,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 there are sub-menus which you will need to select.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 @node Help Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 @subsection The Help Menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 @cindex Help menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 The Help Menu gives you access to Emacs Info and provides a menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 equivalent for each of the choices you have when using @kbd{C-h}.
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
420 @xref{Help} for more information.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 The Help menu also gives access to UNIX online manual pages via the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 @b{UNIX Manual Page} option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 @node Menu Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 @subsection Customizing XEmacs Menus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 You can customize any of the pull-down menus by adding or removing menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 items and disabling or enabling existing menu items.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 The following functions are available:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 @item add-menu: @var{(menu-path menu-name menu-items &optional before)}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 Add a menu to the menu bar or one of its submenus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 @item add-menu-item: @var{(menu-path item-name function enabled-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 &optional before)}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 Add a menu item to a menu, creating the menu first if necessary.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 @item delete-menu-item: @var{(path)}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 Remove the menu item defined by @var{path} from the menu hierarchy.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 @item disable-menu-item: @var{(path)}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 Disable the specified menu item.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 @item enable-menu-item: @var{(path)}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 Enable the specified previously disabled menu item.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 @item relabel-menu-item: @var{(path new-name)}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 Change the string of the menu item specified by @var{path} to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 @var{new-name}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 @findex add-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 @cindex adding menus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 Use the function @code{add-menu} to add a new menu or submenu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 If a menu or submenu of the given name exists already, it is changed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 @var{menu-path} identifies the menu under which the new menu should be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 inserted. It is a list of strings; for example, @code{("File")} names
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 the top-level @b{File} menu. @code{("File" "Foo")} names a hypothetical
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 submenu of @b{File}. If @var{menu-path} is @code{nil}, the menu is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 added to the menu bar itself.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 @var{menu-name} is the string naming the menu to be added.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 @var{menu-items} is a list of menu item descriptions. Each menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 should be a vector of three elements:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 A string, which is the name of the menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 A symbol naming a command, or a form to evaluate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 @code{t} or @code{nil} to indicate whether the item is selectable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 The optional argument @var{before} is the name of the menu before which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 the new menu or submenu should be added. If the menu is already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 present, it is not moved.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 @findex add-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 @cindex adding menu items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 The function @code{add-menu-item} adds a menu item to the specified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 menu, creating the menu first if necessary. If the named item already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 exists, the menu remains unchanged.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 @var{menu-path} identifies the menu into which the new menu item should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 be inserted. It is a list of strings; for example, @code{("File")}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 names the top-level @b{File} menu. @code{("File" "Foo")} names a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 hypothetical submenu of @b{File}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 @var{item-name} is the string naming the menu item to add.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 @var{function} is the command to invoke when this menu item is selected.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 If it is a symbol, it is invoked with @code{call-interactively}, in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 same way that functions bound to keys are invoked. If it is a list, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 list is simply evaluated.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 @var{enabled-p} controls whether the item is selectable or not.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 It should be @code{t}, @code{nil}, or a form to evaluate to decide.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 This form will be evaluated just before the menu is displayed, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 the menu item will be selectable if that form returns non-@code{nil}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 For example, to make the @code{rename-file} command available from the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 @b{File} menu, use the following code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 (add-menu-item '("File") "Rename File" 'rename-file t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 To add a submenu of file management commands using a @b{File Management}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 item, use the following code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 (add-menu-item '("File" "File Management") "Copy File" 'copy-file t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 (add-menu-item '("File" "File Management") "Delete File" 'delete-file t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 (add-menu-item '("File" "File Management") "Rename File" 'rename-file t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 The optional @var{before} argument is the name of a menu item before
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 which the new item should be added. If the item is already present, it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 is not moved.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 @findex delete-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 @cindex deleting menu items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 To remove a specified menu item from the menu hierarchy, use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 @code{delete-menu-item}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 @var{path} is a list of strings that identify the position of the menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 item in the menu hierarchy. @code{("File" "Save")} means the menu item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 called @b{Save} under the top level @b{File} menu. @code{("Menu" "Foo"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 "Item")} means the menu item called @b{Item} under the @b{Foo} submenu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 of @b{Menu}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 @findex disable-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 @findex enable-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 @cindex enabling menu items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 @cindex disabling menu items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 To disable a menu item, use @code{disable-menu-item}. The disabled
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 menu item is grayed and can no longer be selected. To make the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 item selectable again, use @code{enable-menu-item}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 @code{disable-menu-item} and @code{enable-menu-item} both have the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 argument @var{path}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 @findex relabel-menu-item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 @cindex changing menu items
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 To change the string of the specified menu item, use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 @code{relabel-menu-item}. This function also takes the argument @var{path}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 @var{new-name} is the string to which the menu item will be changed.