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