(set_window_buffer): Fix last change.
[emacs.git] / man / emacs.texi
blobee265e8e861c2a930760ef0a7b66764409b76ae2
1 \input texinfo
3 @setchapternewpage odd
4 @settitle GNU Emacs Manual
5 @setfilename ../info/emacs
6 @synindex pg cp
8 @c The edition number appears in several places in this file
9 @set EDITION   Fourteenth
10 @set EMACSVER  21.0.99
12 @ifnottex
13 This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},
14 updated for Emacs version @value{EMACSVER}.
16 @dircategory Emacs
17 @direntry
18 * Emacs: (emacs).       The extensible self-documenting text editor.
19 @end direntry
21 Published by the Free Software Foundation
22 59 Temple Place, Suite 330
23 Boston, MA  02111-1307 USA
25 Copyright (C) 1985, 1986,1987,1993,1994,1995,1996,1997,1998,1999,2000,2001
26    Free Software Foundation, Inc.
28 Permission is granted to copy, distribute and/or modify this document
29 under the terms of the GNU Free Documentation License, Version 1.1 or
30 any later version published by the Free Software Foundation; with the
31 Invariant Sections being ``The GNU Manifesto'', ``Distribution'' and
32 ``GNU GENERAL PUBLIC LICENSE'', with the Front-Cover texts being ``A GNU
33 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
34 license is included in the section entitled ``GNU Free Documentation
35 License''.
37 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
38 this GNU Manual, like GNU software.  Copies published by the Free
39 Software Foundation raise funds for GNU development.''
40 @end ifnottex
42 @c in general, keep the following line commented out, unless doing a
43 @c copy of this manual that will be published.  the manual should go
44 @c onto the distribution in the full, 8.5 x 11" size.  
46 @smallbook
48 @iftex
49 @kbdinputstyle code
51 @shorttitlepage GNU Emacs Manual
52 @end iftex
53 @titlepage
54 @sp 6
55 @center @titlefont{GNU Emacs Manual}
56 @sp 4
57 @center @value{EDITION} Edition, Updated for Emacs Version @value{EMACSVER}.
58 @sp 5
59 @center Richard Stallman
60 @page
61 @vskip 0pt plus 1filll
62 Copyright @copyright{} 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
63    Free Software Foundation, Inc.
64 @sp 2
65 @value{EDITION} Edition @*
66 Updated for Emacs Version @value{EMACSVER}, @*
67 August 2000
69 ISBN 1-882114-06-X
70 @sp 1
71 Published by the Free Software Foundation @*
72 59 Temple Place, Suite 330 @*
73 Boston, MA  02111-1307 USA
74 @sp 1
75 Permission is granted to copy, distribute and/or modify this document
76 under the terms of the GNU Free Documentation License, Version 1.1 or
77 any later version published by the Free Software Foundation; with the
78 Invariant Sections being ``The GNU Manifesto'', ``Distribution'' and
79 ``GNU GENERAL PUBLIC LICENSE'', with the Front-Cover texts being ``A GNU
80 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
81 license is included in the section entitled ``GNU Free Documentation
82 License''.
84 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
85 this GNU Manual, like GNU software.  Copies published by the Free
86 Software Foundation raise funds for GNU development.''
88 @sp 2
89 Cover art by Etienne Suvasa.
91 @end titlepage
92 @page
93 @ifnottex
94 @node Top, Distrib, (dir), (dir)
95 @top The Emacs Editor
97 Emacs is the extensible, customizable, self-documenting real-time
98 display editor.  This Info file describes how to edit with Emacs and
99 some of how to customize it; it corresponds to GNU Emacs version
100 @value{EMACSVER}.
101 For information on extending Emacs, see @ref{,Emacs Lisp,, elisp, The
102 Emacs Lisp Reference Manual}.
103 @end ifnottex
105 @ignore
106 These subcategories have been deleted for simplicity
107 and to avoid conflicts.
108 Completion
109 Backup Files
110 Auto-Saving: Protection Against Disasters
111 Snapshots
112 Text Mode
113 Outline Mode
114 @TeX{} Mode
115 Formatted Text
116 Fortran Mode
117 Fortran Indentation
118 Shell Command History
120 The ones for Dired and Rmail have had the items turned into :: items
121 to avoid conflicts.
122 Also Running Shell Commands from Emacs
123 and Sending Mail and Registers and Minibuffer.
124 @end ignore
126 @menu
127 * Distrib::             How to get the latest Emacs distribution.
128 * Copying::             The GNU General Public License gives you permission
129                           to redistribute GNU Emacs on certain terms;
130                           it also explains that there is no warranty.
131 * GNU Free Documentation License:: The license for this documentation.
132 * Intro::               An introduction to Emacs concepts.
133 * Glossary::            The glossary.
134 * Antinews::            Information about Emacs version 20.
135 * Mac OS::              Using Emacs in the Mac.
136 * MS-DOS::              Using Emacs on MS-DOS (otherwise known as "MS-DOG").
137 * Manifesto::           What's GNU?  Gnu's Not Unix!
138 * Acknowledgments::     Major contributors to GNU Emacs.
140 Indexes (nodes containing large menus)
141 * Key Index::           An item for each standard Emacs key sequence.
142 * Command Index::       An item for each command name.
143 * Variable Index::      An item for each documented variable.
144 * Concept Index::       An item for each concept.
146 Important General Concepts
147 * Screen::              How to interpret what you see on the screen.
148 * User Input::          Kinds of input events (characters, buttons,
149                           function keys).
150 * Keys::                Key sequences: what you type to request one
151                           editing action.
152 * Commands::            Named functions run by key sequences to do editing.
153 * Text Characters::     Character set for text (the contents of buffers 
154                           and strings).
155 * Entering Emacs::      Starting Emacs from the shell.
156 * Exiting::             Stopping or killing Emacs.
157 * Command Arguments::   Hairy startup options.
159 Fundamental Editing Commands
160 * Basic::               The most basic editing commands.
161 * Minibuffer::          Entering arguments that are prompted for.
162 * M-x::                 Invoking commands by their names.
163 * Help::                Commands for asking Emacs about its commands.
165 Important Text-Changing Commands
166 * Mark::                The mark: how to delimit a ``region'' of text.
167 * Killing::             Killing text.
168 * Yanking::             Recovering killed text.  Moving text.
169 * Accumulating Text::   Other ways of copying text.
170 * Rectangles::          Operating on the text inside a rectangle on the screen.
171 * Registers::           Saving a text string or a location in the buffer.
172 * Display::             Controlling what text is displayed.
173 * Search::              Finding or replacing occurrences of a string.
174 * Fixit::               Commands especially useful for fixing typos.
176 Major Structures of Emacs
177 * Files::               All about handling files.
178 * Buffers::             Multiple buffers; editing several files at once.
179 * Windows::             Viewing two pieces of text at once.
180 * Frames::              Running the same Emacs session in multiple X windows.
181 * International::       Using non-ASCII character sets (the MULE features).
183 Advanced Features
184 * Major Modes::         Text mode vs. Lisp mode vs. C mode ...
185 * Indentation::         Editing the white space at the beginnings of lines.
186 * Text::                Commands and modes for editing English.
187 * Programs::            Commands and modes for editing programs.
188 * Building::            Compiling, running and debugging programs.
189 * Abbrevs::             How to define text abbreviations to reduce
190                           the number of characters you must type.
191 * Picture::             Editing pictures made up of characters
192                           using the quarter-plane screen model.
193 * Sending Mail::        Sending mail in Emacs.
194 * Rmail::               Reading mail in Emacs.
195 * Dired::               You can ``edit'' a directory to manage files in it.
196 * Calendar/Diary::      The calendar and diary facilities.
197 * Gnus::                How to read netnews with Emacs.
198 * Shell::               Executing shell commands from Emacs.
199 * Emacs Server::        Using Emacs as an editing server for @code{mail}, etc.
200 * Hardcopy::            Printing buffers or regions.
201 * PostScript::          Printing buffers or regions as PostScript.
202 * PostScript Variables::
203                         Customizing the PostScript printing commands.
204 * Sorting::             Sorting lines, paragraphs or pages within Emacs.
205 * Narrowing::           Restricting display and editing to a portion
206                           of the buffer.
207 * Two-Column::          Splitting apart columns to edit them
208                           in side-by-side windows.
209 * Editing Binary Files::
210                         Using Hexl mode to edit binary files.
211 * Saving Emacs Sessions::
212                         Saving Emacs state from one session to the next.
213 * Recursive Edit::      A command can allow you to do editing
214                           "within the command".  This is called a
215                           `recursive editing level'.
216 * Emulation::           Emulating some other editors with Emacs.
217 * Hyperlinking::        Following links in buffers.
218 * Dissociated Press::   Dissociating text for fun.
219 * Amusements::          Various games and hacks.
220 * Customization::       Modifying the behavior of Emacs.
222 Recovery from Problems
223 * Quitting::            Quitting and aborting.
224 * Lossage::             What to do if Emacs is hung or malfunctioning.
225 * Bugs::                How and when to report a bug.
226 * Contributing::        How to contribute improvements to Emacs.
227 * Service::             How to get help for your own Emacs needs.
229 Here are some other nodes which are really inferiors of the ones
230 already listed, mentioned here so you can get to them in one step:
232  --- The Detailed Node Listing ---
234 The Organization of the Screen
236 * Point::               The place in the text where editing commands operate.
237 * Echo Area::           Short messages appear at the bottom of the screen.
238 * Mode Line::           Interpreting the mode line.
239 * Menu Bar::            How to use the menu bar.
241 Basic Editing Commands
243 * Inserting Text::      Inserting text by simply typing it.
244 * Moving Point::        How to move the cursor to the place where you want to
245                           change something.
246 * Erasing::             Deleting and killing text.
247 * Undo::                Undoing recent changes in the text.
248 * Files: Basic Files.   Visiting, creating, and saving files.
249 * Help: Basic Help.     Asking what a character does.
250 * Blank Lines::         Commands to make or delete blank lines.
251 * Continuation Lines::  Lines too wide for the screen.
252 * Position Info::       What page, line, row, or column is point on?
253 * Arguments::           Numeric arguments for repeating a command.
255 The Minibuffer
257 * Minibuffer File::     Entering file names with the minibuffer.
258 * Minibuffer Edit::     How to edit in the minibuffer.
259 * Completion::          An abbreviation facility for minibuffer input.
260 * Minibuffer History::  Reusing recent minibuffer arguments.
261 * Repetition::          Re-executing commands that used the minibuffer.
263 Help
265 * Help Summary::        Brief list of all Help commands.
266 * Key Help::            Asking what a key does in Emacs.
267 * Name Help::           Asking about a command, variable or function name.
268 * Apropos::             Asking what pertains to a given topic.
269 * Library Keywords::    Finding Lisp libraries by keywords (topics).
270 * Language Help::       Help relating to international language support.
271 * Misc Help::           Other help commands.
273 The Mark and the Region
275 * Setting Mark::        Commands to set the mark.
276 * Transient Mark::      How to make Emacs highlight the region--
277                           when there is one.
278 * Using Region::        Summary of ways to operate on contents of the region.
279 * Marking Objects::     Commands to put region around textual units.
280 * Mark Ring::           Previous mark positions saved so you can go back there.
281 * Global Mark Ring::    Previous mark positions in various buffers.
283 Deletion and Killing
285 * Deletion::            Commands for deleting small amounts of text and
286                           blank areas.
287 * Killing by Lines::    How to kill entire lines of text at one time.
288 * Other Kill Commands:: Commands to kill large regions of text and
289                           syntactic units such as words and sentences. 
291 Yanking
293 * Kill Ring::           Where killed text is stored.  Basic yanking.
294 * Appending Kills::     Several kills in a row all yank together.
295 * Earlier Kills::       Yanking something killed some time ago.
297 Registers
299 * RegPos::              Saving positions in registers.
300 * RegText::             Saving text in registers.
301 * RegRect::             Saving rectangles in registers.
302 * RegConfig::           Saving window configurations in registers.
303 * RegFiles::            File names in registers.
304 * Bookmarks::           Bookmarks are like registers, but persistent.
306 Controlling the Display
308 * Scrolling::              Moving text up and down in a window.
309 * Horizontal Scrolling::   Moving text left and right in a window.
310 * Follow Mode::            Follow mode lets two windows scroll as one.
311 * Selective Display::      Hiding lines with lots of indentation.
312 * Optional Mode Line::     Optional mode line display features.
313 * Text Display::           How text is normally displayed.
314 * Display Vars::           Information on variables for customizing display.
316 Searching and Replacement
318 * Incremental Search::     Search happens as you type the string.
319 * Nonincremental Search::  Specify entire string and then search.
320 * Word Search::            Search for sequence of words.
321 * Regexp Search::          Search for match for a regexp.
322 * Regexps::                Syntax of regular expressions.
323 * Search Case::            To ignore case while searching, or not.
324 * Replace::                Search, and replace some or all matches.
325 * Other Repeating Search:: Operating on all matches for some regexp.
327 Replacement Commands
329 * Unconditional Replace::  Replacing all matches for a string.
330 * Regexp Replace::         Replacing all matches for a regexp.
331 * Replacement and Case::   How replacements preserve case of letters.
332 * Query Replace::          How to use querying.
334 Commands for Fixing Typos
336 * Kill Errors::         Commands to kill a batch of recently entered text.
337 * Transpose::           Exchanging two characters, words, lines, lists...
338 * Fixing Case::         Correcting case of last word entered.
339 * Spelling::            Apply spelling checker to a word or a whole buffer.
341 File Handling
343 * File Names::          How to type and edit file-name arguments.
344 * Visiting::            Visiting a file prepares Emacs to edit the file.
345 * Saving::              Saving makes your changes permanent.
346 * Reverting::           Reverting cancels all the changes not saved.
347 * Auto Save::           Auto Save periodically protects against loss of data.
348 * File Aliases::        Handling multiple names for one file.
349 * Version Control::     Version control systems (RCS, CVS and SCCS).
350 * Directories::         Creating, deleting, and listing file directories.
351 * Comparing Files::     Finding where two files differ.
352 * Misc File Ops::       Other things you can do on files.
353 * Compressed Files::    Accessing compressed files.
354 * Remote Files::        Accessing files on other sites.
355 * Quoted File Names::   Quoting special characters in file names.
357 Saving Files
359 * Backup::              How Emacs saves the old version of your file.
360 * Interlocking::        How Emacs protects against simultaneous editing
361                           of one file by two users.
363 Version Control
365 * Introduction to VC::  How version control works in general.
366 * VC Mode Line::     How the mode line shows version control status.
367 * Basic VC Editing::    How to edit a file under version control.
368 * Old Versions::        Examining and comparing old versions.
369 * Secondary VC Commands::    The commands used a little less frequently.
370 * Branches::            Multiple lines of development.
371 * Snapshots::           Sets of file versions treated as a unit.
372 * Miscellaneous VC::    Various other commands and features of VC.
373 * Customizing VC::      Variables that change VC's behavior.
375 Using Multiple Buffers
377 * Select Buffer::       Creating a new buffer or reselecting an old one.
378 * List Buffers::        Getting a list of buffers that exist.
379 * Misc Buffer::         Renaming; changing read-onlyness; copying text.
380 * Kill Buffer::         Killing buffers you no longer need.
381 * Several Buffers::     How to go through the list of all buffers
382                           and operate variously on several of them.
383 * Indirect Buffers::    An indirect buffer shares the text of another buffer. 
385 Multiple Windows
387 * Basic Window::        Introduction to Emacs 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 * Force Same Window::   Forcing certain buffers to appear in the selected
392                           window rather than in another window.
393 * Change Window::       Deleting windows and changing their sizes.
395 Frames and X Windows
397 * Mouse Commands::      Moving, cutting, and pasting, with the mouse.
398 * Secondary Selection:: Cutting without altering point and mark.
399 * Mouse References::    Using the mouse to select an item from a list.
400 * Menu Mouse Clicks::   Mouse clicks that bring up menus.
401 * Mode Line Mouse::     Mouse clicks on the mode line.
402 * Creating Frames::     Creating additional Emacs frames with various contents.
403 * Multiple Displays::   How one Emacs job can talk to several displays.
404 * Special Buffer Frames::  You can make certain buffers have their own frames.
405 * Frame Parameters::    Changing the colors and other modes of frames.
406 * Scroll Bars::         How to enable and disable scroll bars; how to use them.
407 * Menu Bars::           Enabling and disabling the menu bar.
408 * Faces::               How to change the display style using faces.
409 * Font Lock::           Minor mode for syntactic highlighting using faces.
410 * Support Modes::       Font Lock support modes make Font Lock faster.
411 * Misc X::              Iconifying and deleting frames.  Region highlighting.
412 * Non-Window Terminals::  Multiple frames on terminals that show only one.
414 Font Lock Support Modes
416 * Fast Lock Mode::      Saving font information in files.
417 * Lazy Lock Mode::      Fontifying only text that is actually displayed.
418 * Fast or Lazy::        Which support mode is best for you?
420 International Character Set Support
422 * International Intro::     Basic concepts of multibyte characters.
423 * Enabling Multibyte::      Controlling whether to use multibyte characters.
424 * Language Environments::   Setting things up for the language you use.
425 * Input Methods::           Entering text characters not on your keyboard.
426 * Select Input Method::     Specifying your choice of input methods.
427 * Coding Systems::          Character set conversion when you read and
428                               write files, and so on.
429 * Recognize Coding::        How Emacs figures out which conversion to use.
430 * Specify Coding::          Various ways to choose which conversion to use.
431 * Fontsets::                Fontsets are collections of fonts
432                               that cover the whole spectrum of characters.
433 * Defining Fontsets::       Defining a new fontset.
434 * Single-Byte Character Support::
435                             You can pick one European character set
436                             to use without multibyte characters.
438 Major Modes
440 * Choosing Modes::      How major modes are specified or chosen.
442 Indentation
444 * Indentation Commands::  Various commands and techniques for indentation.
445 * Tab Stops::             You can set arbitrary "tab stops" and then
446                             indent to the next tab stop when you want to.
447 * Just Spaces::           You can request indentation using just spaces.
449 Commands for Human Languages
451 * Words::               Moving over and killing words.
452 * Sentences::           Moving over and killing sentences.
453 * Paragraphs::          Moving over paragraphs.
454 * Pages::               Moving over pages.
455 * Filling::             Filling or justifying text.
456 * Case::                Changing the case of text.
457 * Text Mode::           The major modes for editing text files.
458 * Outline Mode::        Editing outlines.
459 * TeX Mode::            Editing input to the formatter TeX.
460 * Nroff Mode::          Editing input to the formatter nroff.
461 * Formatted Text::      Editing formatted text directly in WYSIWYG fashion.
463 Filling Text
465 * Auto Fill::           Auto Fill mode breaks long lines automatically.
466 * Fill Commands::       Commands to refill paragraphs and center lines.
467 * Fill Prefix::         Filling paragraphs that are indented
468                           or in a comment, etc.
469 * Adaptive Fill::       How Emacs can determine the fill prefix automatically.
471 Editing Programs
473 * Program Modes::       Major modes for editing programs.
474 * Lists::               Expressions with balanced parentheses.
475 * List Commands::       The commands for working with list and sexps.
476 * Defuns::              Each program is made up of separate functions.
477                           There are editing commands to operate on them.
478 * Program Indent::      Adjusting indentation to show the nesting.
479 * Matching::            Insertion of a close-delimiter flashes matching open.
480 * Comments::            Inserting, killing, and aligning comments.
481 * Balanced Editing::    Inserting two matching parentheses at once, etc.
482 * Symbol Completion::   Completion on symbol names of your program or language.
483 * Documentation::       Getting documentation of functions you plan to call.
484 * Change Log::          Maintaining a change history for your program.
485 * Tags::                Go directly to any function in your program in one
486                           command.  Tags remembers which file it is in.
487 * Emerge::              A convenient way of merging two versions of a program.
488 * C Modes::             Special commands of C, C++, Objective-C and Java modes.
489 * Fortran::             Fortran mode and its special features.
490 * Asm Mode::            Asm mode and its special features.
492 Indentation for Programs
494 * Basic Indent::        Indenting a single line.
495 * Multi-line Indent::   Commands to reindent many lines at once.
496 * Lisp Indent::         Specifying how each Lisp function should be indented.
497 * C Indent::            Choosing an indentation style for C code.
499 Tags Tables
501 * Tag Syntax::          Tag syntax for various types of code and text files.  
502 * Create Tags Table::   Creating a tags table with @code{etags}.
503 * Select Tags Table::   How to visit a tags table.
504 * Find Tag::            Commands to find the definition of a specific tag. 
505 * Tags Search::         Using a tags table for searching and replacing.
506 * List Tags::           Listing and finding tags defined in a file.
508 Merging Files with Emerge
510 * Overview of Emerge::  How to start Emerge.  Basic concepts.
511 * Submodes of Emerge::  Fast mode vs. Edit mode.
512                           Skip Prefers mode and Auto Advance mode.
513 * State of Difference:: You do the merge by specifying state A or B
514                           for each difference.
515 * Merge Commands::      Commands for selecting a difference,
516                           changing states of differences, etc.
517 * Exiting Emerge::      What to do when you've finished the merge.
518 * Combining in Emerge::     How to keep both alternatives for a difference.
519 * Fine Points of Emerge::   Misc.
521 Compiling and Testing Programs
523 * Compilation::         Compiling programs in languages other
524                           than Lisp (C, Pascal, etc.).
525 * Compilation Mode::    The mode for visiting compiler errors.
526 * Compilation Shell::   Customizing your shell properly
527                           for use in the compilation buffer.
528 * Debuggers::           Running symbolic debuggers for non-Lisp programs. 
529 * Executing Lisp::      Various modes for editing Lisp programs, 
530                           with different facilities for running
531                           the Lisp programs. 
532 * Lisp Libraries::      Creating Lisp programs to run in Emacs.
533 * Lisp Interaction::    Executing Lisp in an Emacs buffer.
534 * Lisp Eval::           Executing a single Lisp expression in Emacs.
535 * External Lisp::       Communicating through Emacs with a separate Lisp. 
537 Running Debuggers Under Emacs
539 * Starting GUD::        How to start a debugger subprocess.
540 * Debugger Operation::  Connection between the debugger and source buffers.
541 * Commands of GUD::     Key bindings for common commands.
542 * GUD Customization::   Defining your own commands for GUD.
544 Abbrevs
546 * Abbrev Concepts::     Fundamentals of defined abbrevs.
547 * Defining Abbrevs::    Defining an abbrev, so it will expand when typed.
548 * Expanding Abbrevs::   Controlling expansion: prefixes, canceling expansion.
549 * Editing Abbrevs::     Viewing or editing the entire list of defined abbrevs.
550 * Saving Abbrevs::      Saving the entire list of abbrevs for another session.
551 * Dynamic Abbrevs::     Abbreviations for words already in the buffer.
553 Editing Pictures
555 * Basic Picture::       Basic concepts and simple commands of Picture Mode.
556 * Insert in Picture::   Controlling direction of cursor motion
557                           after "self-inserting" characters.
558 * Tabs in Picture::     Various features for tab stops and indentation.
559 * Rectangles in Picture:: Clearing and superimposing rectangles.
561 Sending Mail
563 * Mail Format::         Format of the mail being composed.
564 * Mail Headers::        Details of permitted mail header fields.
565 * Mail Aliases::        Abbreviating and grouping mail addresses.
566 * Mail Mode::           Special commands for editing mail being composed.
567 * Distracting NSA::     How to distract the NSA's attention.
568 * Mail Methods::        Using alternative mail-composition methods.
570 Reading Mail with Rmail
572 * Rmail Basics::        Basic concepts of Rmail, and simple use.
573 * Rmail Scrolling::     Scrolling through a message.
574 * Rmail Motion::        Moving to another message.
575 * Rmail Deletion::      Deleting and expunging messages.
576 * Rmail Inbox::         How mail gets into the Rmail file.
577 * Rmail Files::         Using multiple Rmail files.
578 * Rmail Output::        Copying message out to files.
579 * Rmail Labels::        Classifying messages by labeling them.
580 * Rmail Attributes::    Certain standard labels, called attributes.
581 * Rmail Reply::         Sending replies to messages you are viewing.
582 * Rmail Summary::       Summaries show brief info on many messages.
583 * Rmail Sorting::       Sorting messages in Rmail.
584 * Rmail Display::       How Rmail displays a message; customization.
585 * Rmail Editing::       Editing message text and headers in Rmail.
586 * Rmail Digest::        Extracting the messages from a digest message.
587 * Out of Rmail::        Converting an Rmail file to mailbox format.
588 * Rmail Rot13::         Reading messages encoded in the rot13 code.
589 * Movemail::            More details of fetching new mail.
591 Dired, the Directory Editor
593 * Dired Enter::              How to invoke Dired.
594 * Dired Commands::           Commands in the Dired buffer.
595 * Dired Deletion::           Deleting files with Dired.
596 * Flagging Many Files::      Flagging files based on their names.
597 * Dired Visiting::           Other file operations through Dired.
598 * Marks vs Flags::           Flagging for deletion vs marking.
599 * Operating on Files::       How to copy, rename, print, compress, etc.
600                                either one file or several files.
601 * Shell Commands in Dired::  Running a shell command on the marked files.
602 * Transforming File Names::  Using patterns to rename multiple files.
603 * Comparison in Dired::      Running `diff' by way of Dired.
604 * Subdirectories in Dired::  Adding subdirectories to the Dired buffer.
605 * Subdirectory Motion::      Moving across subdirectories, and up and down.
606 * Hiding Subdirectories::    Making subdirectories visible or invisible.
607 * Dired Updating::           Discarding lines for files of no interest.
608 * Dired and Find::           Using `find' to choose the files for Dired.
610 The Calendar and the Diary
612 * Calendar Motion::     Moving through the calendar; selecting a date.
613 * Scroll Calendar::     Bringing earlier or later months onto the screen.
614 * Counting Days::       How many days are there between two dates?
615 * General Calendar::    Exiting or recomputing the calendar.
616 * LaTeX Calendar::        Print a calendar using LaTeX.
617 * Holidays::            Displaying dates of holidays.
618 * Sunrise/Sunset::      Displaying local times of sunrise and sunset.
619 * Lunar Phases::        Displaying phases of the moon.
620 * Other Calendars::     Converting dates to other calendar systems.
621 * Diary::               Displaying events from your diary.
622 * Appointments::        Reminders when it's time to do something.
623 * Daylight Savings::    How to specify when daylight savings time is active.
625 Movement in the Calendar
627 * Calendar Unit Motion::      Moving by days, weeks, months, and years.
628 * Move to Beginning or End::  Moving to start/end of weeks, months, and years.
629 * Specified Dates::           Moving to the current date or another
630                                 specific date.
632 Conversion To and From Other Calendars
634 * Calendar Systems::       The calendars Emacs understands
635                              (aside from Gregorian).
636 * To Other Calendar::      Converting the selected date to various calendars.
637 * From Other Calendar::    Moving to a date specified in another calendar.
638 * Mayan Calendar::         Moving to a date specified in a Mayan calendar.
640 The Diary
642 * Diary Commands::         Viewing diary entries and associated calendar dates.
643 * Format of Diary File::   Entering events in your diary.
644 * Date Formats::           Various ways you can specify dates.
645 * Adding to Diary::        Commands to create diary entries.
646 * Special Diary Entries::  Anniversaries, blocks of dates, cyclic entries, etc.
648 @sc{Gnus}
650 * Buffers of Gnus::     The group, summary, and article buffers.
651 * Gnus Startup::        What you should know about starting Gnus.
652 * Summary of Gnus::     A short description of the basic Gnus commands.
654 Running Shell Commands from Emacs
656 * Single Shell::        How to run one shell command and return.
657 * Interactive Shell::   Permanent shell taking input via Emacs.
658 * Shell Mode::          Special Emacs commands used with permanent shell.
659 * Shell History::       Repeating previous commands in a shell buffer.
660 * Shell Options::       Options for customizing Shell mode.
661 * Remote Host::         Connecting to another computer.
663 Customization
665 * Minor Modes::         Each minor mode is one feature you can turn on
666                           independently of any others.
667 * Variables::           Many Emacs commands examine Emacs variables
668                           to decide what to do; by setting variables,
669                           you can control their functioning.
670 * Keyboard Macros::     A keyboard macro records a sequence of
671                           keystrokes to be replayed with a single command. 
672 * Key Bindings::        The keymaps say what command each key runs.
673                           By changing them, you can "redefine keys".
674 * Keyboard Translations::
675                         If your keyboard passes an undesired code
676                            for a key, you can tell Emacs to
677                            substitute another code. 
678 * Syntax::              The syntax table controls how words and
679                            expressions are parsed.
680 * Init File::           How to write common customizations in the
681                           @file{.emacs} file. 
683 Variables
685 * Examining::           Examining or setting one variable's value.
686 * Easy Customization::
687                         Convenient and easy customization of variables.
688 * Hooks::               Hook variables let you specify programs for parts
689                           of Emacs to run on particular occasions.
690 * Locals::              Per-buffer values of variables.
691 * File Variables::      How files can specify variable values.
693 Keyboard Macros
695 * Basic Kbd Macro::     Defining and running keyboard macros.
696 * Save Kbd Macro::      Giving keyboard macros names; saving them in files.
697 * Kbd Macro Query::     Making keyboard macros do different things each time.
699 Customizing Key Bindings
701 * Keymaps::             Generalities.  The global keymap.
702 * Prefix Keymaps::      Keymaps for prefix keys.
703 * Local Keymaps::       Major and minor modes have their own keymaps.
704 * Minibuffer Maps::     The minibuffer uses its own local keymaps.
705 * Rebinding::           How to redefine one key's meaning conveniently.
706 * Init Rebinding::      Rebinding keys with your init file, @file{.emacs}.
707 * Function Keys::       Rebinding terminal function keys.
708 * Named ASCII Chars::   Distinguishing @key{TAB} from @kbd{C-i}, and so on.
709 * Mouse Buttons::       Rebinding mouse buttons in Emacs.
710 * Disabling::           Disabling a command means confirmation is required
711                           before it can be executed.  This is done to protect
712                           beginners from surprises.
714 The Init File, @file{~/.emacs}
716 * Init Syntax::         Syntax of constants in Emacs Lisp.
717 * Init Examples::       How to do some things with an init file.
718 * Terminal Init::       Each terminal type can have an init file.
719 * Find Init::           How Emacs finds the init file.
721 Dealing with Emacs Trouble
723 * DEL Gets Help::       What to do if @key{DEL} doesn't delete.
724 * Stuck Recursive::     `[...]' in mode line around the parentheses.
725 * Screen Garbled::      Garbage on the screen.
726 * Text Garbled::        Garbage in the text.
727 * Unasked-for Search::  Spontaneous entry to incremental search.
728 * Memory Full::         How to cope when you run out of memory.
729 * Emergency Escape::    Emergency escape---
730                           What to do if Emacs stops responding.
731 * Total Frustration::   When you are at your wits' end.
733 Reporting Bugs
735 * Criteria:  Bug Criteria.       Have you really found a bug?
736 * Understanding Bug Reporting::  How to report a bug effectively.
737 * Checklist::                    Steps to follow for a good bug report.
738 * Sending Patches::              How to send a patch for GNU Emacs.
740 Command Line Options and Arguments
742 * Action Arguments::    Arguments to visit files, load libraries,
743                           and call functions.
744 * Initial Options::     Arguments that take effect while starting Emacs.
745 * Command Example::     Examples of using command line arguments.
746 * Resume Arguments::    Specifying arguments when you resume a running Emacs.
747 * Environment::         Environment variables that Emacs uses.
749 * Display X::           Changing the default display and using remote login.
750 * Font X::              Choosing a font for text, under X.
751 * Colors X::            Choosing colors, under X.
752 * Window Size X::       Start-up window size, under X.
753 * Borders X::           Internal and external borders, under X.
754 * Title X::             Specifying the initial frame's title.
755 * Icons X::             Choosing what sort of icon to use, under X.
756 * Resources X::         Advanced use of classes and resources, under X.
757 * Lucid Resources::     X resources for Lucid menus.
758 * Motif Resources::     X resources for Motif menus.
760 Environment Variables
762 * General Variables::   Environment variables that all versions of Emacs use.
763 * Misc Variables::      Certain system specific variables.
765 MS-DOS and Windows 95/98/NT
767 * MS-DOS Input::        Keyboard and mouse usage on MS-DOS.
768 * MS-DOS Display::      Fonts, frames and display size on MS-DOS.
769 * MS-DOS File Names::   File-name conventions on MS-DOS.
770 * Text and Binary::     Text files on MS-DOS use CRLF to separate lines.
771 * MS-DOS Printing::     How to specify the printer on MS-DOS.
772 * MS-DOS Processes::    Running subprocesses on MS-DOS.
773 * Windows Processes::   Running subprocesses on Windows.
774 * Windows System Menu:: Controlling what the ALT key does.
775 @end menu
777 @iftex
778 @unnumbered Preface
780   This manual documents the use and simple customization of the Emacs
781 editor.  The reader is not expected to be a programmer; simple
782 customizations do not require programming skill.  But the user who is not
783 interested in customizing can ignore the scattered customization hints.
785   This is primarily a reference manual, but can also be used as a
786 primer.  For complete beginners, it is a good idea to start with the
787 on-line, learn-by-doing tutorial, before reading the manual.  To run the
788 tutorial, start Emacs and type @kbd{C-h t}.  This way you can learn
789 Emacs by using Emacs on a specially designed file which describes
790 commands, tells you when to try them, and then explains the results you
791 see.
793   On first reading, just skim chapters 1 and 2, which describe the
794 notational conventions of the manual and the general appearance of the
795 Emacs display screen.  Note which questions are answered in these
796 chapters, so you can refer back later.  After reading chapter 4, you
797 should practice the commands there.  The next few chapters describe
798 fundamental techniques and concepts that are used constantly.  You need
799 to understand them thoroughly, experimenting with them if necessary.
801   Chapters 14 through 19 describe intermediate-level features that are
802 useful for all kinds of editing.  Chapter 20 and following chapters
803 describe features that you may or may not want to use; read those
804 chapters when you need them.
806   Read the Trouble chapter if Emacs does not seem to be working
807 properly.  It explains how to cope with some common problems
808 (@pxref{Lossage}), as well as when and how to report Emacs bugs
809 (@pxref{Bugs}).
811   To find the documentation on a particular command, look in the index.
812 Keys (character commands) and command names have separate indexes.  There
813 is also a glossary, with a cross reference for each term.
815   This manual is available as a printed book and also as an Info file.
816 The Info file is for on-line perusal with the Info program, which will
817 be the principal way of viewing documentation on-line in the GNU system.
818 Both the Info file and the Info program itself are distributed along
819 with GNU Emacs.  The Info file and the printed book contain
820 substantially the same text and are generated from the same source
821 files, which are also distributed along with GNU Emacs.
823   GNU Emacs is a member of the Emacs editor family.  There are many Emacs
824 editors, all sharing common principles of organization.  For information on
825 the underlying philosophy of Emacs and the lessons learned from its
826 development, write for a copy of AI memo 519a, ``Emacs, the Extensible,
827 Customizable Self-Documenting Display Editor,'' to Publications Department,
828 Artificial Intelligence Lab, 545 Tech Square, Cambridge, MA 02139, USA@.  At
829 last report they charge $2.25 per copy.  Another useful publication is LCS
830 TM-165, ``A Cookbook for an Emacs,'' by Craig Finseth, available from
831 Publications Department, Laboratory for Computer Science, 545 Tech Square,
832 Cambridge, MA 02139, USA@.  The price today is $3.
834 This edition of the manual is intended for use with GNU Emacs installed
835 on GNU and Unix systems.  GNU Emacs can also be used on VMS, MS-DOS
836 (also called MS-DOG), Windows NT, and Windows 95 systems.  Those systems use
837 different file name syntax; in addition, VMS and MS-DOS do not support
838 all GNU Emacs features.  We don't try to describe VMS usage in this
839 manual.  @xref{MS-DOS}, for information about using Emacs on MS-DOS.
840 @end iftex
842 @node Distrib, Copying, Top, Top
843 @unnumbered Distribution
845 GNU Emacs is @dfn{free software}; this means that everyone is free to
846 use it and free to redistribute it on certain conditions.  GNU Emacs is
847 not in the public domain; it is copyrighted and there are restrictions
848 on its distribution, but these restrictions are designed to permit
849 everything that a good cooperating citizen would want to do.  What is
850 not allowed is to try to prevent others from further sharing any version
851 of GNU Emacs that they might get from you.  The precise conditions are
852 found in the GNU General Public License that comes with Emacs and also
853 appears following this section.
855 One way to get a copy of GNU Emacs is from someone else who has it.  You
856 need not ask for our permission to do so, or tell any one else; just
857 copy it.  If you have access to the Internet, you can get the latest
858 distribution version of GNU Emacs by anonymous FTP; see the file
859 @file{etc/FTP} in the Emacs distribution for more information.
861 You may also receive GNU Emacs when you buy a computer.  Computer
862 manufacturers are free to distribute copies on the same terms that apply to
863 everyone else.  These terms require them to give you the full sources,
864 including whatever changes they may have made, and to permit you to
865 redistribute the GNU Emacs received from them under the usual terms of the
866 General Public License.  In other words, the program must be free for you
867 when you get it, not just free for the manufacturer.
869 You can also order copies of GNU Emacs from the Free Software Foundation
870 on CD-ROM@.  This is a convenient and reliable way to get a copy; it is
871 also a good way to help fund our work.  (The Foundation has always
872 received most of its funds in this way.)  An order form is included in
873 the file @file{etc/ORDERS} in the Emacs distribution, and on our web
874 site in @url{http://www.gnu.org/order/order.html}.  For further
875 information, write to
877 @display
878 Free Software Foundation
879 59 Temple Place, Suite 330
880 Boston, MA  02111-1307 USA
882 @end display
884 The income from distribution fees goes to support the foundation's
885 purpose: the development of new free software, and improvements to our
886 existing programs including GNU Emacs.
888 If you find GNU Emacs useful, please @strong{send a donation} to the
889 Free Software Foundation to support our work.  Donations to the Free
890 Software Foundation are tax deductible in the US.  If you use GNU Emacs
891 at your workplace, please suggest that the company make a donation.  If
892 company policy is unsympathetic to the idea of donating to charity, you
893 might instead suggest ordering a CD-ROM from the Foundation
894 occasionally, or subscribing to periodic updates.
896 @iftex
897 Contributors to GNU Emacs include Per Abrahamsen, Jay K. Adams, Joe
898 Arceneaux, Boaz Ben-Zvi, Jim Blandy, Terrence Brannon, Frank Bresz,
899 Peter Breton, Kevin Broadey, Vincent Broman, David M. Brown, Bill
900 Carpenter, Hans Chalupsky, Bob Chassell, James Clark, Mike Clarkson,
901 Glynn Clements, Andrew Csillag, Doug Cutting, Michael DeCorte, Gary
902 Delp, Matthieu Devin, Eri Ding, Carsten Dominik, Scott Draves, Viktor
903 Dukhovni, John Eaton, Rolf Ebert, Stephen Eglen, Torbj@"orn Einarsson,
904 Tsugumoto Enami, Hans Henrik Eriksen, Michael Ernst, Ata Etemadi,
905 Frederick Farnback, Fred Fish, Karl Fogel, Gary Foster, Noah Friedman,
906 Keith Gabryelski, Kevin Gallagher, Kevin Gallo, Howard Gayle, Stephen
907 Gildea, David Gillespie, Bob Glickstein, Boris Goldowsky, Michelangelo
908 Grigni, Michael Gschwind, Henry Guillaume, Doug Gwyn, Ken'ichi Handa,
909 Chris Hanson, K. Shane Hartman, John Heidemann, Markus Heritsch, Karl
910 Heuer, Manabu Higashida, Anders Holst, Kurt Hornik, Tom Houlder, Lars
911 Ingebrigtsen, Andrew Innes, Michael K. Johnson, Kyle Jones, Tomoji
912 Kagatani, Brewster Kahle, David Kaufman, Henry Kautz, Howard Kaye,
913 Michael Kifer, Richard King, Larry K. Kolodney, Robert Krawitz,
914 Sebastian Kremer, Geoff Kuenning, David K@aa gedal, Daniel LaLiberte,
915 Aaron Larson, James R. Larus, Frederic Lepied, Lars Lindberg, Eric
916 Ludlam, Neil M. Mager, Ken Manheimer, Bill Mann, Brian Marick, Simon
917 Marshall, Bengt Martensson, Charlie Martin, Thomas May, Roland McGrath,
918 David Megginson, Wayne Mesard, Richard Mlynarik, Keith Moore, Erik
919 Naggum, Thomas Neumann, Mike Newton, Jurgen Nickelsen, Jeff Norden,
920 Andrew Norman, Jeff Peck, Damon Anton Permezel, Tom Perrine, Jens
921 Petersen, Daniel Pfeiffer, Fred Pierresteguy, Christian Plaunt,
922 Francesco A. Potorti, Michael D. Prange, Ashwin Ram, Eric S. Raymond,
923 Paul Reilly, Edward M. Reingold, Rob Riepel, Roland B. Roberts, John
924 Robinson, Danny Roozendaal, William Rosenblatt, Guillermo J. Rozas, Ivar
925 Rummelhoff, Wolfgang Rupprecht, James B. Salem, Masahiko Sato, William
926 Schelter, Ralph Schleicher, Gregor Schmid, Michael Schmidt, Ronald
927 S. Schnell, Philippe Schnoebelen, Stephen Schoef, Randal Schwartz,
928 Manuel Serrano, Stanislav Shalunov, Mark Shapiro, Richard Sharman, Olin
929 Shivers, Espen Skoglund, Rick Sladkey, Lynn Slater, Chris Smith, David
930 Smith, Paul D. Smith, William Sommerfeld, Michael Staats, Sam Steingold,
931 Ake Stenhoff, Peter Stephenson, Jonathan Stigelman, Steve Strassman,
932 Jens T. Berger Thielemann, Spencer Thomas, Jim Thompson, Masanobu Umeda,
933 Neil W. Van Dyke, Ulrik Vieth, Geoffrey Voelker, Johan Vromans, Barry
934 Warsaw, Morten Welinder, Joseph Brian Wells, Rodney Whitby, Ed
935 Wilkinson, Mike Williams, Steven A. Wood, Dale R. Worley, Felix
936 S. T. Wu, Tom Wurgler, Eli Zaretskii, Jamie Zawinski, Ian T. Zimmermann,
937 Reto Zimmermann, and Neal Ziring.
938 @end iftex
940 @node Copying, GNU Free Documentation License, Distrib, Top
941 @unnumbered GNU GENERAL PUBLIC LICENSE
942 @center Version 2, June 1991
944 @display
945 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
946 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
948 Everyone is permitted to copy and distribute verbatim copies
949 of this license document, but changing it is not allowed.
950 @end display
952 @unnumberedsec Preamble
954   The licenses for most software are designed to take away your
955 freedom to share and change it.  By contrast, the GNU General Public
956 License is intended to guarantee your freedom to share and change free
957 software---to make sure the software is free for all its users.  This
958 General Public License applies to most of the Free Software
959 Foundation's software and to any other program whose authors commit to
960 using it.  (Some other Free Software Foundation software is covered by
961 the GNU Library General Public License instead.)  You can apply it to
962 your programs, too.
964   When we speak of free software, we are referring to freedom, not
965 price.  Our General Public Licenses are designed to make sure that you
966 have the freedom to distribute copies of free software (and charge for
967 this service if you wish), that you receive source code or can get it
968 if you want it, that you can change the software or use pieces of it
969 in new free programs; and that you know you can do these things.
971   To protect your rights, we need to make restrictions that forbid
972 anyone to deny you these rights or to ask you to surrender the rights.
973 These restrictions translate to certain responsibilities for you if you
974 distribute copies of the software, or if you modify it.
976   For example, if you distribute copies of such a program, whether
977 gratis or for a fee, you must give the recipients all the rights that
978 you have.  You must make sure that they, too, receive or can get the
979 source code.  And you must show them these terms so they know their
980 rights.
982   We protect your rights with two steps: (1) copyright the software, and
983 (2) offer you this license which gives you legal permission to copy,
984 distribute and/or modify the software.
986   Also, for each author's protection and ours, we want to make certain
987 that everyone understands that there is no warranty for this free
988 software.  If the software is modified by someone else and passed on, we
989 want its recipients to know that what they have is not the original, so
990 that any problems introduced by others will not reflect on the original
991 authors' reputations.
993   Finally, any free program is threatened constantly by software
994 patents.  We wish to avoid the danger that redistributors of a free
995 program will individually obtain patent licenses, in effect making the
996 program proprietary.  To prevent this, we have made it clear that any
997 patent must be licensed for everyone's free use or not licensed at all.
999   The precise terms and conditions for copying, distribution and
1000 modification follow.
1002 @iftex
1003 @unnumberedsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1004 @end iftex
1005 @ifinfo
1006 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1007 @end ifinfo
1009 @enumerate 0
1010 @item
1011 This License applies to any program or other work which contains
1012 a notice placed by the copyright holder saying it may be distributed
1013 under the terms of this General Public License.  The ``Program'', below,
1014 refers to any such program or work, and a ``work based on the Program''
1015 means either the Program or any derivative work under copyright law:
1016 that is to say, a work containing the Program or a portion of it,
1017 either verbatim or with modifications and/or translated into another
1018 language.  (Hereinafter, translation is included without limitation in
1019 the term ``modification''.)  Each licensee is addressed as ``you''.
1021 Activities other than copying, distribution and modification are not
1022 covered by this License; they are outside its scope.  The act of
1023 running the Program is not restricted, and the output from the Program
1024 is covered only if its contents constitute a work based on the
1025 Program (independent of having been made by running the Program).
1026 Whether that is true depends on what the Program does.
1028 @item
1029 You may copy and distribute verbatim copies of the Program's
1030 source code as you receive it, in any medium, provided that you
1031 conspicuously and appropriately publish on each copy an appropriate
1032 copyright notice and disclaimer of warranty; keep intact all the
1033 notices that refer to this License and to the absence of any warranty;
1034 and give any other recipients of the Program a copy of this License
1035 along with the Program.
1037 You may charge a fee for the physical act of transferring a copy, and
1038 you may at your option offer warranty protection in exchange for a fee.
1040 @item
1041 You may modify your copy or copies of the Program or any portion
1042 of it, thus forming a work based on the Program, and copy and
1043 distribute such modifications or work under the terms of Section 1
1044 above, provided that you also meet all of these conditions:
1046 @enumerate a
1047 @item
1048 You must cause the modified files to carry prominent notices
1049 stating that you changed the files and the date of any change.
1051 @item
1052 You must cause any work that you distribute or publish, that in
1053 whole or in part contains or is derived from the Program or any
1054 part thereof, to be licensed as a whole at no charge to all third
1055 parties under the terms of this License.
1057 @item
1058 If the modified program normally reads commands interactively
1059 when run, you must cause it, when started running for such
1060 interactive use in the most ordinary way, to print or display an
1061 announcement including an appropriate copyright notice and a
1062 notice that there is no warranty (or else, saying that you provide
1063 a warranty) and that users may redistribute the program under
1064 these conditions, and telling the user how to view a copy of this
1065 License.  (Exception: if the Program itself is interactive but
1066 does not normally print such an announcement, your work based on
1067 the Program is not required to print an announcement.)
1068 @end enumerate
1070 These requirements apply to the modified work as a whole.  If
1071 identifiable sections of that work are not derived from the Program,
1072 and can be reasonably considered independent and separate works in
1073 themselves, then this License, and its terms, do not apply to those
1074 sections when you distribute them as separate works.  But when you
1075 distribute the same sections as part of a whole which is a work based
1076 on the Program, the distribution of the whole must be on the terms of
1077 this License, whose permissions for other licensees extend to the
1078 entire whole, and thus to each and every part regardless of who wrote it.
1080 Thus, it is not the intent of this section to claim rights or contest
1081 your rights to work written entirely by you; rather, the intent is to
1082 exercise the right to control the distribution of derivative or
1083 collective works based on the Program.
1085 In addition, mere aggregation of another work not based on the Program
1086 with the Program (or with a work based on the Program) on a volume of
1087 a storage or distribution medium does not bring the other work under
1088 the scope of this License.
1090 @item
1091 You may copy and distribute the Program (or a work based on it,
1092 under Section 2) in object code or executable form under the terms of
1093 Sections 1 and 2 above provided that you also do one of the following:
1095 @enumerate a
1096 @item
1097 Accompany it with the complete corresponding machine-readable
1098 source code, which must be distributed under the terms of Sections
1099 1 and 2 above on a medium customarily used for software interchange; or,
1101 @item
1102 Accompany it with a written offer, valid for at least three
1103 years, to give any third party, for a charge no more than your
1104 cost of physically performing source distribution, a complete
1105 machine-readable copy of the corresponding source code, to be
1106 distributed under the terms of Sections 1 and 2 above on a medium
1107 customarily used for software interchange; or,
1109 @item
1110 Accompany it with the information you received as to the offer
1111 to distribute corresponding source code.  (This alternative is
1112 allowed only for noncommercial distribution and only if you
1113 received the program in object code or executable form with such
1114 an offer, in accord with Subsection b above.)
1115 @end enumerate
1117 The source code for a work means the preferred form of the work for
1118 making modifications to it.  For an executable work, complete source
1119 code means all the source code for all modules it contains, plus any
1120 associated interface definition files, plus the scripts used to
1121 control compilation and installation of the executable.  However, as a
1122 special exception, the source code distributed need not include
1123 anything that is normally distributed (in either source or binary
1124 form) with the major components (compiler, kernel, and so on) of the
1125 operating system on which the executable runs, unless that component
1126 itself accompanies the executable.
1128 If distribution of executable or object code is made by offering
1129 access to copy from a designated place, then offering equivalent
1130 access to copy the source code from the same place counts as
1131 distribution of the source code, even though third parties are not
1132 compelled to copy the source along with the object code.
1134 @item
1135 You may not copy, modify, sublicense, or distribute the Program
1136 except as expressly provided under this License.  Any attempt
1137 otherwise to copy, modify, sublicense or distribute the Program is
1138 void, and will automatically terminate your rights under this License.
1139 However, parties who have received copies, or rights, from you under
1140 this License will not have their licenses terminated so long as such
1141 parties remain in full compliance.
1143 @item
1144 You are not required to accept this License, since you have not
1145 signed it.  However, nothing else grants you permission to modify or
1146 distribute the Program or its derivative works.  These actions are
1147 prohibited by law if you do not accept this License.  Therefore, by
1148 modifying or distributing the Program (or any work based on the
1149 Program), you indicate your acceptance of this License to do so, and
1150 all its terms and conditions for copying, distributing or modifying
1151 the Program or works based on it.
1153 @item
1154 Each time you redistribute the Program (or any work based on the
1155 Program), the recipient automatically receives a license from the
1156 original licensor to copy, distribute or modify the Program subject to
1157 these terms and conditions.  You may not impose any further
1158 restrictions on the recipients' exercise of the rights granted herein.
1159 You are not responsible for enforcing compliance by third parties to
1160 this License.
1162 @item
1163 If, as a consequence of a court judgment or allegation of patent
1164 infringement or for any other reason (not limited to patent issues),
1165 conditions are imposed on you (whether by court order, agreement or
1166 otherwise) that contradict the conditions of this License, they do not
1167 excuse you from the conditions of this License.  If you cannot
1168 distribute so as to satisfy simultaneously your obligations under this
1169 License and any other pertinent obligations, then as a consequence you
1170 may not distribute the Program at all.  For example, if a patent
1171 license would not permit royalty-free redistribution of the Program by
1172 all those who receive copies directly or indirectly through you, then
1173 the only way you could satisfy both it and this License would be to
1174 refrain entirely from distribution of the Program.
1176 If any portion of this section is held invalid or unenforceable under
1177 any particular circumstance, the balance of the section is intended to
1178 apply and the section as a whole is intended to apply in other
1179 circumstances.
1181 It is not the purpose of this section to induce you to infringe any
1182 patents or other property right claims or to contest validity of any
1183 such claims; this section has the sole purpose of protecting the
1184 integrity of the free software distribution system, which is
1185 implemented by public license practices.  Many people have made
1186 generous contributions to the wide range of software distributed
1187 through that system in reliance on consistent application of that
1188 system; it is up to the author/donor to decide if he or she is willing
1189 to distribute software through any other system and a licensee cannot
1190 impose that choice.
1192 This section is intended to make thoroughly clear what is believed to
1193 be a consequence of the rest of this License.
1195 @item
1196 If the distribution and/or use of the Program is restricted in
1197 certain countries either by patents or by copyrighted interfaces, the
1198 original copyright holder who places the Program under this License
1199 may add an explicit geographical distribution limitation excluding
1200 those countries, so that distribution is permitted only in or among
1201 countries not thus excluded.  In such case, this License incorporates
1202 the limitation as if written in the body of this License.
1204 @item
1205 The Free Software Foundation may publish revised and/or new versions
1206 of the General Public License from time to time.  Such new versions will
1207 be similar in spirit to the present version, but may differ in detail to
1208 address new problems or concerns.
1210 Each version is given a distinguishing version number.  If the Program
1211 specifies a version number of this License which applies to it and ``any
1212 later version'', you have the option of following the terms and conditions
1213 either of that version or of any later version published by the Free
1214 Software Foundation.  If the Program does not specify a version number of
1215 this License, you may choose any version ever published by the Free Software
1216 Foundation.
1218 @item
1219 If you wish to incorporate parts of the Program into other free
1220 programs whose distribution conditions are different, write to the author
1221 to ask for permission.  For software which is copyrighted by the Free
1222 Software Foundation, write to the Free Software Foundation; we sometimes
1223 make exceptions for this.  Our decision will be guided by the two goals
1224 of preserving the free status of all derivatives of our free software and
1225 of promoting the sharing and reuse of software generally.
1227 @iftex
1228 @heading NO WARRANTY
1229 @end iftex
1230 @ifinfo
1231 @center NO WARRANTY
1232 @end ifinfo
1234 @item
1235 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
1236 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW@.  EXCEPT WHEN
1237 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
1238 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
1239 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1240 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE@.  THE ENTIRE RISK AS
1241 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU@.  SHOULD THE
1242 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
1243 REPAIR OR CORRECTION.
1245 @item
1246 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
1247 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
1248 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
1249 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
1250 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
1251 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
1252 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
1253 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
1254 POSSIBILITY OF SUCH DAMAGES.
1255 @end enumerate
1257 @iftex
1258 @heading END OF TERMS AND CONDITIONS
1259 @end iftex
1260 @ifinfo
1261 @center END OF TERMS AND CONDITIONS
1262 @end ifinfo
1264 @page
1265 @unnumberedsec How to Apply These Terms to Your New Programs
1267   If you develop a new program, and you want it to be of the greatest
1268 possible use to the public, the best way to achieve this is to make it
1269 free software which everyone can redistribute and change under these terms.
1271   To do so, attach the following notices to the program.  It is safest
1272 to attach them to the start of each source file to most effectively
1273 convey the exclusion of warranty; and each file should have at least
1274 the ``copyright'' line and a pointer to where the full notice is found.
1276 @smallexample
1277 @var{one line to give the program's name and an idea of what it does.}
1278 Copyright (C) 19@var{yy}  @var{name of author}
1280 This program is free software; you can redistribute it and/or
1281 modify it under the terms of the GNU General Public License
1282 as published by the Free Software Foundation; either version 2
1283 of the License, or (at your option) any later version.
1285 This program is distributed in the hope that it will be useful,
1286 but WITHOUT ANY WARRANTY; without even the implied warranty of
1287 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE@.  See the
1288 GNU General Public License for more details.
1290 You should have received a copy of the GNU General Public License along
1291 with this program; if not, write to the Free Software Foundation, Inc.,
1292 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
1293 @end smallexample
1295 Also add information on how to contact you by electronic and paper mail.
1297 If the program is interactive, make it output a short notice like this
1298 when it starts in an interactive mode:
1300 @smallexample
1301 Gnomovision version 69, Copyright (C) 20@var{yy} @var{name of author}
1302 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
1303 type `show w'.  This is free software, and you are welcome
1304 to redistribute it under certain conditions; type `show c' 
1305 for details.
1306 @end smallexample
1308 The hypothetical commands @samp{show w} and @samp{show c} should show
1309 the appropriate parts of the General Public License.  Of course, the
1310 commands you use may be called something other than @samp{show w} and
1311 @samp{show c}; they could even be mouse-clicks or menu items---whatever
1312 suits your program.
1314 You should also get your employer (if you work as a programmer) or your
1315 school, if any, to sign a ``copyright disclaimer'' for the program, if
1316 necessary.  Here is a sample; alter the names:
1318 @smallexample
1319 @group
1320 Yoyodyne, Inc., hereby disclaims all copyright
1321 interest in the program `Gnomovision'
1322 (which makes passes at compilers) written 
1323 by James Hacker.
1325 @var{signature of Ty Coon}, 1 April 1989
1326 Ty Coon, President of Vice
1327 @end group
1328 @end smallexample
1330 This General Public License does not permit incorporating your program into
1331 proprietary programs.  If your program is a subroutine library, you may
1332 consider it more useful to permit linking proprietary applications with the
1333 library.  If this is what you want to do, use the GNU Library General
1334 Public License instead of this License.
1336 @include doclicense.texi
1338 @node Intro, Glossary, GNU Free Documentation License, Top
1339 @unnumbered Introduction
1341   You are reading about GNU Emacs, the GNU incarnation of the advanced,
1342 self-documenting, customizable, extensible real-time display editor Emacs.
1343 (The `G' in `GNU' is not silent.)
1345   We say that Emacs is a @dfn{display} editor because normally the text
1346 being edited is visible on the screen and is updated automatically as you
1347 type your commands.  @xref{Screen,Display}.
1349   We call it a @dfn{real-time} editor because the display is updated very
1350 frequently, usually after each character or pair of characters you
1351 type.  This minimizes the amount of information you must keep in your
1352 head as you edit.  @xref{Basic,Real-time,Basic Editing}.
1354   We call Emacs advanced because it provides facilities that go beyond
1355 simple insertion and deletion: controlling subprocesses; automatic
1356 indentation of programs; viewing two or more files at once; editing
1357 formatted text; and dealing in terms of characters, words, lines,
1358 sentences, paragraphs, and pages, as well as expressions and comments in
1359 several different programming languages.
1361   @dfn{Self-documenting} means that at any time you can type a special
1362 character, @kbd{Control-h}, to find out what your options are.  You can
1363 also use it to find out what any command does, or to find all the commands
1364 that pertain to a topic.  @xref{Help}.
1366   @dfn{Customizable} means that you can change the definitions of Emacs
1367 commands in little ways.  For example, if you use a programming language in
1368 which comments start with @samp{<**} and end with @samp{**>}, you can tell
1369 the Emacs comment manipulation commands to use those strings
1370 (@pxref{Comments}).  Another sort of customization is rearrangement of the
1371 command set.  For example, if you prefer the four basic cursor motion
1372 commands (up, down, left and right) on keys in a diamond pattern on the
1373 keyboard, you can rebind the keys that way.  @xref{Customization}.
1375   @dfn{Extensible} means that you can go beyond simple customization and
1376 write entirely new commands, programs in the Lisp language to be run by
1377 Emacs's own Lisp interpreter.  Emacs is an ``on-line extensible''
1378 system, which means that it is divided into many functions that call
1379 each other, any of which can be redefined in the middle of an editing
1380 session.  Almost any part of Emacs can be replaced without making a
1381 separate copy of all of Emacs.  Most of the editing commands of Emacs
1382 are written in Lisp already; the few exceptions could have been written
1383 in Lisp but are written in C for efficiency.  Although only a programmer
1384 can write an extension, anybody can use it afterward.  If you want to
1385 learn Emacs Lisp programming, we recommend the @cite{Introduction to
1386 Emacs Lisp} by Robert J. Chassell, also published by the Free Software
1387 Foundation.
1389    When run under the X Window System, Emacs provides its own menus and
1390 convenient bindings to mouse buttons.  But Emacs can provide many of the
1391 benefits of a window system on a text-only terminal.  For instance, you
1392 can look at or edit several files at once, move text between files, and
1393 edit files while running shell commands.
1395 @include screen.texi
1396 @include commands.texi
1397 @include entering.texi
1398 @include basic.texi
1399 @include mini.texi
1400 @include m-x.texi
1401 @include help.texi
1402 @include mark.texi
1403 @include killing.texi
1404 @include regs.texi
1405 @include display.texi
1406 @include search.texi
1407 @include fixit.texi
1408 @include files.texi
1409 @include buffers.texi
1410 @include windows.texi
1411 @include frames.texi
1412 @include mule.texi
1413 @include major.texi
1414 @include indent.texi
1415 @include text.texi
1416 @include programs.texi
1417 @include building.texi
1418 @include abbrevs.texi
1419 @include picture.texi
1420 @include sending.texi
1421 @include rmail.texi
1422 @include dired.texi
1423 @include calendar.texi
1424 @include misc.texi
1425 @include custom.texi
1426 @include trouble.texi
1427 @include cmdargs.texi
1429 @include anti.texi
1430 @include macos.texi
1431 @include msdog.texi
1432 @include gnu.texi
1433 @include glossary.texi
1434 @ifinfo
1435 @include ack.texi
1436 @end ifinfo
1438 @node Key Index, Command Index, Glossary, Top
1439 @unnumbered Key (Character) Index
1440 @printindex ky
1442 @node Command Index, Variable Index, Key Index, Top
1443 @unnumbered Command and Function Index
1444 @printindex fn
1446 @node Variable Index, Concept Index, Command Index, Top
1447 @unnumbered Variable Index
1448 @printindex vr
1450 @node Concept Index, Acknowledgments, Variable Index, Top
1451 @unnumbered Concept Index
1452 @printindex cp
1454 @summarycontents
1455 @contents
1456 @bye