SXEmacs v22.1.16 is released!
[sxemacs] / info / sxemacs / sxemacs.texi
1 \input texinfo  @c -*-texinfo-*-
2 @setfilename sxemacs.info
3 @comment  node-name,  next,  previous,  up
4
5
6 @ifinfo
7 @dircategory SXEmacs Editor
8 @direntry
9 * SXEmacs: (sxemacs).           SXEmacs Editor.
10 @end direntry
11
12 This file documents the SXEmacs 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 Copyright @copyright{} 2004 - 2012 Steve Youngs.
19
20 Permission is granted to make and distribute verbatim copies of
21 this manual provided the copyright notice and this permission notice
22 are preserved on all copies.
23
24 @ignore
25 Permission is granted to process this file through Tex and print the
26 results, provided the printed document carries copying permission
27 notice identical to this one except for the removal of this paragraph
28 (this paragraph not being relevant to the printed manual).
29
30 @end ignore
31 Permission is granted to copy and distribute modified
32 versions of this manual under the conditions for verbatim copying,
33 provided also that the sections entitled ``Distribution'' and ``GNU
34 General Public License'' are included exactly as in the original, and
35 provided that the entire resulting derived work is distributed under
36 the terms of a permission notice identical to this one.
37
38 Permission is granted to copy and distribute translations of this
39 manual into another language, under the above conditions for modified
40 versions, except that the sections entitled ``Distribution'' and ``GNU
41 General Public License'' may be included in a translation approved by
42 the author instead of in the original English.
43 @end ifinfo
44 @c
45 @setchapternewpage odd
46 @settitle SXEmacs User's Manual
47 @c
48 @titlepage
49 @sp 6
50 @center @titlefont{SXEmacs User's Manual}
51 @sp 4
52 @sp 1
53 @sp 1
54 @center July 1994
55 @center (General Public License upgraded, January 1991)
56 @sp 5
57 @center Richard Stallman
58 @sp 1
59 @center Lucid, Inc.
60 @sp 1
61 @center and
62 @sp 1
63 @center Ben Wing
64 @page
65 @vskip 0pt plus 1filll
66 Copyright @copyright{} 1985, 1986, 1988 Richard M. Stallman.
67
68 Copyright @copyright{} 1991, 1992, 1993, 1994  Lucid, Inc.
69
70 Copyright @copyright{} 1993, 1994 Sun Microsystems, Inc.
71
72 Copyright @copyright{} 1995 Amdahl Corporation.
73
74 Permission is granted to make and distribute verbatim copies of
75 this manual provided the copyright notice and this permission notice
76 are preserved on all copies.
77
78 Permission is granted to copy and distribute modified versions of
79 this manual under the conditions for verbatim copying, provided also
80 that the sections entitled ``Distribution'' and ``GNU General Public
81 License'' are included exactly as in the original, and provided that
82 the entire resulting derived work is distributed under the terms of a
83 permission notice identical to this one.
84
85 Permission is granted to copy and distribute translations of this
86 manual into another language, under the above conditions for modified
87 versions, except that the sections entitled ``Distribution'' and ``GNU
88 General Public License'' may be included in a translation approved by
89 the author instead of in the original English.
90 @end titlepage
91 @page
92 @ifnottex
93 @node Top, License,, (dir)
94 @top The SXEmacs Editor
95
96
97 SXEmacs is the extensible, customizable, self-documenting real-time
98 display editor.  This Info file describes how to edit with Emacs
99 and some of how to customize it, but not how to extend it.  It
100 corresponds to: v22.1.16
101
102 Although, it hasn't had a complete rewrite for quite some time.
103
104 This manual is intended as a detailed reference to SXEmacs.  If
105 you are looking for an introductory manual, see the New User's
106 Guide.
107
108 @end ifnottex
109 @menu
110 * License::     The GNU General Public License gives you permission
111                 to redistribute SXEmacs on certain terms; and also
112                 explains that there is no warranty.
113 * Distrib::     How to get SXEmacs.
114 * Intro::       An introduction to SXEmacs concepts.
115 * Glossary::    The glossary.
116
117 Indices, nodes containing large menus
118 * Key Index::      An item for each standard SXEmacs key sequence.
119 * Command Index::  An item for each command name.
120 * Variable Index:: An item for each documented variable.
121 * Concept Index::  An item for each concept.
122
123 Important General Concepts
124 * Frame::      How to interpret what you see on the screen.
125 * Keystrokes::  Keyboard gestures SXEmacs recognizes.
126 * Pull-down Menus::
127                 The SXEmacs Pull-down Menus available under X.
128 * Entering Emacs::
129                 Starting Emacs from the shell.
130 * Exiting::     Stopping or killing SXEmacs.
131 * Command Switches::
132                 Hairy startup options.
133 * Startup Paths::
134                 How SXEmacs finds Directories and Files.
135 * Packages::    How SXEmacs organizes its high-level functionality.
136
137 Fundamental Editing Commands
138 * Basic::       The most basic editing commands.
139 * Undo::        Undoing recently made changes in the text.
140 * Minibuffer::  Entering arguments that are prompted for.
141 * M-x::         Invoking commands by their names.
142 * Help::        Commands for asking SXEmacs about its commands.
143
144 Important Text-Changing Commands
145 * Mark::        The mark: how to delimit a ``region'' of text.
146 * Mouse Selection::
147                 Selecting text with the mouse.
148 * Additional Mouse Operations::
149                 Other operations available from the mouse.
150 * Killing::     Killing text.
151 * Yanking::     Recovering killed text.  Moving text.
152 * Using X Selections::
153                 Using primary selection, cut buffers, and highlighted regions.
154 * Accumulating Text::
155                 Other ways of copying text.
156 * Rectangles::  Operating on the text inside a rectangle on the screen.
157 * Registers::   Saving a text string or a location in the buffer.
158 * Display::     Controlling what text is displayed.
159 * Search::      Finding or replacing occurrences of a string.
160 * Fixit::       Commands especially useful for fixing typos.
161
162 Larger Units of Text
163 * Files::       All about handling files.
164 * Buffers::     Multiple buffers; editing several files at once.
165 * Windows::     Viewing two pieces of text at once.
166 * Mule::        Using world scripts.
167
168 Advanced Features
169 * Major Modes:: Text mode vs. Lisp mode vs. C mode ...
170 * Indentation:: Editing the white space at the beginnings of lines.
171 * Text::        Commands and modes for editing English.
172 * Programs::    Commands and modes for editing programs.
173 * Running::     Compiling, running and debugging programs.
174 * Abbrevs::     How to define text abbreviations to reduce
175                  the number of characters you must type.
176 * Picture::     Editing pictures made up of characters
177                  using the quarter-plane screen model.
178 * Sending Mail:: Sending mail in SXEmacs.
179 * Reading Mail:: Reading mail in SXEmacs.
180 * Calendar/Diary:: A Calendar and diary facility in SXEmacs.
181 * Sorting::     Sorting lines, paragraphs or pages within SXEmacs.
182 * Shell::       Executing shell commands from SXEmacs.
183 * Narrowing::   Restricting display and editing to a portion
184                  of the buffer.
185 * Hardcopy::    Printing buffers or regions.
186 * Recursive Edit::
187                 A command can allow you to do editing
188                  "within the command".  This is called a
189                  `recursive editing level'.
190 * Dissociated Press::  Dissociating text for fun.
191 * CONX::               A different kind of dissociation.
192 * Amusements::         Various games and hacks.
193 * Emulation::          Emulating some other editors with SXEmacs.
194 * Customization::      Modifying the behavior of SXEmacs.
195
196 Recovery from Problems.
197 * Quitting::    Quitting and aborting.
198 * Lossage::     What to do if SXEmacs is hung or malfunctioning.
199 * Bugs::        How and when to report a bug.
200
201 Here are some other nodes which are really inferiors of the ones
202 already listed, mentioned here so you can get to them in one step:
203
204  --- The Detailed Node Listing ---
205
206 The Organization of the Frame
207
208 * Point::               The place in the text where editing commands operate.
209 * Echo Area::           Short messages appear at the bottom of the frame.
210 * Mode Line::           Interpreting the mode line.
211 * SXEmacs under X::      Some information on using SXEmacs under the X
212                         Window System.
213
214 Keystrokes
215
216 * Intro to Keystrokes::      Keystrokes as building blocks of key sequences.
217 * Representing Keystrokes::  Using lists of modifiers and keysyms to
218                              represent keystrokes.
219 * Key Sequences::            Combine key strokes into key sequences you can
220                              bind to commands.
221 * String Key Sequences::     Available for upward compatibility.
222 * Meta Key::                 Using @key{ESC} to represent @key{Meta}
223 * Super and Hyper Keys::     Adding modifier keys on certain keyboards.
224 * Character Representation:: How characters appear in SXEmacs buffers.
225 * Commands::                 How commands are bound to key sequences.
226
227 Pull-down Menus
228
229 * File Menu::           Items on the File menu.
230 * Edit Menu::           Items on the Edit menu.
231 * Apps Menu::           Items on the Apps menu.
232 * Options Menu::        Items on the Options menu.
233 * Buffers Menu::        Information about the Buffers menu.
234 * Tools Menu::          Items on the Tools menu.
235 * Help Menu::           Items on the Help menu.
236 * Menu Customization::  Adding and removing menu items and related
237                         operations.
238
239 Packages
240
241 * Packages::            Introduction to SXEmacs Packages.
242 * Package Terminology:: Understanding different kinds of packages.
243 * Installing Packages:: How to install packages.
244 * Building Packages::   Building packages from sources.
245 * Local.rules File::    An important part of building packages.
246 * Available Packages::  A brief directory of packaged LISP.
247
248 Basic Editing Commands
249
250 * Blank Lines::        Commands to make or delete blank lines.
251 * Continuation Lines:: Lines too wide for the frame.
252 * Position Info::      What page, line, row, or column is point on?
253 * Arguments::          Numeric arguments for repeating a command.
254
255 The Minibuffer
256
257 * File: Minibuffer File.  Entering file names with the minibuffer.
258 * Edit: Minibuffer Edit.  How to edit in the minibuffer.
259 * Completion::            An abbreviation facility for minibuffer input.
260 * Repetition::            Re-executing commands that used the minibuffer.
261
262 The Mark and the Region
263
264 * Setting Mark::        Commands to set the mark.
265 * Using Region::        Summary of ways to operate on contents of the region.
266 * Marking Objects::     Commands to put region around textual units.
267 * Mark Ring::           Previous mark positions saved so you can go back there.
268
269 Yanking
270
271 * Kill Ring::       Where killed text is stored.  Basic yanking.
272 * Appending Kills:: Several kills in a row all yank together.
273 * Earlier Kills::   Yanking something killed some time ago.
274
275 Using X Selections
276
277 * X Clipboard Selection::       Pasting to the X clipboard.
278 * X Selection Commands::        Other operations on the selection.
279 * X Cut Buffers::               X cut buffers are available for compatibility.
280 * Active Regions::              Using zmacs-style highlighting of the
281                                  selected region.
282
283 Registers
284
285 * Position: RegPos.           Saving positions in registers.
286 * Text: RegText.              Saving text in registers.
287 * Rectangle: RegRect.         Saving rectangles in registers.
288 * Configurations: RegConfig.  Saving window configurations in registers.
289 * Files: RegFiles.            File names in registers.
290 * Numbers: RegNumbers.        Numbers in registers.
291 * Bookmarks::                 Bookmarks are like registers, but persistent.
292
293 Controlling the Display
294
295 * Scrolling::              Moving text up and down in a window.
296 * Horizontal Scrolling::   Moving text left and right in a window.
297 * Selective Display::      Hiding lines with lots of indentation.
298 * Display Vars::           Information on variables for customizing display.
299
300 Searching and Replacement
301
302 * Incremental Search::     Search happens as you type the string.
303 * Non-Incremental Search:: Specify entire string and then search.
304 * Word Search::            Search for sequence of words.
305 * Regexp Search::          Search for match for a regexp.
306 * Regexps::                Syntax of regular expressions.
307 * Search Case::            To ignore case while searching, or not.
308 * Replace::                Search, and replace some or all matches.
309 * Other Repeating Search:: Operating on all matches for some regexp.
310
311 Replacement Commands
312
313 * Unconditional Replace::  Replacing all matches for a string.
314 * Regexp Replace::         Replacing all matches for a regexp.
315 * Replacement and Case::   How replacements preserve case of letters.
316 * Query Replace::          How to use querying.
317
318 Commands for Fixing Typos
319
320 * Kill Errors:: Commands to kill a batch of recently entered text.
321 * Transpose::   Exchanging two characters, words, lines, lists...
322 * Fixing Case:: Correcting case of last word entered.
323 * Spelling::    Apply spelling checker to a word, or a whole file.
324
325 File Handling
326
327 * File Names::       How to type and edit file name arguments.
328 * Visiting::         Visiting a file prepares SXEmacs to edit the file.
329 * Saving::           Saving makes your changes permanent.
330 * Reverting::        Reverting cancels all the changes not saved.
331 * Auto Save::        Auto Save periodically protects against loss of data.
332 * Version Control::  Version control systems (RCS and SCCS).
333 * ListDir::          Listing the contents of a file directory.
334 * Comparing Files::  Finding where two files differ.
335 * Dired::            ``Editing'' a directory to delete, rename, etc.
336                      the files in it.
337 * Misc File Ops::    Other things you can do on files.
338
339 Saving Files
340
341 * Backup::       How SXEmacs saves the old version of your file.
342 * Interlocking:: How SXEmacs protects against simultaneous editing
343                   of one file by two users.
344
345 Backup Files
346
347 * Names: Backup Names.          How backup files are named;
348                                 Choosing single or numbered backup files.
349 * Deletion: Backup Deletion.    SXEmacs deletes excess numbered backups.
350 * Copying: Backup Copying.      Backups can be made by copying or renaming.
351
352 Auto-Saving: Protection Against Disasters
353
354 * Files: Auto Save Files.
355 * Control: Auto Save Control.
356 * Recover::             Recovering text from auto-save files.
357
358 Version Control
359
360 * Concepts of VC::              Basic version control information;
361                                   checking files in and out.
362 * Editing with VC::             Commands for editing a file maintained
363                                   with version control.
364 * Variables for Check-in/out::  Variables that affect the commands used
365                                   to check files in or out.
366 * Log Entries::                 Logging your changes.
367 * Change Logs and VC::          Generating a change log file from log
368                                   entries.
369 * Old Versions::                Examining and comparing old versions.
370 * VC Status::                   Commands to view the VC status of files and
371                                   look at log entries.
372 * Renaming and VC::             A command to rename both the source and
373                                   master file correctly.
374 * Snapshots::                   How to make and use snapshots, a set of
375                                   file versions that can be treated as a unit.
376 * Version Headers::             Inserting version control headers into
377                                   working files.
378
379 Snapshots
380
381 * Making Snapshots::            The snapshot facilities.
382 * Snapshot Caveats::            Things to be careful of when using snapshots.
383
384 Dired, the Directory Editor
385
386 * Enter: Dired Enter.         How to invoke Dired.
387 * Edit: Dired Edit.           Editing the Dired buffer.
388 * Deletion: Dired Deletion.   Deleting files with Dired.
389 * Immed: Dired Immed.         Other file operations through Dired.
390
391 Using Multiple Buffers
392
393 * Select Buffer::   Creating a new buffer or reselecting an old one.
394 * List Buffers::    Getting a list of buffers that exist.
395 * Misc Buffer::     Renaming; changing read-onliness; copying text.
396 * Kill Buffer::     Killing buffers you no longer need.
397 * Several Buffers:: How to go through the list of all buffers
398                      and operate variously on several of them.
399
400 Multiple Windows
401
402 * Basic Window::     Introduction to SXEmacs windows.
403 * Split Window::     New windows are made by splitting existing windows.
404 * Other Window::     Moving to another window or doing something to it.
405 * Pop Up Window::    Finding a file or buffer in another window.
406 * Change Window::    Deleting windows and changing their sizes.
407
408 Major Modes
409
410 * Choosing Modes::     How major modes are specified or chosen.
411
412 Indentation
413
414 * Indentation Commands:: Various commands and techniques for indentation.
415 * Tab Stops::            You can set arbitrary "tab stops" and then
416                          indent to the next tab stop when you want to.
417 * Just Spaces::          You can request indentation using just spaces.
418
419 Commands for Human Languages
420
421 * Text Mode::   The major modes for editing text files.
422 * Nroff Mode::  The major mode for editing input to the formatter nroff.
423 * TeX Mode::    The major modes for editing input to the formatter TeX.
424 * Outline Mode:: The major mode for editing outlines.
425 * Words::       Moving over and killing words.
426 * Sentences::   Moving over and killing sentences.
427 * Paragraphs::  Moving over paragraphs.
428 * Pages::       Moving over pages.
429 * Filling::     Filling or justifying text
430 * Case::        Changing the case of text
431
432 @TeX{} Mode
433
434 * Editing: TeX Editing.   Special commands for editing in TeX mode.
435 * Printing: TeX Print.    Commands for printing part of a file with TeX.
436
437 Outline Mode
438
439 * Format: Outline Format.         What the text of an outline looks like.
440 * Motion: Outline Motion.         Special commands for moving through outlines.
441 * Visibility: Outline Visibility. Commands to control what is visible.
442
443 Filling Text
444
445 * Auto Fill::     Auto Fill mode breaks long lines automatically.
446 * Fill Commands:: Commands to refill paragraphs and center lines.
447 * Fill Prefix::   Filling when every line is indented or in a comment, etc.
448
449 Editing Programs
450
451 * Program Modes::       Major modes for editing programs.
452 * Lists::               Expressions with balanced parentheses.
453                          There are editing commands to operate on them.
454 * Defuns::              Each program is made up of separate functions.
455                          There are editing commands to operate on them.
456 * Grinding::            Adjusting indentation to show the nesting.
457 * Matching::            Insertion of a close-delimiter flashes matching open.
458 * Comments::            Inserting, filling and aligning comments.
459 * Balanced Editing::    Inserting two matching parentheses at once, etc.
460 * Lisp Completion::     Completion on symbol names in Lisp code.
461 * Documentation::       Getting documentation of functions you plan to call.
462 * Change Log::          Maintaining a change history for your program.
463 * Tags::                Go directly to any function in your program in one
464                          command.  Tags remembers which file it is in.
465 * CC Mode::             Modes for C, C++, Java and similar languages
466 * Fortran::             Fortran mode and its special features.
467 * Asm Mode::            Asm mode and its special features.
468
469 Indentation for Programs
470
471 * Basic Indent::
472 * Multi-line Indent::   Commands to reindent many lines at once.
473 * Lisp Indent::         Specifying how each Lisp function should be indented.
474
475 Tags Tables
476
477 * Tag Syntax::          Tag syntax for various types of code and text files.
478 * Create Tags Table::   Creating a tags table with @code{etags}.
479 * Select Tags Table::   How to visit a tags table.
480 * Find Tag::            Commands to find the definition of a specific tag.
481 * Tags Search::         Using a tags table for searching and replacing.
482 * List Tags::           Listing and finding tags defined in a file.
483
484 Fortran Mode
485
486 * Motion: Fortran Motion.     Moving point by statements or subprograms.
487 * Indent: Fortran Indent.     Indentation commands for Fortran.
488 * Comments: Fortran Comments. Inserting and aligning comments.
489 * Columns: Fortran Columns.   Measuring columns for valid Fortran.
490 * Abbrev: Fortran Abbrev.     Built-in abbrevs for Fortran keywords.
491
492 Fortran Indentation
493
494 * Commands: ForIndent Commands. Commands for indenting Fortran.
495 * Numbers:  ForIndent Num.      How line numbers auto-indent.
496 * Conv:     ForIndent Conv.     Conventions you must obey to avoid trouble.
497 * Vars:     ForIndent Vars.     Variables controlling Fortran indent style.
498
499 Compiling and Testing Programs
500
501 * Compilation::        Compiling programs in languages other than Lisp
502                         (C, Pascal, etc.)
503 * Modes: Lisp Modes.   Various modes for editing Lisp programs, with
504                        different facilities for running the Lisp programs.
505 * Libraries: Lisp Libraries.      Creating Lisp programs to run in SXEmacs.
506 * Eval: Lisp Eval.     Executing a single Lisp expression in SXEmacs.
507 * Debug: Lisp Debug.   Debugging Lisp programs running in SXEmacs.
508 * Interaction: Lisp Interaction.  Executing Lisp in an SXEmacs buffer.
509 * External Lisp::      Communicating through SXEmacs with a separate Lisp.
510
511 Lisp Libraries
512
513 * Loading::             Loading libraries of Lisp code into SXEmacs for use.
514 * Compiling Libraries:: Compiling a library makes it load and run faster.
515 * Mocklisp::            Converting Mocklisp to Lisp so SXEmacs can run it.
516
517 Abbrevs
518
519 * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
520 * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
521 * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
522 * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
523 * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
524
525 Editing Pictures
526
527 * Basic Picture::         Basic concepts and simple commands of Picture Mode.
528 * Insert in Picture::     Controlling direction of cursor motion
529                            after "self-inserting" characters.
530 * Tabs in Picture::       Various features for tab stops and indentation.
531 * Rectangles in Picture:: Clearing and superimposing rectangles.
532
533 Sending Mail
534
535 * Format: Mail Format.    Format of the mail being composed.
536 * Headers: Mail Headers.  Details of allowed mail header fields.
537 * Mode: Mail Mode.        Special commands for editing mail being composed.
538
539 Running Shell Commands from SXEmacs
540
541 * Single Shell::         How to run one shell command and return.
542 * Interactive Shell::    Permanent shell taking input via SXEmacs.
543 * Shell Mode::           Special SXEmacs commands used with permanent shell.
544
545 Customization
546
547 * Minor Modes::     Each minor mode is one feature you can turn on
548                      independently of any others.
549 * Variables::       Many SXEmacs commands examine SXEmacs variables
550                      to decide what to do; by setting variables,
551                      you can control their functioning.
552 * Keyboard Macros:: A keyboard macro records a sequence of keystrokes
553                      to be replayed with a single command.
554 * Key Bindings::    The keymaps say what command each key runs.
555                      By changing them, you can "redefine keys".
556 * Syntax::          The syntax table controls how words and expressions
557                      are parsed.
558 * Init File::       How to write common customizations in the init file.
559 * Audible Bell::    Changing how SXEmacs sounds the bell.
560 * Faces::           Changing the fonts and colors of a region of text.
561 * X Resources::     X resources controlling various aspects of the
562                      behavior of SXEmacs.
563
564 Variables
565
566 * Examining::           Examining or setting one variable's value.
567 * Easy Customization::  Convenient and easy customization of variables.
568 * Edit Options::        Examining or editing list of all variables' values.
569 * Locals::              Per-buffer values of variables.
570 * File Variables::      How files can specify variable values.
571
572 Keyboard Macros
573
574 * Basic Kbd Macro::     Defining and running keyboard macros.
575 * Save Kbd Macro::      Giving keyboard macros names; saving them in files.
576 * Kbd Macro Query::     Keyboard macros that do different things each use.
577
578 Customizing Key Bindings
579
580 * Keymaps::    Definition of the keymap data structure.
581                Names of SXEmacs's standard keymaps.
582 * Rebinding::  How to redefine one key's meaning conveniently.
583 * Disabling::  Disabling a command means confirmation is required
584                 before it can be executed.  This is done to protect
585                 beginners from surprises.
586
587 The Syntax Table
588
589 * Entry: Syntax Entry.    What the syntax table records for each character.
590 * Change: Syntax Change.  How to change the information.
591
592 The Init File
593
594 * Init Syntax::     Syntax of constants in Emacs Lisp.
595 * Init Examples::   How to do some things with an init file.
596 * Terminal Init::   Each terminal type can have an init file.
597
598 Dealing with SXEmacs Trouble
599
600 * Stuck Recursive::    `[...]' in mode line around the parentheses.
601 * Screen Garbled::     Garbage on the screen.
602 * Text Garbled::       Garbage in the text.
603 * Unasked-for Search:: Spontaneous entry to incremental search.
604 * Emergency Escape::   Emergency escape---
605                         What to do if SXEmacs stops responding.
606 * Total Frustration::  When you are at your wits' end.
607
608 @end menu
609
610 @iftex
611 @unnumbered Preface
612
613   This manual documents the use and simple customization of the SXEmacs
614 editor.  The reader is not expected to be a programmer to use this
615 editor, and simple customizations do not require programming skills either.
616 Users who are not interested in customizing SXEmacs can ignore the scattered
617 customization hints.
618
619   This document is primarily a reference manual, but it can also be used as a
620 primer.  However, if you are new to SXEmacs, consider using the on-line,
621 learn-by-doing tutorial, which you get by running SXEmacs and typing
622 @kbd{C-h t}.  With it, you learn SXEmacs by using SXEmacs on a specially
623 designed file which describes commands, tells you when to try them,
624 and then explains the results you see.  Using the tutorial gives a more vivid
625 introduction than the printed manual.  Also consider reading the SXEmacs
626 New User's Guide, which is intended specifically as an introductory
627 manual rather than as a reference guide.
628
629   On first reading, just skim chapters one and two, which describe the
630 notational conventions of the manual and the general appearance of the
631 SXEmacs display frame.  Note which questions are answered in these chapters,
632 so you can refer back later.  After reading chapter four you should
633 practice the commands there.  The next few chapters describe fundamental
634 techniques and concepts that are used constantly.  You need to understand
635 them thoroughly, experimenting with them if necessary.
636
637   To find the documentation on a particular command, look in the index.
638 Keys (character commands) and command names have separate indexes.  There
639 is also a glossary, with a cross reference for each term.
640
641 @ignore
642   If you know vaguely what the command
643 does, look in the command summary.  The command summary contains a line or
644 two about each command, and a cross reference to the section of the
645 manual that describes the command in more detail; related commands
646 are grouped together.
647 @end ignore
648
649   This manual comes in two forms: the published form and the Info form.
650 The Info form is for on-line perusal with the INFO program; it is
651 distributed along with SXEmacs.  Both forms contain substantially the
652 same text and are generated from a common source file, which is also
653 distributed along with SXEmacs.
654
655   SXEmacs is a member of the Emacs editor family.  There are many Emacs
656 editors, all sharing common principles of organization.  For information on
657 the underlying philosophy of Emacs and the lessons learned from its
658 development, write for a copy of AI memo 519a, ``Emacs, the Extensible,
659 Customizable Self-Documenting Display Editor'', to Publications Department,
660 Artificial Intelligence Lab, 545 Tech Square, Cambridge, MA 02139, USA.  At
661 last report they charge $2.25 per copy.  Another useful publication is LCS
662 TM-165, ``A Cookbook for an Emacs'', by Craig Finseth, available from
663 Publications Department, Laboratory for Computer Science, 545 Tech Square,
664 Cambridge, MA 02139, USA.  The price today is $3.
665
666 This manual is for SXEmacs installed on UNIX systems.
667 @end iftex
668
669 @comment  node-name,  next,  previous,  up
670 @node License, Distrib, Top, Top
671 @include gpl.texi
672 @node Distrib, Intro, License, Top
673 @unnumbered Distribution
674
675 SXEmacs is @dfn{free}; this means that everyone is free to use it and
676 free to redistribute it on a free basis.  SXEmacs is not in the public
677 domain; it is copyrighted and there are restrictions on its
678 distribution, but these restrictions are designed to permit everything
679 that a good cooperating citizen would want to do.  What is not allowed
680 is to try to prevent others from further sharing any version of SXEmacs
681 that they might get from you.  The precise conditions are found in
682 the GNU General Public License that comes with SXEmacs and also appears
683 following this section.
684
685 The easiest way to get a copy of SXEmacs is from someone else who has it.
686 You need not ask for permission to do so, or tell any one else; just copy
687 it.
688
689 If you have access to the Internet, you can get the latest version of
690 SXEmacs from our download site at @uref{http://downloads.sxemacs.org}.
691
692
693 @unnumberedsec Getting Other Versions of Emacs
694
695 The Free Software Foundation's version of Emacs (called @dfn{FSF Emacs}
696 in this manual and often referred to as @dfn{GNU Emacs}) is available
697 by anonymous FTP from @file{prep.ai.mit.edu}.
698
699 @node Intro, Glossary, Distrib, Top
700 @unnumbered Introduction
701
702   You are reading about SXEmacs, an incarnation of the advanced,
703 self-documenting, customizable, extensible real-time display editor
704 Emacs.  SXEmacs provides many powerful display and user-interface
705 capabilities not found in other Emacsen and is mostly upwardly
706 compatible with GNU Emacs from the Free Software Foundation
707 (referred to as @dfn{FSF Emacs} in this manual).  SXEmacs also
708 comes standard with a great number of useful packages.
709
710   We say that SXEmacs is a @dfn{display} editor because normally the text
711 being edited is visible on the screen and is updated automatically as you
712 type.  @xref{Frame,Display}.
713
714   We call SXEmacs a @dfn{real-time} editor because the display is updated very
715 frequently, usually after each character or pair of characters you
716 type.  This minimizes the amount of information you must keep in your
717 head as you edit.  @xref{Basic,Real-time,Basic Editing}.
718
719   We call SXEmacs advanced because it provides facilities that go beyond
720 simple insertion and deletion: filling of text; automatic indentation of
721 programs; viewing two or more files at once; and dealing in terms of
722 characters, words, lines, sentences, paragraphs, and pages, as well as
723 expressions and comments in several different programming languages.  It is
724 much easier to type one command meaning ``go to the end of the paragraph''
725 than to find that spot with simple cursor keys.
726
727   @dfn{Self-documenting} means that at any time you can type a special
728 character, @kbd{Control-h}, to find out what your options are.  You can
729 also use @kbd{C-h} to find out what a command does, or to find all the
730 commands relevant to a topic.  @xref{Help}.
731
732   @dfn{Customizable} means you can change the definitions of SXEmacs
733 commands.  For example, if you use a programming language in
734 which comments start with @samp{<**} and end with @samp{**>}, you can tell
735 the SXEmacs comment manipulation commands to use those strings
736 (@pxref{Comments}).  Another sort of customization is rearrangement of the
737 command set.  For example, you can set up the four basic cursor motion
738 commands (up, down, left and right) on keys in a diamond pattern on the
739 keyboard if you prefer.  @xref{Customization}.
740
741   @dfn{Extensible} means you can go beyond simple customization and
742 write entirely new commands, programs in the Lisp language to be run by
743 SXEmacs' own Lisp interpreter.  SXEmacs is an ``on-line extensible''
744 system: it is divided into many functions that call each other.  You can
745 redefine any function in the middle of an editing session and replace
746 any part of SXEmacs without making a separate copy of all of SXEmacs.  Most
747 of the editing commands of SXEmacs are written in Lisp; the few
748 exceptions could have been written in Lisp but are written in C for
749 efficiency.  Only a programmer can write an extension to SXEmacs, but anybody
750 can use it afterward.
751
752 @include frame.texi
753 @include keystrokes.texi
754 @include menus.texi
755 @include entering.texi
756 @include cmdargs.texi
757 @include startup.texi
758 @include basic.texi
759 @include undo.texi
760 @include mini.texi
761 @include m-x.texi
762 @include help.texi
763 @include mark.texi
764 @include mouse.texi
765 @include killing.texi
766 @include regs.texi
767 @include display.texi
768 @include search.texi
769 @include fixit.texi
770 @include files.texi
771 @include buffers.texi
772 @include windows.texi
773 @include mule.texi
774 @include major.texi
775 @include indent.texi
776 @include text.texi
777 @include programs.texi
778 @include building.texi
779 @include packages.texi
780 @include abbrevs.texi
781 @include picture.texi
782 @include sending.texi
783 @include reading.texi
784 @include calendar.texi
785 @include misc.texi
786 @include custom.texi
787 @include trouble.texi
788
789 @include new.texi
790 @include glossary.texi
791
792 @node Key Index, Command Index,, Top
793 @unnumbered Key (Character) Index
794 @printindex ky
795
796 @node Command Index, Variable Index, Key Index, Top
797 @unnumbered Command and Function Index
798 @printindex fn
799
800 @node Variable Index, Concept Index, Command Index, Top
801 @unnumbered Variable Index
802 @printindex vr
803
804 @node Concept Index, Frame, Variable Index, Top
805 @unnumbered Concept Index
806 @printindex cp
807
808 @summarycontents
809 @contents
810 @bye
811
812
813 @c Remember to delete these lines before creating the info file.
814 @iftex
815 @lucidbook
816 @bindingoffset = 0.5in
817 @parindent = 0pt
818 @end iftex