XEmacs 21.2.27 "Hera".
[chise/xemacs-chise.git.1] / man / xemacs / xemacs.texi
1 \input texinfo  @c -*-texinfo-*-
2 @setfilename ../../info/xemacs.info
3 @comment  node-name,  next,  previous,  up
4
5
6 @ifinfo
7 @dircategory XEmacs Editor
8 @direntry
9 * XEmacs: (xemacs).             XEmacs Editor.
10 @end direntry
11
12 This file documents the XEmacs editor.
13
14 Copyright (C) 1985, 1986, 1988 Richard M. Stallman.
15 Copyright @copyright{} 1991, 1992, 1993, 1994 Lucid, Inc.
16 Copyright @copyright{} 1993, 1994 Sun Microsystems, Inc.
17 Copyright @copyright{} 1995 Amdahl Corporation.
18
19 Permission is granted to make and distribute verbatim copies of
20 this manual provided the copyright notice and this permission notice
21 are preserved on all copies.
22
23 @ignore
24 Permission is granted to process this file through Tex and print the
25 results, provided the printed document carries copying permission
26 notice identical to this one except for the removal of this paragraph
27 (this paragraph not being relevant to the printed manual).
28
29 @end ignore
30 Permission is granted to copy and distribute modified versions of this
31 manual under the conditions for verbatim copying, provided also that the
32 sections entitled ``The GNU Manifesto'', ``Distribution'' and ``GNU
33 General Public License'' are included exactly as in the original, and
34 provided that the entire resulting derived work is distributed under the
35 terms of a permission notice identical to this one.
36
37 Permission is granted to copy and distribute translations of this manual
38 into another language, under the above conditions for modified versions,
39 except that the sections entitled ``The GNU Manifesto'',
40 ``Distribution'' and ``GNU General Public License'' may be included in a
41 translation approved by the author instead of in the original English.
42 @end ifinfo
43 @c
44 @setchapternewpage odd
45 @settitle XEmacs User's Manual
46 @c
47 @titlepage
48 @sp 6
49 @center @titlefont{XEmacs User's Manual}
50 @sp 4
51 @sp 1
52 @sp 1
53 @center July 1994
54 @center (General Public License upgraded, January 1991)
55 @sp 5
56 @center Richard Stallman
57 @sp 1
58 @center Lucid, Inc.
59 @sp 1
60 @center and
61 @sp 1
62 @center Ben Wing
63 @page
64 @vskip 0pt plus 1filll
65 Copyright @copyright{} 1985, 1986, 1988 Richard M. Stallman.
66
67 Copyright @copyright{} 1991, 1992, 1993, 1994  Lucid, Inc.
68
69 Copyright @copyright{} 1993, 1994 Sun Microsystems, Inc.
70
71 Copyright @copyright{} 1995 Amdahl Corporation.
72
73 Permission is granted to make and distribute verbatim copies of
74 this manual provided the copyright notice and this permission notice
75 are preserved on all copies.
76
77 Permission is granted to copy and distribute modified versions of this
78 manual under the conditions for verbatim copying, provided also that the
79 sections entitled ``The GNU Manifesto'', ``Distribution'' and ``GNU
80 General Public License'' are included exactly as in the original, and
81 provided that the entire resulting derived work is distributed under the
82 terms of a permission notice identical to this one.
83
84 Permission is granted to copy and distribute translations of this manual
85 into another language, under the above conditions for modified versions,
86 except that the sections entitled ``The GNU Manifesto'',
87 ``Distribution'' and ``GNU General Public License'' may be included in a
88 translation approved by the author instead of in the original English.
89 @end titlepage
90 @page
91 @ifinfo
92 @node Top, License,, (dir)
93 @top The XEmacs Editor
94
95
96 XEmacs is the extensible, customizable, self-documenting real-time
97 display editor.  This Info file describes how to edit with Emacs
98 and some of how to customize it, but not how to extend it.  It
99 corresponds to XEmacs version 21.0.
100
101 This manual is intended as a detailed reference to XEmacs.  If
102 you are looking for an introductory manual, see the New User's
103 Guide.
104
105 @end ifinfo
106 @menu
107 * License::     The GNU General Public License gives you permission
108                 to redistribute XEmacs on certain terms; and also
109                 explains that there is no warranty.
110 * Distrib::     How to get XEmacs.
111 * Intro::       An introduction to XEmacs concepts.
112 * Glossary::    The glossary.
113 * Manifesto::   What's GNU?  Gnu's Not Unix!
114
115 Indices, nodes containing large menus
116 * Key Index::      An item for each standard XEmacs key sequence.
117 * Command Index::  An item for each command name.
118 * Variable Index:: An item for each documented variable.
119 * Concept Index::  An item for each concept.
120
121 Important General Concepts
122 * Frame::      How to interpret what you see on the screen.
123 * Keystrokes::  Keyboard gestures XEmacs recognizes.
124 * Pull-down Menus:: 
125                 The XEmacs Pull-down Menus available under X.
126 * Entering Emacs::    
127                 Starting Emacs from the shell.
128 * Exiting::     Stopping or killing XEmacs.
129 * Command Switches::  
130                 Hairy startup options.
131 * Startup Paths::
132                 How XEmacs finds Directories and Files
133
134 Fundamental Editing Commands
135 * Basic::       The most basic editing commands.
136 * Undo::        Undoing recently made changes in the text.
137 * Minibuffer::  Entering arguments that are prompted for.
138 * M-x::         Invoking commands by their names.
139 * Help::        Commands for asking XEmacs about its commands.
140
141 Important Text-Changing Commands
142 * Mark::        The mark: how to delimit a ``region'' of text.
143 * Mouse Selection:: 
144                 Selecting text with the mouse.
145 * Additional Mouse Operations::
146                 Other operations available from the mouse.
147 * Killing::     Killing text.
148 * Yanking::     Recovering killed text.  Moving text.
149 * Using X Selections::
150                 Using primary selection, cut buffers, and highlighted regions.
151 * Accumulating Text::
152                 Other ways of copying text.
153 * Rectangles::  Operating on the text inside a rectangle on the screen.
154 * Registers::   Saving a text string or a location in the buffer.
155 * Display::     Controlling what text is displayed.
156 * Search::      Finding or replacing occurrences of a string.
157 * Fixit::       Commands especially useful for fixing typos.
158
159 Larger Units of Text
160 * Files::       All about handling files.
161 * Buffers::     Multiple buffers; editing several files at once.
162 * Windows::     Viewing two pieces of text at once.
163 * Mule::        Using world scripts.
164
165 Advanced Features
166 * Major Modes:: Text mode vs. Lisp mode vs. C mode ...
167 * Indentation:: Editing the white space at the beginnings of lines.
168 * Text::        Commands and modes for editing English.
169 * Programs::    Commands and modes for editing programs.
170 * Running::     Compiling, running and debugging programs.
171 * Packages::    How to add new packages to XEmacs.
172 * Abbrevs::     How to define text abbreviations to reduce
173                  the number of characters you must type.
174 * Picture::     Editing pictures made up of characters
175                  using the quarter-plane screen model.
176 * Sending Mail:: Sending mail in XEmacs.
177 * Reading Mail:: Reading mail in XEmacs.
178 * Calendar/Diary:: A Calendar and diary facility in XEmacs.
179 * Sorting::     Sorting lines, paragraphs or pages within XEmacs.
180 * Shell::       Executing shell commands from XEmacs.
181 * Narrowing::   Restricting display and editing to a portion
182                  of the buffer.
183 * Hardcopy::    Printing buffers or regions.
184 * Recursive Edit::
185                 A command can allow you to do editing
186                  "within the command".  This is called a
187                  `recursive editing level'.
188 * Dissociated Press::  Dissociating text for fun.
189 * CONX::               A different kind of dissociation.
190 * Amusements::         Various games and hacks.
191 * Emulation::          Emulating some other editors with XEmacs.
192 * Customization::      Modifying the behavior of XEmacs.
193
194 Recovery from Problems.
195 * Quitting::    Quitting and aborting.
196 * Lossage::     What to do if XEmacs is hung or malfunctioning.
197 * Bugs::        How and when to report a bug.
198
199 Here are some other nodes which are really inferiors of the ones
200 already listed, mentioned here so you can get to them in one step:
201
202  --- The Detailed Node Listing ---
203
204 The Organization of the Frame
205
206 * Point::               The place in the text where editing commands operate.  
207 * Echo Area::           Short messages appear at the bottom of the frame.  
208 * Mode Line::           Interpreting the mode line.  
209 * XEmacs under X::      Some information on using XEmacs under the X 
210                         Window System. 
211
212 Keystrokes
213
214 * Intro to Keystrokes::      Keystrokes as building blocks of key sequences.
215 * Representing Keystrokes::  Using lists of modifiers and keysyms to
216                              represent keystrokes.
217 * Key Sequences::            Combine key strokes into key sequences you can
218                              bind to commands.
219 * String Key Sequences::     Available for upward compatibility.
220 * Meta Key::                 Using @key{ESC} to represent @key{Meta}
221 * Super and Hyper Keys::     Adding modifier keys on certain keyboards.
222 * Character Representation:: How characters appear in XEmacs buffers.
223 * Commands::                 How commands are bound to key sequences.
224                     
225 Pull-down Menus
226
227 * File Menu::           Items on the File menu.
228 * Edit Menu::           Items on the Edit menu.
229 * Apps Menu::           Items on the Apps menu.
230 * Options Menu::        Items on the Options menu. 
231 * Buffers Menu::        Information about the Buffers menu.
232 * Tools Menu::          Items on the Tools menu.
233 * Help Menu::           Items on the Help menu. 
234 * Menu Customization::  Adding and removing menu items and related
235                         operations.
236
237 Basic Editing Commands
238
239 * Blank Lines::        Commands to make or delete blank lines.
240 * Continuation Lines:: Lines too wide for the frame.
241 * Position Info::      What page, line, row, or column is point on?
242 * Arguments::          Numeric arguments for repeating a command.
243
244 The Minibuffer
245
246 * File: Minibuffer File.  Entering file names with the minibuffer.
247 * Edit: Minibuffer Edit.  How to edit in the minibuffer.
248 * Completion::            An abbreviation facility for minibuffer input.
249 * Repetition::            Re-executing commands that used the minibuffer.
250
251 The Mark and the Region
252
253 * Setting Mark::        Commands to set the mark.
254 * Using Region::        Summary of ways to operate on contents of the region.
255 * Marking Objects::     Commands to put region around textual units.
256 * Mark Ring::           Previous mark positions saved so you can go back there.
257
258 Yanking
259
260 * Kill Ring::       Where killed text is stored.  Basic yanking.
261 * Appending Kills:: Several kills in a row all yank together.
262 * Earlier Kills::   Yanking something killed some time ago.
263
264 Using X Selections
265
266 * X Clipboard Selection::       Pasting to the X clipboard.
267 * X Selection Commands::        Other operations on the selection.
268 * X Cut Buffers::               X cut buffers are available for compatibility.
269 * Active Regions::              Using zmacs-style highlighting of the
270                                  selected region.
271
272 Registers
273
274 * RegPos::    Saving positions in registers.
275 * RegText::   Saving text in registers.
276 * RegRect::   Saving rectangles in registers.
277
278 Controlling the Display
279
280 * Scrolling::              Moving text up and down in a window.
281 * Horizontal Scrolling::   Moving text left and right in a window.
282 * Selective Display::      Hiding lines with lots of indentation.
283 * Display Vars::           Information on variables for customizing display.
284
285 Searching and Replacement
286
287 * Incremental Search::     Search happens as you type the string.
288 * Non-Incremental Search:: Specify entire string and then search.
289 * Word Search::            Search for sequence of words.
290 * Regexp Search::          Search for match for a regexp.
291 * Regexps::                Syntax of regular expressions.
292 * Search Case::            To ignore case while searching, or not.
293 * Replace::                Search, and replace some or all matches.
294 * Other Repeating Search:: Operating on all matches for some regexp.
295
296 Replacement Commands
297
298 * Unconditional Replace::  Replacing all matches for a string.
299 * Regexp Replace::         Replacing all matches for a regexp.
300 * Replacement and Case::   How replacements preserve case of letters.
301 * Query Replace::          How to use querying.
302
303 Commands for Fixing Typos
304
305 * Kill Errors:: Commands to kill a batch of recently entered text.
306 * Transpose::   Exchanging two characters, words, lines, lists...
307 * Fixing Case:: Correcting case of last word entered.
308 * Spelling::    Apply spelling checker to a word, or a whole file.
309
310 File Handling
311
312 * File Names::       How to type and edit file name arguments.
313 * Visiting::         Visiting a file prepares XEmacs to edit the file.
314 * Saving::           Saving makes your changes permanent.
315 * Reverting::        Reverting cancels all the changes not saved.
316 * Auto Save::        Auto Save periodically protects against loss of data.
317 * Version Control::  Version control systems (RCS and SCCS).
318 * ListDir::          Listing the contents of a file directory.
319 * Comparing Files::  Finding where two files differ.
320 * Dired::            ``Editing'' a directory to delete, rename, etc.
321                      the files in it.
322 * Misc File Ops::    Other things you can do on files.
323
324 Saving Files
325
326 * Backup::       How XEmacs saves the old version of your file.
327 * Interlocking:: How XEmacs protects against simultaneous editing
328                   of one file by two users.
329
330 Backup Files
331
332 * Names: Backup Names.          How backup files are named;
333                                 Choosing single or numbered backup files.
334 * Deletion: Backup Deletion.    XEmacs deletes excess numbered backups.
335 * Copying: Backup Copying.      Backups can be made by copying or renaming.
336
337 Auto-Saving: Protection Against Disasters
338
339 * Files: Auto Save Files.
340 * Control: Auto Save Control.
341 * Recover::             Recovering text from auto-save files.
342
343 Version Control
344
345 * Concepts of VC::              Basic version control information;
346                                   checking files in and out.
347 * Editing with VC::             Commands for editing a file maintained
348                                   with version control.
349 * Variables for Check-in/out::  Variables that affect the commands used
350                                   to check files in or out.
351 * Log Entries::                 Logging your changes.
352 * Change Logs and VC::          Generating a change log file from log
353                                   entries. 
354 * Old Versions::                Examining and comparing old versions.
355 * VC Status::                   Commands to view the VC status of files and
356                                   look at log entries.
357 * Renaming and VC::             A command to rename both the source and
358                                   master file correctly.
359 * Snapshots::                   How to make and use snapshots, a set of
360                                   file versions that can be treated as a unit.
361 * Version Headers::             Inserting version control headers into
362                                   working files.
363
364 Snapshots
365
366 * Making Snapshots::            The snapshot facilities.
367 * Snapshot Caveats::            Things to be careful of when using snapshots.
368
369 Dired, the Directory Editor
370
371 * Enter: Dired Enter.         How to invoke Dired.
372 * Edit: Dired Edit.           Editing the Dired buffer.
373 * Deletion: Dired Deletion.   Deleting files with Dired.
374 * Immed: Dired Immed.         Other file operations through Dired.
375
376 Using Multiple Buffers
377
378 * Select Buffer::   Creating a new buffer or reselecting an old one.
379 * List Buffers::    Getting a list of buffers that exist.
380 * Misc Buffer::     Renaming; changing read-onliness; copying text.
381 * Kill Buffer::     Killing buffers you no longer need.
382 * Several Buffers:: How to go through the list of all buffers
383                      and operate variously on several of them.
384
385 Multiple Windows
386
387 * Basic Window::     Introduction to XEmacs windows.
388 * Split Window::     New windows are made by splitting existing windows.
389 * Other Window::     Moving to another window or doing something to it.
390 * Pop Up Window::    Finding a file or buffer in another window.
391 * Change Window::    Deleting windows and changing their sizes.
392
393 Major Modes
394
395 * Choosing Modes::     How major modes are specified or chosen.
396
397 Indentation
398
399 * Indentation Commands:: Various commands and techniques for indentation.
400 * Tab Stops::            You can set arbitrary "tab stops" and then
401                          indent to the next tab stop when you want to.
402 * Just Spaces::          You can request indentation using just spaces.
403
404 Commands for Human Languages
405
406 * Text Mode::   The major modes for editing text files.
407 * Nroff Mode::  The major mode for editing input to the formatter nroff.
408 * TeX Mode::    The major modes for editing input to the formatter TeX.
409 * Outline Mode:: The major mode for editing outlines.
410 * Words::       Moving over and killing words.
411 * Sentences::   Moving over and killing sentences.
412 * Paragraphs::  Moving over paragraphs.
413 * Pages::       Moving over pages.
414 * Filling::     Filling or justifying text
415 * Case::        Changing the case of text
416
417 @TeX{} Mode
418
419 * Editing: TeX Editing.   Special commands for editing in TeX mode.
420 * Printing: TeX Print.    Commands for printing part of a file with TeX.
421
422 Outline Mode
423
424 * Format: Outline Format.         What the text of an outline looks like.
425 * Motion: Outline Motion.         Special commands for moving through outlines.
426 * Visibility: Outline Visibility. Commands to control what is visible.
427
428 Filling Text
429
430 * Auto Fill::     Auto Fill mode breaks long lines automatically.
431 * Fill Commands:: Commands to refill paragraphs and center lines.
432 * Fill Prefix::   Filling when every line is indented or in a comment, etc.
433
434 Editing Programs
435
436 * Program Modes::       Major modes for editing programs.
437 * Lists::               Expressions with balanced parentheses.
438                          There are editing commands to operate on them.
439 * Defuns::              Each program is made up of separate functions.
440                          There are editing commands to operate on them.
441 * Grinding::            Adjusting indentation to show the nesting.
442 * Matching::            Insertion of a close-delimiter flashes matching open.
443 * Comments::            Inserting, filling and aligning comments.
444 * Balanced Editing::    Inserting two matching parentheses at once, etc.
445 * Lisp Completion::     Completion on symbol names in Lisp code.
446 * Documentation::       Getting documentation of functions you plan to call.
447 * Change Log::          Maintaining a change history for your program.
448 * Tags::                Go directly to any function in your program in one
449                          command.  Tags remembers which file it is in.
450 * Fortran::             Fortran mode and its special features.
451 * Asm Mode::            Asm mode and its special features.
452
453 Indentation for Programs
454
455 * Basic Indent::
456 * Multi-line Indent::   Commands to reindent many lines at once.
457 * Lisp Indent::         Specifying how each Lisp function should be indented.
458 * C Indent::            Choosing an indentation style for C code.
459
460 Tags Tables
461
462 * Tag Syntax::          Tag syntax for various types of code and text files.  
463 * Create Tags Table::   Creating a tags table with @code{etags}.
464 * Select Tags Table::   How to visit a tags table.
465 * Find Tag::            Commands to find the definition of a specific tag. 
466 * Tags Search::         Using a tags table for searching and replacing.
467 * List Tags::           Listing and finding tags defined in a file.
468
469 Fortran Mode
470
471 * Motion: Fortran Motion.     Moving point by statements or subprograms.
472 * Indent: Fortran Indent.     Indentation commands for Fortran.
473 * Comments: Fortran Comments. Inserting and aligning comments.
474 * Columns: Fortran Columns.   Measuring columns for valid Fortran.
475 * Abbrev: Fortran Abbrev.     Built-in abbrevs for Fortran keywords.
476
477 Fortran Indentation
478
479 * Commands: ForIndent Commands. Commands for indenting Fortran.
480 * Numbers:  ForIndent Num.      How line numbers auto-indent.
481 * Conv:     ForIndent Conv.     Conventions you must obey to avoid trouble.
482 * Vars:     ForIndent Vars.     Variables controlling Fortran indent style.
483
484 Compiling and Testing Programs
485
486 * Compilation::        Compiling programs in languages other than Lisp
487                         (C, Pascal, etc.)
488 * Modes: Lisp Modes.   Various modes for editing Lisp programs, with
489                        different facilities for running the Lisp programs.
490 * Libraries: Lisp Libraries.      Creating Lisp programs to run in XEmacs.
491 * Eval: Lisp Eval.     Executing a single Lisp expression in XEmacs.
492 * Debug: Lisp Debug.   Debugging Lisp programs running in XEmacs.
493 * Interaction: Lisp Interaction.  Executing Lisp in an XEmacs buffer.
494 * External Lisp::      Communicating through XEmacs with a separate Lisp.
495
496 Lisp Libraries
497
498 * Loading::             Loading libraries of Lisp code into XEmacs for use.
499 * Compiling Libraries:: Compiling a library makes it load and run faster.
500 * Mocklisp::            Converting Mocklisp to Lisp so XEmacs can run it.
501
502 Packages
503
504 * Packages::            Introduction to XEmacs Packages.
505 * Package Terminology:: Understanding different kinds of packages.
506 * Using Packages::      How to install and use packages.
507 * Building Packages::   Building packages from sources.
508
509 Abbrevs
510
511 * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
512 * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
513 * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
514 * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
515 * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
516
517 Editing Pictures
518
519 * Basic Picture::         Basic concepts and simple commands of Picture Mode.
520 * Insert in Picture::     Controlling direction of cursor motion
521                            after "self-inserting" characters.
522 * Tabs in Picture::       Various features for tab stops and indentation.
523 * Rectangles in Picture:: Clearing and superimposing rectangles.
524
525 Sending Mail
526
527 * Format: Mail Format.    Format of the mail being composed.
528 * Headers: Mail Headers.  Details of allowed mail header fields.
529 * Mode: Mail Mode.        Special commands for editing mail being composed.
530
531 Running Shell Commands from XEmacs
532
533 * Single Shell::         How to run one shell command and return.
534 * Interactive Shell::    Permanent shell taking input via XEmacs.
535 * Shell Mode::           Special XEmacs commands used with permanent shell.
536
537 Customization
538
539 * Minor Modes::     Each minor mode is one feature you can turn on
540                      independently of any others.
541 * Variables::       Many XEmacs commands examine XEmacs variables
542                      to decide what to do; by setting variables,
543                      you can control their functioning.
544 * Keyboard Macros:: A keyboard macro records a sequence of keystrokes
545                      to be replayed with a single command.
546 * Key Bindings::    The keymaps say what command each key runs.
547                      By changing them, you can "redefine keys".
548 * Syntax::          The syntax table controls how words and expressions
549                      are parsed.
550 * Init File::       How to write common customizations in the @file{.emacs} 
551                      file.
552 * Audible Bell::    Changing how XEmacs sounds the bell. 
553 * Faces::           Changing the fonts and colors of a region of text. 
554 * X Resources::     X resources controlling various aspects of the
555                      behavior of XEmacs.
556
557 Variables
558
559 * Examining::           Examining or setting one variable's value.
560 * Easy Customization::  Convenient and easy customization of variables.
561 * Edit Options::        Examining or editing list of all variables' values.
562 * Locals::              Per-buffer values of variables.
563 * File Variables::      How files can specify variable values.
564
565 Keyboard Macros
566
567 * Basic Kbd Macro::     Defining and running keyboard macros.
568 * Save Kbd Macro::      Giving keyboard macros names; saving them in files.
569 * Kbd Macro Query::     Keyboard macros that do different things each use.
570
571 Customizing Key Bindings
572
573 * Keymaps::    Definition of the keymap data structure.
574                Names of XEmacs's standard keymaps.
575 * Rebinding::  How to redefine one key's meaning conveniently.
576 * Disabling::  Disabling a command means confirmation is required
577                 before it can be executed.  This is done to protect
578                 beginners from surprises.
579
580 The Syntax Table
581
582 * Entry: Syntax Entry.    What the syntax table records for each character.
583 * Change: Syntax Change.  How to change the information.
584
585 The Init File, @file{~/.emacs}
586
587 * Init Syntax::     Syntax of constants in Emacs Lisp.
588 * Init Examples::   How to do some things with an init file.
589 * Terminal Init::   Each terminal type can have an init file.
590
591 Dealing with XEmacs Trouble
592
593 * Stuck Recursive::    `[...]' in mode line around the parentheses.
594 * Screen Garbled::     Garbage on the screen.
595 * Text Garbled::       Garbage in the text.
596 * Unasked-for Search:: Spontaneous entry to incremental search.
597 * Emergency Escape::   Emergency escape---
598                         What to do if XEmacs stops responding.
599 * Total Frustration::  When you are at your wits' end.
600
601 @end menu
602
603 @iftex
604 @unnumbered Preface
605
606   This manual documents the use and simple customization of the XEmacs
607 editor.  The reader is not expected to be a programmer to use this
608 editor, and simple customizations do not require programming skills either.
609 Users who are not interested in customizing XEmacs can ignore the scattered
610 customization hints.
611
612   This document is primarily a reference manual, but it can also be used as a
613 primer.  However, if you are new to XEmacs, consider using the on-line,
614 learn-by-doing tutorial, which you get by running XEmacs and typing
615 @kbd{C-h t}.  With it, you learn XEmacs by using XEmacs on a specially
616 designed file which describes commands, tells you when to try them,
617 and then explains the results you see.  Using the tutorial gives a more vivid
618 introduction than the printed manual.  Also consider reading the XEmacs
619 New User's Guide, which is intended specifically as an introductory
620 manual rather than as a reference guide.
621
622   On first reading, just skim chapters one and two, which describe the
623 notational conventions of the manual and the general appearance of the
624 XEmacs display frame.  Note which questions are answered in these chapters,
625 so you can refer back later.  After reading chapter four you should
626 practice the commands there.  The next few chapters describe fundamental
627 techniques and concepts that are used constantly.  You need to understand
628 them thoroughly, experimenting with them if necessary.
629
630   To find the documentation on a particular command, look in the index.
631 Keys (character commands) and command names have separate indexes.  There
632 is also a glossary, with a cross reference for each term.
633
634 @ignore
635   If you know vaguely what the command
636 does, look in the command summary.  The command summary contains a line or
637 two about each command, and a cross reference to the section of the
638 manual that describes the command in more detail; related commands
639 are grouped together.
640 @end ignore
641
642   This manual comes in two forms: the published form and the Info form.
643 The Info form is for on-line perusal with the INFO program; it is
644 distributed along with XEmacs.  Both forms contain substantially the
645 same text and are generated from a common source file, which is also
646 distributed along with XEmacs.
647
648   XEmacs is a member of the Emacs editor family.  There are many Emacs
649 editors, all sharing common principles of organization.  For information on
650 the underlying philosophy of Emacs and the lessons learned from its
651 development, write for a copy of AI memo 519a, ``Emacs, the Extensible,
652 Customizable Self-Documenting Display Editor'', to Publications Department,
653 Artificial Intelligence Lab, 545 Tech Square, Cambridge, MA 02139, USA.  At
654 last report they charge $2.25 per copy.  Another useful publication is LCS
655 TM-165, ``A Cookbook for an Emacs'', by Craig Finseth, available from
656 Publications Department, Laboratory for Computer Science, 545 Tech Square,
657 Cambridge, MA 02139, USA.  The price today is $3.
658
659 This manual is for XEmacs installed on UNIX systems.  XEmacs also
660 exists on Microsoft Windows and Windows NT as Win-Emacs (which is
661 actually based on Lucid Emacs 19.6, an older incarnation of XEmacs).
662 @end iftex
663
664 @comment  node-name,  next,  previous,  up
665 @node License, Distrib, Top, Top
666 @unnumbered GNU GENERAL PUBLIC LICENSE
667 @center Version 1, February 1989
668 @cindex license to copy XEmacs
669 @cindex General Public License
670
671 @display
672 Copyright @copyright{} 1989 Free Software Foundation, Inc.
673 675 Mass Ave, Cambridge, MA 02139, USA
674
675 Everyone is permitted to copy and distribute verbatim copies
676 of this license document, but changing it is not allowed.
677 @end display
678
679 @unnumberedsec Preamble
680
681   The license agreements of most software companies try to keep users
682 at the mercy of those companies.  By contrast, our General Public
683 License is intended to guarantee your freedom to share and change free
684 software---to make sure the software is free for all its users.  The
685 General Public License applies to the Free Software Foundation's
686 software and to any other program whose authors commit to using it.
687 You can use it for your programs, too.
688
689   When we speak of free software, we are referring to freedom, not
690 price.  Specifically, the General Public License is designed to make
691 sure that you have the freedom to give away or sell copies of free
692 software, that you receive source code or can get it if you want it,
693 that you can change the software or use pieces of it in new free
694 programs; and that you know you can do these things.
695
696   To protect your rights, we need to make restrictions that forbid
697 anyone to deny you these rights or to ask you to surrender the rights.
698 These restrictions translate to certain responsibilities for you if you
699 distribute copies of the software, or if you modify it.
700
701   For example, if you distribute copies of a such a program, whether
702 gratis or for a fee, you must give the recipients all the rights that
703 you have.  You must make sure that they, too, receive or can get the
704 source code.  And you must tell them their rights.
705
706   We protect your rights with two steps: (1) copyright the software, and
707 (2) offer you this license which gives you legal permission to copy,
708 distribute and/or modify the software.
709
710   Also, for each author's protection and ours, we want to make certain
711 that everyone understands that there is no warranty for this free
712 software.  If the software is modified by someone else and passed on, we
713 want its recipients to know that what they have is not the original, so
714 that any problems introduced by others will not reflect on the original
715 authors' reputations.
716
717   The precise terms and conditions for copying, distribution and
718 modification follow.
719
720 @iftex
721 @unnumberedsec TERMS AND CONDITIONS
722 @end iftex
723 @ifinfo
724 @center TERMS AND CONDITIONS
725 @end ifinfo
726
727 @enumerate
728 @item
729 This License Agreement applies to any program or other work which
730 contains a notice placed by the copyright holder saying it may be
731 distributed under the terms of this General Public License.  The
732 ``Program'', below, refers to any such program or work, and a ``work based
733 on the Program'' means either the Program or any work containing the
734 Program or a portion of it, either verbatim or with modifications.  Each
735 licensee is addressed as ``you''.
736
737 @item
738 @cindex Distribution
739 You may copy and distribute verbatim copies of the Program's source
740 code as you receive it, in any medium, provided that you conspicuously and
741 appropriately publish on each copy an appropriate copyright notice and
742 disclaimer of warranty; keep intact all the notices that refer to this
743 General Public License and to the absence of any warranty; and give any
744 other recipients of the Program a copy of this General Public License
745 along with the Program.  You may charge a fee for the physical act of
746 transferring a copy.
747
748 @item
749 You may modify your copy or copies of the Program or any portion of
750 it, and copy and distribute such modifications under the terms of Paragraph
751 1 above, provided that you also do the following:
752
753 @itemize @bullet
754 @item
755 cause the modified files to carry prominent notices stating that
756 you changed the files and the date of any change; and
757
758 @item
759 cause the whole of any work that you distribute or publish, that
760 in whole or in part contains the Program or any part thereof, either
761 with or without modifications, to be licensed at no charge to all
762 third parties under the terms of this General Public License (except
763 that you may choose to grant warranty protection to some or all
764 third parties, at your option).
765
766 @item
767 If the modified program normally reads commands interactively when
768 run, you must cause it, when started running for such interactive use
769 in the simplest and most usual way, to print or display an
770 announcement including an appropriate copyright notice and a notice
771 that there is no warranty (or else, saying that you provide a
772 warranty) and that users may redistribute the program under these
773 conditions, and telling the user how to view a copy of this General
774 Public License.
775
776 @item
777 You may charge a fee for the physical act of transferring a
778 copy, and you may at your option offer warranty protection in
779 exchange for a fee.
780 @end itemize
781
782 Mere aggregation of another independent work with the Program (or its
783 derivative) on a volume of a storage or distribution medium does not bring
784 the other work under the scope of these terms.
785
786 @item
787 You may copy and distribute the Program (or a portion or derivative of
788 it, under Paragraph 2) in object code or executable form under the terms of
789 Paragraphs 1 and 2 above provided that you also do one of the following:
790
791 @itemize @bullet
792 @item
793 accompany it with the complete corresponding machine-readable
794 source code, which must be distributed under the terms of
795 Paragraphs 1 and 2 above; or,
796
797 @item
798 accompany it with a written offer, valid for at least three
799 years, to give any third party free (except for a nominal charge
800 for the cost of distribution) a complete machine-readable copy of the
801 corresponding source code, to be distributed under the terms of
802 Paragraphs 1 and 2 above; or,
803
804 @item
805 accompany it with the information you received as to where the
806 corresponding source code may be obtained.  (This alternative is
807 allowed only for noncommercial distribution and only if you
808 received the program in object code or executable form alone.)
809 @end itemize
810
811 Source code for a work means the preferred form of the work for making
812 modifications to it.  For an executable file, complete source code means
813 all the source code for all modules it contains; but, as a special
814 exception, it need not include source code for modules which are standard
815 libraries that accompany the operating system on which the executable
816 file runs, or for standard header files or definitions files that
817 accompany that operating system.
818
819 @item
820 You may not copy, modify, sublicense, distribute or transfer the
821 Program except as expressly provided under this General Public License.
822 Any attempt otherwise to copy, modify, sublicense, distribute or transfer
823 the Program is void, and will automatically terminate your rights to use
824 the Program under this License.  However, parties who have received
825 copies, or rights to use copies, from you under this General Public
826 License will not have their licenses terminated so long as such parties
827 remain in full compliance.
828
829 @item
830 By copying, distributing or modifying the Program (or any work based
831 on the Program) you indicate your acceptance of this license to do so,
832 and all its terms and conditions.
833
834 @item
835 Each time you redistribute the Program (or any work based on the
836 Program), the recipient automatically receives a license from the original
837 licensor to copy, distribute or modify the Program subject to these
838 terms and conditions.  You may not impose any further restrictions on the
839 recipients' exercise of the rights granted herein.
840
841 @page
842 @item
843 The Free Software Foundation may publish revised and/or new versions
844 of the General Public License from time to time.  Such new versions will
845 be similar in spirit to the present version, but may differ in detail to
846 address new problems or concerns.
847
848 Each version is given a distinguishing version number.  If the Program
849 specifies a version number of the license which applies to it and ``any
850 later version'', you have the option of following the terms and conditions
851 either of that version or of any later version published by the Free
852 Software Foundation.  If the Program does not specify a version number of
853 the license, you may choose any version ever published by the Free Software
854 Foundation.
855
856 @item
857 If you wish to incorporate parts of the Program into other free
858 programs whose distribution conditions are different, write to the author
859 to ask for permission.  For software which is copyrighted by the Free
860 Software Foundation, write to the Free Software Foundation; we sometimes
861 make exceptions for this.  Our decision will be guided by the two goals
862 of preserving the free status of all derivatives of our free software and
863 of promoting the sharing and reuse of software generally.
864
865 @iftex
866 @heading NO WARRANTY
867 @end iftex
868 @ifinfo
869 @center NO WARRANTY
870 @end ifinfo
871
872 @item
873 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
874 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
875 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
876 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
877 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
878 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
879 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
880 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
881 REPAIR OR CORRECTION.
882
883 @item
884 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
885 ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
886 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
887 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
888 ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT
889 LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
890 SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
891 WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
892 ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
893 @end enumerate
894
895 @iftex
896 @heading END OF TERMS AND CONDITIONS
897 @end iftex
898 @ifinfo
899 @center END OF TERMS AND CONDITIONS
900 @end ifinfo
901
902 @page
903 @unnumberedsec Appendix: How to Apply These Terms to Your New Programs
904
905   If you develop a new program, and you want it to be of the greatest
906 possible use to humanity, the best way to achieve this is to make it
907 free software which everyone can redistribute and change under these
908 terms.
909
910   To do so, attach the following notices to the program.  It is safest to
911 attach them to the start of each source file to most effectively convey
912 the exclusion of warranty; and each file should have at least the
913 ``copyright'' line and a pointer to where the full notice is found.
914
915 @smallexample
916 @var{one line to give the program's name and a brief idea of what it does.}
917 Copyright (C) 19@var{yy}  @var{name of author}
918
919 This program is free software; you can redistribute it and/or modify
920 it under the terms of the GNU General Public License as published by
921 the Free Software Foundation; either version 1, or (at your option)
922 any later version.
923
924 This program is distributed in the hope that it will be useful,
925 but WITHOUT ANY WARRANTY; without even the implied warranty of
926 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
927 GNU General Public License for more details.
928
929 You should have received a copy of the GNU General Public License
930 along with this program; if not, write to the Free Software
931 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
932 @end smallexample
933
934 Also add information on how to contact you by electronic and paper mail.
935
936 If the program is interactive, make it output a short notice like this
937 when it starts in an interactive mode:
938
939 @smallexample
940 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
941 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
942 This is free software, and you are welcome to redistribute it
943 under certain conditions; type `show c' for details.
944 @end smallexample
945
946 The hypothetical commands `show w' and `show c' should show the
947 appropriate parts of the General Public License.  Of course, the
948 commands you use may be called something other than `show w' and `show
949 c'; they could even be mouse-clicks or menu items---whatever suits your
950 program.
951
952 @page
953 You should also get your employer (if you work as a programmer) or your
954 school, if any, to sign a ``copyright disclaimer'' for the program, if
955 necessary.  Here a sample; alter the names:
956
957 @example
958 Yoyodyne, Inc., hereby disclaims all copyright interest in the
959 program `Gnomovision' (a program to direct compilers to make passes
960 at assemblers) written by James Hacker.
961
962 @var{signature of Ty Coon}, 1 April 1989
963 Ty Coon, President of Vice
964 @end example
965
966 That's all there is to it!
967
968 @comment  node-name,  next,  previous,  up
969 @node Distrib, Intro, License, Top
970 @unnumbered Distribution
971
972 XEmacs is @dfn{free}; this means that everyone is free to use it and
973 free to redistribute it on a free basis.  XEmacs is not in the public
974 domain; it is copyrighted and there are restrictions on its
975 distribution, but these restrictions are designed to permit everything
976 that a good cooperating citizen would want to do.  What is not allowed
977 is to try to prevent others from further sharing any version of XEmacs
978 that they might get from you.  The precise conditions are found in
979 the GNU General Public License that comes with XEmacs and also appears
980 following this section.
981
982 The easiest way to get a copy of XEmacs is from someone else who has it.
983 You need not ask for permission to do so, or tell any one else; just copy
984 it.
985
986 If you have access to the Internet, you can get the latest version of
987 XEmacs from the anonymous FTP server @file{ftp.xemacs.org} in the directory
988 @file{/pub/xemacs}.  It can also be found at numerous other archive
989 sites around the world; check the file @file{etc/DISTRIB} in an XEmacs
990 distribution for the latest known list.
991
992
993 @unnumberedsec Getting Other Versions of Emacs
994
995 The Free Software Foundation's version of Emacs (called @dfn{FSF Emacs}
996 in this manual and often referred to as @dfn{GNU Emacs}) is available
997 by anonymous FTP from @file{prep.ai.mit.edu}.
998
999 Win-Emacs, an older version of XEmacs that runs on Microsoft Windows
1000 and Windows NT, is available by anonymous FTP from @file{ftp.netcom.com}
1001 in the directory @file{/pub/pe/pearl}, or from @file{ftp.cica.indiana.edu}
1002 as the files @file{wemdemo*.zip} in the directory @file{/pub/pc/win3/demo}.
1003
1004 @node Intro, Glossary, Distrib, Top
1005 @unnumbered Introduction
1006
1007   You are reading about XEmacs, an incarnation of the advanced,
1008 self-documenting, customizable, extensible real-time display editor
1009 Emacs.  XEmacs provides many powerful display and user-interface
1010 capabilities not found in other Emacsen and is mostly upwardly
1011 compatible with GNU Emacs from the Free Software Foundation
1012 (referred to as @dfn{FSF Emacs} in this manual).  XEmacs also
1013 comes standard with a great number of useful packages.
1014
1015   We say that XEmacs is a @dfn{display} editor because normally the text
1016 being edited is visible on the screen and is updated automatically as you
1017 type.  @xref{Frame,Display}.
1018
1019   We call XEmacs a @dfn{real-time} editor because the display is updated very
1020 frequently, usually after each character or pair of characters you
1021 type.  This minimizes the amount of information you must keep in your
1022 head as you edit.  @xref{Basic,Real-time,Basic Editing}.
1023
1024   We call XEmacs advanced because it provides facilities that go beyond
1025 simple insertion and deletion: filling of text; automatic indentation of
1026 programs; viewing two or more files at once; and dealing in terms of
1027 characters, words, lines, sentences, paragraphs, and pages, as well as
1028 expressions and comments in several different programming languages.  It is
1029 much easier to type one command meaning ``go to the end of the paragraph''
1030 than to find that spot with simple cursor keys.
1031
1032   @dfn{Self-documenting} means that at any time you can type a special
1033 character, @kbd{Control-h}, to find out what your options are.  You can
1034 also use @kbd{C-h} to find out what a command does, or to find all the
1035 commands relevant to a topic.  @xref{Help}.
1036
1037   @dfn{Customizable} means you can change the definitions of XEmacs
1038 commands.  For example, if you use a programming language in
1039 which comments start with @samp{<**} and end with @samp{**>}, you can tell
1040 the XEmacs comment manipulation commands to use those strings
1041 (@pxref{Comments}).  Another sort of customization is rearrangement of the
1042 command set.  For example, you can set up the four basic cursor motion
1043 commands (up, down, left and right) on keys in a diamond pattern on the
1044 keyboard if you prefer.  @xref{Customization}.
1045
1046   @dfn{Extensible} means you can go beyond simple customization and
1047 write entirely new commands, programs in the Lisp language to be run by
1048 XEmacs's own Lisp interpreter.  XEmacs is an ``on-line extensible''
1049 system: it is divided into many functions that call each other.  You can
1050 redefine any function in the middle of an editing session and replace
1051 any part of XEmacs without making a separate copy of all of XEmacs.  Most
1052 of the editing commands of XEmacs are written in Lisp; the few
1053 exceptions could have been written in Lisp but are written in C for
1054 efficiency.  Only a programmer can write an extension to XEmacs, but anybody
1055 can use it afterward.
1056
1057 @include frame.texi
1058 @include keystrokes.texi
1059 @include menus.texi
1060 @include entering.texi
1061 @include cmdargs.texi
1062 @include startup.texi
1063 @include basic.texi
1064 @include undo.texi
1065 @include mini.texi
1066 @include m-x.texi
1067 @include help.texi
1068 @include mark.texi
1069 @include mouse.texi
1070 @include killing.texi
1071 @include regs.texi
1072 @include display.texi
1073 @include search.texi
1074 @include fixit.texi
1075 @include files.texi
1076 @include buffers.texi
1077 @include windows.texi
1078 @include mule.texi
1079 @include major.texi
1080 @include indent.texi
1081 @include text.texi
1082 @include programs.texi
1083 @include building.texi
1084 @include packages.texi
1085 @include abbrevs.texi
1086 @include picture.texi
1087 @include sending.texi
1088 @include reading.texi
1089 @include calendar.texi
1090 @include misc.texi
1091 @include custom.texi
1092 @include trouble.texi
1093
1094 @include new.texi
1095 @include glossary.texi
1096 @include gnu.texi
1097
1098 @node Key Index, Command Index, Manifesto, Top
1099 @unnumbered Key (Character) Index
1100 @printindex ky
1101
1102 @node Command Index, Variable Index, Key Index, Top
1103 @unnumbered Command and Function Index
1104 @printindex fn
1105
1106 @node Variable Index, Concept Index, Command Index, Top
1107 @unnumbered Variable Index
1108 @printindex vr
1109
1110 @node Concept Index, Frame, Variable Index, Top
1111 @unnumbered Concept Index
1112 @printindex cp
1113
1114 @summarycontents
1115 @contents
1116 @bye
1117
1118
1119 @c Remember to delete these lines before creating the info file.
1120 @iftex
1121 @lucidbook
1122 @bindingoffset = 0.5in
1123 @parindent = 0pt
1124 @end iftex