]> code.delx.au - gnu-emacs/blob - man/emacs.texi
Add copyright and license notice. Copyright years from base include
[gnu-emacs] / man / emacs.texi
1 \input texinfo
2
3 @setfilename ../info/emacs
4 @settitle GNU Emacs Manual
5
6 @c The edition number appears in several places in this file
7 @set EDITION Sixteenth
8 @set EMACSVER 22.0.93
9
10 @copying
11 This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},
12 updated for Emacs version @value{EMACSVER}.
13
14 Copyright @copyright{} 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997,
15 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
16 Foundation, Inc.
17
18 @quotation
19 Permission is granted to copy, distribute and/or modify this document
20 under the terms of the GNU Free Documentation License, Version 1.2 or
21 any later version published by the Free Software Foundation; with the
22 Invariant Sections being ``The GNU Manifesto,'' ``Distribution'' and
23 ``GNU GENERAL PUBLIC LICENSE,'' with the Front-Cover texts being ``A GNU
24 Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the
25 license is included in the section entitled ``GNU Free Documentation
26 License.''
27
28 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
29 this GNU Manual, like GNU software. Copies published by the Free
30 Software Foundation raise funds for GNU development.''
31 @end quotation
32 @end copying
33
34 @dircategory Emacs
35 @direntry
36 * Emacs: (emacs). The extensible self-documenting text editor.
37 @end direntry
38
39 @c in general, keep the following line commented out, unless doing a
40 @c copy of this manual that will be published. the manual should go
41 @c onto the distribution in the full, 8.5 x 11" size.
42
43 @smallbook
44
45 @c per rms and peterb, use 10pt fonts for the main text, mostly to
46 @c save on paper cost. Also do not declare @setchapternewpage odd.
47 @c Do this inside @tex for now, so current makeinfo does not complain.
48 @tex
49 @fonttextsize 10
50 \global\hbadness=6000 % don't worry about not-too-underfull boxes
51 @end tex
52
53 @defcodeindex op
54 @synindex pg cp
55
56 @iftex
57 @kbdinputstyle code
58
59 @shorttitlepage GNU Emacs Manual
60 @end iftex
61
62 @titlepage
63 @sp 6
64 @center @titlefont{GNU Emacs Manual}
65 @sp 4
66 @center @value{EDITION} Edition, Updated for Emacs Version @value{EMACSVER}.
67 @sp 5
68 @center Richard Stallman
69 @page
70 @vskip 0pt plus 1filll
71 @insertcopying
72
73 @sp 2
74 ISBN 1-882114-86-8*
75 Published by the Free Software Foundation @*
76 51 Franklin Street, Fifth Floor @*
77 Boston, MA 02110-1301 USA
78
79 @sp 2
80 Cover art by Etienne Suvasa.
81
82 @end titlepage
83
84
85 @summarycontents
86 @contents
87
88
89 @ifnottex
90 @node Top, Distrib, (dir), (dir)
91 @top The Emacs Editor
92
93 Emacs is the extensible, customizable, self-documenting real-time
94 display editor. This Info file describes how to edit with Emacs and
95 some of how to customize it; it corresponds to GNU Emacs version
96 @value{EMACSVER}.
97
98 @ifinfo
99 To learn more about the Info documentation system, type @kbd{h}, and
100 Emacs will take you to a programmed instruction sequence for the Info
101 commands.
102 @end ifinfo
103
104 For information on extending Emacs, see @ref{Top, Emacs Lisp,, elisp, The
105 Emacs Lisp Reference Manual}.
106 @end ifnottex
107
108 @ignore
109 These subcategories have been deleted for simplicity
110 and to avoid conflicts.
111 Completion
112 Backup Files
113 Auto-Saving: Protection Against Disasters
114 Snapshots
115 Text Mode
116 Outline Mode
117 @TeX{} Mode
118 Formatted Text
119 Shell Command History
120
121 The ones for Dired and Rmail have had the items turned into :: items
122 to avoid conflicts.
123 Also Running Shell Commands from Emacs
124 and Sending Mail and Registers and Minibuffer.
125 @end ignore
126
127 @menu
128 * Distrib:: How to get the latest Emacs distribution.
129 * Copying:: The GNU General Public License gives you permission
130 to redistribute GNU Emacs on certain terms;
131 it also explains that there is no warranty.
132 * GNU Free Documentation License:: The license for this documentation.
133 * Intro:: An introduction to Emacs concepts.
134 * Glossary:: The glossary.
135 * Antinews:: Information about Emacs version 21.
136 * Mac OS:: Using Emacs in the Mac.
137 * Microsoft Windows:: Using Emacs on Microsoft Windows and MS-DOS.
138 * Manifesto:: What's GNU? Gnu's Not Unix!
139 * Acknowledgments:: Major contributors to GNU Emacs.
140
141 Indexes (each index contains a large menu)
142 * Key Index:: An item for each standard Emacs key sequence.
143 * Option Index:: An item for every command-line option.
144 * Command Index:: An item for each command name.
145 * Variable Index:: An item for each documented variable.
146 * Concept Index:: An item for each concept.
147
148 Important General Concepts
149 * Screen:: How to interpret what you see on the screen.
150 * User Input:: Kinds of input events (characters, buttons,
151 function keys).
152 * Keys:: Key sequences: what you type to request one
153 editing action.
154 * Commands:: Named functions run by key sequences to do editing.
155 * Text Characters:: Character set for text (the contents of buffers
156 and strings).
157 * Entering Emacs:: Starting Emacs from the shell.
158 * Exiting:: Stopping or killing Emacs.
159 * Emacs Invocation:: Hairy startup options.
160
161 Fundamental Editing Commands
162 * Basic:: The most basic editing commands.
163 * Minibuffer:: Entering arguments that are prompted for.
164 * M-x:: Invoking commands by their names.
165 * Help:: Commands for asking Emacs about its commands.
166
167 Important Text-Changing Commands
168 * Mark:: The mark: how to delimit a ``region'' of text.
169 * Killing:: Killing (cutting) text.
170 * Yanking:: Recovering killed text. Moving text. (Pasting.)
171 * Accumulating Text:: Other ways of copying text.
172 * Rectangles:: Operating on the text inside a rectangle on the screen.
173 * Registers:: Saving a text string or a location in the buffer.
174 * Display:: Controlling what text is displayed.
175 * Search:: Finding or replacing occurrences of a string.
176 * Fixit:: Commands especially useful for fixing typos.
177 * Keyboard Macros:: A keyboard macro records a sequence of
178 keystrokes to be replayed with a single command.
179
180 Major Structures of Emacs
181 * Files:: All about handling files.
182 * Buffers:: Multiple buffers; editing several files at once.
183 * Windows:: Viewing two pieces of text at once.
184 * Frames:: Running the same Emacs session in multiple X windows.
185 * International:: Using non-@acronym{ASCII} character sets (the MULE features).
186
187 Advanced Features
188 * Major Modes:: Text mode vs. Lisp mode vs. C mode ...
189 * Indentation:: Editing the white space at the beginnings of lines.
190 * Text:: Commands and modes for editing English.
191 * Programs:: Commands and modes for editing programs.
192 * Building:: Compiling, running and debugging programs.
193 * Maintaining:: Features for maintaining large programs.
194 * Abbrevs:: How to define text abbreviations to reduce
195 the number of characters you must type.
196 @ifnottex
197 * Picture Mode:: Editing pictures made up of characters using
198 the quarter-plane screen model.
199 @end ifnottex
200 * Sending Mail:: Sending mail in Emacs.
201 * Rmail:: Reading mail in Emacs.
202 * Dired:: You can ``edit'' a directory to manage files in it.
203 * Calendar/Diary:: The calendar and diary facilities.
204 * Gnus:: How to read netnews with Emacs.
205 * Shell:: Executing shell commands from Emacs.
206 * Emacs Server:: Using Emacs as an editing server for @code{mail}, etc.
207 * Printing:: Printing hardcopies of buffers or regions.
208 * Sorting:: Sorting lines, paragraphs or pages within Emacs.
209 * Narrowing:: Restricting display and editing to a portion
210 of the buffer.
211 * Two-Column:: Splitting apart columns to edit them
212 in side-by-side windows.
213 * Editing Binary Files::Using Hexl mode to edit binary files.
214 * Saving Emacs Sessions:: Saving Emacs state from one session to the next.
215 * Recursive Edit:: A command can allow you to do editing
216 "within the command". This is called a
217 "recursive editing level".
218 * Emulation:: Emulating some other editors with Emacs.
219 * Hyperlinking:: Following links in buffers.
220 * Thumbnails:: Browsing images using thumbnails.
221 * Dissociated Press:: Dissociating text for fun.
222 * Amusements:: Various games and hacks.
223 * Customization:: Modifying the behavior of Emacs.
224 * X Resources:: X resources for customizing Emacs.
225
226 Recovery from Problems
227 * Quitting:: Quitting and aborting.
228 * Lossage:: What to do if Emacs is hung or malfunctioning.
229 * Bugs:: How and when to report a bug.
230 * Contributing:: How to contribute improvements to Emacs.
231 * Service:: How to get help for your own Emacs needs.
232
233 @c Do NOT modify the following 3 lines! They must have this form to
234 @c be correctly identified by `texinfo-multiple-files-update'. In
235 @c particular, the detailed menu header line MUST be identical to the
236 @c value of `texinfo-master-menu-header'. See texnfo-upd.el.
237
238 @detailmenu
239 --- The Detailed Node Listing ---
240 ---------------------------------
241
242 Here are some other nodes which are really inferiors of the ones
243 already listed, mentioned here so you can get to them in one step:
244
245 The Organization of the Screen
246
247 * Point:: The place in the text where editing commands operate.
248 * Echo Area:: Short messages appear at the bottom of the screen.
249 * Mode Line:: Interpreting the mode line.
250 * Menu Bar:: How to use the menu bar.
251
252 Basic Editing Commands
253
254 * Inserting Text:: Inserting text by simply typing it.
255 * Moving Point:: How to move the cursor to the place where you want to
256 change something.
257 * Erasing:: Deleting and killing text.
258 * Basic Undo:: Undoing recent changes in the text.
259 * Basic Files:: Visiting, creating, and saving files.
260 * Basic Help:: Asking what a character does.
261 * Blank Lines:: Commands to make or delete blank lines.
262 * Continuation Lines:: Lines too wide for the screen.
263 * Position Info:: What page, line, row, or column is point on?
264 * Arguments:: Numeric arguments for repeating a command.
265 * Repeating:: A short-cut for repeating the previous command.
266
267 The Minibuffer
268
269 * Minibuffer File:: Entering file names with the minibuffer.
270 * Minibuffer Edit:: How to edit in the minibuffer.
271 * Completion:: An abbreviation facility for minibuffer input.
272 * Minibuffer History:: Reusing recent minibuffer arguments.
273 * Repetition:: Re-executing commands that used the minibuffer.
274
275 Completion
276
277 * Example: Completion Example. Examples of using completion.
278 * Commands: Completion Commands. A list of completion commands.
279 * Strict Completion:: Different types of completion.
280 * Options: Completion Options. Options for completion.
281
282 Help
283
284 * Help Summary:: Brief list of all Help commands.
285 * Key Help:: Asking what a key does in Emacs.
286 * Name Help:: Asking about a command, variable or function name.
287 * Apropos:: Asking what pertains to a given topic.
288 * Help Mode:: Special features of Help mode and Help buffers.
289 * Library Keywords:: Finding Lisp libraries by keywords (topics).
290 * Language Help:: Help relating to international language support.
291 * Misc Help:: Other help commands.
292 * Help Files:: Commands to display pre-written help files.
293 * Help Echo:: Help on active text and tooltips (`balloon help')
294
295 The Mark and the Region
296
297 * Setting Mark:: Commands to set the mark.
298 * Transient Mark:: How to make Emacs highlight the region--
299 when there is one.
300 * Momentary Mark:: Enabling Transient Mark mode momentarily.
301 * Using Region:: Summary of ways to operate on contents of the region.
302 * Marking Objects:: Commands to put region around textual units.
303 * Mark Ring:: Previous mark positions saved so you can go back there.
304 * Global Mark Ring:: Previous mark positions in various buffers.
305
306 Killing and Moving Text
307
308 * Deletion:: Commands for deleting small amounts of text and
309 blank areas.
310 * Killing by Lines:: How to kill entire lines of text at one time.
311 * Other Kill Commands:: Commands to kill large regions of text and
312 syntactic units such as words and sentences.
313 * CUA Bindings:: Using @kbd{C-x}, @kbd{C-c}, @kbd{C-v} for copy
314 and paste, with enhanced rectangle support.
315
316 Yanking
317
318 * Kill Ring:: Where killed text is stored. Basic yanking.
319 * Appending Kills:: Several kills in a row all yank together.
320 * Earlier Kills:: Yanking something killed some time ago.
321
322 Registers
323
324 * RegPos:: Saving positions in registers.
325 * RegText:: Saving text in registers.
326 * RegRect:: Saving rectangles in registers.
327 * RegConfig:: Saving window configurations in registers.
328 * RegNumbers:: Numbers in registers.
329 * RegFiles:: File names in registers.
330 * Bookmarks:: Bookmarks are like registers, but persistent.
331
332 Controlling the Display
333
334 * Scrolling:: Moving text up and down in a window.
335 * Auto Scrolling:: Redisplay scrolls text automatically when needed.
336 * Horizontal Scrolling:: Moving text left and right in a window.
337 * Follow Mode:: Follow mode lets two windows scroll as one.
338 * Faces:: How to change the display style using faces.
339 * Standard Faces:: Emacs' predefined faces.
340 * Font Lock:: Minor mode for syntactic highlighting using faces.
341 * Highlight Interactively:: Tell Emacs what text to highlight.
342 * Fringes:: Enabling or disabling window fringes.
343 * Displaying Boundaries:: Displaying top and bottom of the buffer.
344 * Useless Whitespace:: Showing possibly-spurious trailing whitespace.
345 * Selective Display:: Hiding lines with lots of indentation.
346 * Optional Mode Line:: Optional mode line display features.
347 * Text Display:: How text characters are normally displayed.
348 * Cursor Display:: Features for displaying the cursor.
349 * Line Truncation:: Truncating lines to fit the screen width instead
350 of continuing them to multiple screen lines.
351 * Display Custom:: Information on variables for customizing display.
352
353 Searching and Replacement
354
355 * Incremental Search:: Search happens as you type the string.
356 * Nonincremental Search:: Specify entire string and then search.
357 * Word Search:: Search for sequence of words.
358 * Regexp Search:: Search for match for a regexp.
359 * Regexps:: Syntax of regular expressions.
360 * Regexp Backslash:: Regular expression constructs starting with `\'.
361 * Regexp Example:: A complex regular expression explained.
362 * Search Case:: To ignore case while searching, or not.
363 * Replace:: Search, and replace some or all matches.
364 * Other Repeating Search:: Operating on all matches for some regexp.
365
366 Incremental Search
367
368 * Basic Isearch:: Basic incremental search commands.
369 * Repeat Isearch:: Searching for the same string again.
370 * Error in Isearch:: When your string is not found.
371 * Special Isearch:: Special input in incremental search.
372 * Non-ASCII Isearch:: How to search for non-ASCII characters.
373 * Isearch Yank:: Commands that grab text into the search string
374 or else edit the search string.
375 * Highlight Isearch:: Isearch highlights the other possible matches.
376 * Isearch Scroll:: Scrolling during an incremental search.
377 * Slow Isearch:: Incremental search features for slow terminals.
378
379 Replacement Commands
380
381 * Unconditional Replace:: Replacing all matches for a string.
382 * Regexp Replace:: Replacing all matches for a regexp.
383 * Replacement and Case:: How replacements preserve case of letters.
384 * Query Replace:: How to use querying.
385
386 Commands for Fixing Typos
387
388 * Undo:: Full details of Emacs undo commands.
389 * Kill Errors:: Commands to kill a batch of recently entered text.
390 * Transpose:: Exchanging two characters, words, lines, lists...
391 * Fixing Case:: Correcting case of last word entered.
392 * Spelling:: Apply spelling checker to a word or a whole buffer.
393
394 Keyboard Macros
395
396 * Basic Keyboard Macro:: Defining and running keyboard macros.
397 * Keyboard Macro Ring:: Where previous keyboard macros are saved.
398 * Keyboard Macro Counter:: Inserting incrementing numbers in macros.
399 * Keyboard Macro Query:: Making keyboard macros do different things each time.
400 * Save Keyboard Macro:: Giving keyboard macros names; saving them in files.
401 * Edit Keyboard Macro:: Editing keyboard macros.
402 * Keyboard Macro Step-Edit:: Interactively executing and editing a keyboard
403 macro.
404
405 File Handling
406
407 * File Names:: How to type and edit file-name arguments.
408 * Visiting:: Visiting a file prepares Emacs to edit the file.
409 * Saving:: Saving makes your changes permanent.
410 * Reverting:: Reverting cancels all the changes not saved.
411 * Autorevert:: Auto Reverting non-file buffers.
412 * Auto Save:: Auto Save periodically protects against loss of data.
413 * File Aliases:: Handling multiple names for one file.
414 * Version Control:: Version control systems (RCS, CVS and SCCS).
415 * Directories:: Creating, deleting, and listing file directories.
416 * Comparing Files:: Finding where two files differ.
417 * Diff Mode:: Editing diff output.
418 * Misc File Ops:: Other things you can do on files.
419 * Compressed Files:: Accessing compressed files.
420 * File Archives:: Operating on tar, zip, jar etc. archive files.
421 * Remote Files:: Accessing files on other sites.
422 * Quoted File Names:: Quoting special characters in file names.
423 * File Name Cache:: Completion against a list of files you often use.
424 * File Conveniences:: Convenience Features for Finding Files.
425 * Filesets:: Handling sets of files.
426
427 Saving Files
428
429 * Save Commands:: Commands for saving files.
430 * Backup:: How Emacs saves the old version of your file.
431 * Customize Save:: Customizing the saving of files.
432 * Interlocking:: How Emacs protects against simultaneous editing
433 of one file by two users.
434 * File Shadowing:: Copying files to "shadows" automatically.
435 * Time Stamps:: Emacs can update time stamps on saved files.
436
437 Backup Files
438
439 * One or Many: Numbered Backups. Whether to make one backup file or many.
440 * Names: Backup Names. How backup files are named.
441 * Deletion: Backup Deletion. Emacs deletes excess numbered backups.
442 * Copying: Backup Copying. Backups can be made by copying or renaming.
443
444 Auto-Saving: Protection Against Disasters
445
446 * Files: Auto Save Files. The file where auto-saved changes are
447 actually made until you save the file.
448 * Control: Auto Save Control. Controlling when and how often to auto-save.
449 * Recover:: Recovering text from auto-save files.
450
451 Version Control
452
453 * Introduction to VC:: How version control works in general.
454 * VC Mode Line:: How the mode line shows version control status.
455 * Basic VC Editing:: How to edit a file under version control.
456 * Old Versions:: Examining and comparing old versions.
457 * Secondary VC Commands:: The commands used a little less frequently.
458 * Branches:: Multiple lines of development.
459 * Remote Repositories:: Efficient access to remote CVS servers.
460 * Snapshots:: Sets of file versions treated as a unit.
461 * Miscellaneous VC:: Various other commands and features of VC.
462 * Customizing VC:: Variables that change VC's behavior.
463
464 Using Multiple Buffers
465
466 * Select Buffer:: Creating a new buffer or reselecting an old one.
467 * List Buffers:: Getting a list of buffers that exist.
468 * Misc Buffer:: Renaming; changing read-onliness; copying text.
469 * Kill Buffer:: Killing buffers you no longer need.
470 * Several Buffers:: How to go through the list of all buffers
471 and operate variously on several of them.
472 * Indirect Buffers:: An indirect buffer shares the text of another buffer.
473 * Buffer Convenience:: Convenience and customization features for
474 buffer handling.
475
476 Multiple Windows
477
478 * Basic Window:: Introduction to Emacs windows.
479 * Split Window:: New windows are made by splitting existing windows.
480 * Other Window:: Moving to another window or doing something to it.
481 * Pop Up Window:: Finding a file or buffer in another window.
482 * Force Same Window:: Forcing certain buffers to appear in the selected
483 window rather than in another window.
484 * Change Window:: Deleting windows and changing their sizes.
485 * Window Convenience:: Convenience functions for window handling.
486
487 Frames and Graphical Displays
488
489 * Cut and Paste:: Mouse commands for cut and paste.
490 * Mouse References:: Using the mouse to select an item from a list.
491 * Menu Mouse Clicks:: Mouse clicks that bring up menus.
492 * Mode Line Mouse:: Mouse clicks on the mode line.
493 * Creating Frames:: Creating additional Emacs frames with various contents.
494 * Frame Commands:: Iconifying, deleting, and switching frames.
495 * Speedbar:: How to make and use a speedbar frame.
496 * Multiple Displays:: How one Emacs job can talk to several displays.
497 * Special Buffer Frames:: You can make certain buffers have their own frames.
498 * Frame Parameters:: Changing the colors and other modes of frames.
499 * Scroll Bars:: How to enable and disable scroll bars; how to use them.
500 * Wheeled Mice:: Using mouse wheels for scrolling.
501 * Drag and Drop:: Using drag and drop to open files and insert text.
502 * Menu Bars:: Enabling and disabling the menu bar.
503 * Tool Bars:: Enabling and disabling the tool bar.
504 * Dialog Boxes:: Controlling use of dialog boxes.
505 * Tooltips:: Showing "tooltips", AKA "balloon help" for active text.
506 * Mouse Avoidance:: Moving the mouse pointer out of the way.
507 * Non-Window Terminals:: Multiple frames on terminals that show only one.
508 * Text-Only Mouse:: Using the mouse in text-only terminals.
509
510 International Character Set Support
511
512 * International Chars:: Basic concepts of multibyte characters.
513 * Enabling Multibyte:: Controlling whether to use multibyte characters.
514 * Language Environments:: Setting things up for the language you use.
515 * Input Methods:: Entering text characters not on your keyboard.
516 * Select Input Method:: Specifying your choice of input methods.
517 * Multibyte Conversion:: How single-byte characters convert to multibyte.
518 * Coding Systems:: Character set conversion when you read and
519 write files, and so on.
520 * Recognize Coding:: How Emacs figures out which conversion to use.
521 * Specify Coding:: Specifying a file's coding system explicitly.
522 * Output Coding:: Choosing coding systems for output.
523 * Text Coding:: Choosing conversion to use for file text.
524 * Communication Coding:: Coding systems for interprocess communication.
525 * File Name Coding:: Coding systems for file @emph{names}.
526 * Terminal Coding:: Specifying coding systems for converting
527 terminal input and output.
528 * Fontsets:: Fontsets are collections of fonts
529 that cover the whole spectrum of characters.
530 * Defining Fontsets:: Defining a new fontset.
531 * Undisplayable Characters::When characters don't display.
532 * Unibyte Mode:: You can pick one European character set
533 to use without multibyte characters.
534 * Charsets:: How Emacs groups its internal character codes.
535
536 Major Modes
537
538 * Choosing Modes:: How major modes are specified or chosen.
539
540 Indentation
541
542 * Indentation Commands:: Various commands and techniques for indentation.
543 * Tab Stops:: You can set arbitrary "tab stops" and then
544 indent to the next tab stop when you want to.
545 * Just Spaces:: You can request indentation using just spaces.
546
547 Commands for Human Languages
548
549 * Words:: Moving over and killing words.
550 * Sentences:: Moving over and killing sentences.
551 * Paragraphs:: Moving over paragraphs.
552 * Pages:: Moving over pages.
553 * Filling:: Filling or justifying text.
554 * Case:: Changing the case of text.
555 * Text Mode:: The major modes for editing text files.
556 * Outline Mode:: Editing outlines.
557 * TeX Mode:: Editing input to the formatter TeX.
558 * HTML Mode:: Editing HTML, SGML, and XML files.
559 * Nroff Mode:: Editing input to the formatter nroff.
560 * Formatted Text:: Editing formatted text directly in WYSIWYG fashion.
561 * Text Based Tables:: Editing text-based tables in WYSIWYG fashion.
562
563 Filling Text
564
565 * Auto Fill:: Auto Fill mode breaks long lines automatically.
566 * Refill:: Keeping paragraphs filled.
567 * Fill Commands:: Commands to refill paragraphs and center lines.
568 * Fill Prefix:: Filling paragraphs that are indented
569 or in a comment, etc.
570 * Adaptive Fill:: How Emacs can determine the fill prefix automatically.
571 * Longlines:: Editing text with very long lines.
572
573 Outline Mode
574
575 * Format: Outline Format. What the text of an outline looks like.
576 * Motion: Outline Motion. Special commands for moving through
577 outlines.
578 * Visibility: Outline Visibility. Commands to control what is visible.
579 * Views: Outline Views. Outlines and multiple views.
580 * Foldout:: Folding means zooming in on outlines.
581
582 @TeX{} Mode
583
584 * Editing: TeX Editing. Special commands for editing in TeX mode.
585 * LaTeX: LaTeX Editing. Additional commands for LaTeX input files.
586 * Printing: TeX Print. Commands for printing part of a file with TeX.
587 * Misc: TeX Misc. Customization of TeX mode, and related features.
588
589 Editing Formatted Text
590
591 * Requesting Formatted Text:: Entering and exiting Enriched mode.
592 * Hard and Soft Newlines:: There are two different kinds of newlines.
593 * Editing Format Info:: How to edit text properties.
594 * Faces: Format Faces. Bold, italic, underline, etc.
595 * Color: Format Colors. Changing the color of text.
596 * Indent: Format Indentation. Changing the left and right margins.
597 * Justification: Format Justification.
598 Centering, setting text flush with the
599 left or right margin, etc.
600 * Other: Format Properties. The "special" text properties submenu.
601 * Forcing Enriched Mode:: How to force use of Enriched mode.
602
603 Editing Text-based Tables
604
605 * Table Definition:: What is a text based table.
606 * Table Creation:: How to create a table.
607 * Table Recognition:: How to activate and deactivate tables.
608 * Cell Commands:: Cell-oriented commands in a table.
609 * Cell Justification:: Justifying cell contents.
610 * Row Commands:: Manipulating rows of table cell.
611 * Column Commands:: Manipulating columns of table cell.
612 * Fixed Width Mode:: Fixing cell width.
613 * Table Conversion:: Converting between plain text and tables.
614 * Measuring Tables:: Analyzing table dimension.
615 * Table Misc:: Table miscellany.
616
617 Editing Programs
618
619 * Program Modes:: Major modes for editing programs.
620 * Defuns:: Commands to operate on major top-level parts
621 of a program.
622 * Program Indent:: Adjusting indentation to show the nesting.
623 * Parentheses:: Commands that operate on parentheses.
624 * Comments:: Inserting, killing, and aligning comments.
625 * Documentation:: Getting documentation of functions you plan to call.
626 * Hideshow:: Displaying blocks selectively.
627 * Symbol Completion:: Completion on symbol names of your program or language.
628 * Glasses:: Making identifiersLikeThis more readable.
629 * Misc for Programs:: Other Emacs features useful for editing programs.
630 * C Modes:: Special commands of C, C++, Objective-C,
631 Java, and Pike modes.
632 * Asm Mode:: Asm mode and its special features.
633 * Fortran:: Fortran mode and its special features.
634
635 Top-Level Definitions, or Defuns
636
637 * Left Margin Paren:: An open-paren or similar opening delimiter
638 starts a defun if it is at the left margin.
639 * Moving by Defuns:: Commands to move over or mark a major definition.
640 * Imenu:: Making buffer indexes as menus.
641 * Which Function:: Which Function mode shows which function you are in.
642
643 Indentation for Programs
644
645 * Basic Indent:: Indenting a single line.
646 * Multi-line Indent:: Commands to reindent many lines at once.
647 * Lisp Indent:: Specifying how each Lisp function should be indented.
648 * C Indent:: Extra features for indenting C and related modes.
649 * Custom C Indent:: Controlling indentation style for C and related modes.
650
651 Commands for Editing with Parentheses
652
653 * Expressions:: Expressions with balanced parentheses.
654 * Moving by Parens:: Commands for moving up, down and across
655 in the structure of parentheses.
656 * Matching:: Insertion of a close-delimiter flashes matching open.
657
658 Manipulating Comments
659
660 * Comment Commands:: Inserting, killing, and aligning comments.
661 * Multi-Line Comments:: Commands for adding and editing multi-line comments.
662 * Options for Comments::Customizing the comment features.
663
664 Documentation Lookup
665
666 * Info Lookup:: Looking up library functions and commands
667 in Info files.
668 * Man Page:: Looking up man pages of library functions and commands.
669 * Lisp Doc:: Looking up Emacs Lisp functions, etc.
670
671 C and Related Modes
672
673 * Motion in C:: Commands to move by C statements, etc.
674 * Electric C:: Colon and other chars can automatically reindent.
675 * Hungry Delete:: A more powerful DEL command.
676 * Other C Commands:: Filling comments, viewing expansion of macros,
677 and other neat features.
678
679 Compiling and Testing Programs
680
681 * Compilation:: Compiling programs in languages other
682 than Lisp (C, Pascal, etc.).
683 * Compilation Mode:: The mode for visiting compiler errors.
684 * Compilation Shell:: Customizing your shell properly
685 for use in the compilation buffer.
686 * Grep Searching:: Searching with grep.
687 * Flymake:: Finding syntax errors on the fly.
688 * Debuggers:: Running symbolic debuggers for non-Lisp programs.
689 * Executing Lisp:: Various modes for editing Lisp programs,
690 with different facilities for running
691 the Lisp programs.
692 * Lisp Libraries:: Creating Lisp programs to run in Emacs.
693 * Lisp Eval:: Executing a single Lisp expression in Emacs.
694 * Lisp Interaction:: Executing Lisp in an Emacs buffer.
695 * External Lisp:: Communicating through Emacs with a separate Lisp.
696
697 Running Debuggers Under Emacs
698
699 * Starting GUD:: How to start a debugger subprocess.
700 * Debugger Operation:: Connection between the debugger and source buffers.
701 * Commands of GUD:: Key bindings for common commands.
702 * GUD Customization:: Defining your own commands for GUD.
703 * GDB Graphical Interface:: An enhanced mode that uses GDB features to
704 implement a graphical debugging environment through
705 Emacs.
706
707 Maintaining Large Programs
708
709 * Change Log:: Maintaining a change history for your program.
710 * Format of ChangeLog:: What the change log file looks like.
711 * Tags:: Go direct to any function in your program in one
712 command. Tags remembers which file it is in.
713 * Emerge:: A convenient way of merging two versions of a program.
714
715 Tags Tables
716
717 * Tag Syntax:: Tag syntax for various types of code and text files.
718 * Create Tags Table:: Creating a tags table with @code{etags}.
719 * Etags Regexps:: Create arbitrary tags using regular expressions.
720 * Select Tags Table:: How to visit a tags table.
721 * Find Tag:: Commands to find the definition of a specific tag.
722 * Tags Search:: Using a tags table for searching and replacing.
723 * List Tags:: Listing and finding tags defined in a file.
724
725 Abbrevs
726
727 * Abbrev Concepts:: Fundamentals of defined abbrevs.
728 * Defining Abbrevs:: Defining an abbrev, so it will expand when typed.
729 * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
730 * Editing Abbrevs:: Viewing or editing the entire list of defined abbrevs.
731 * Saving Abbrevs:: Saving the entire list of abbrevs for another session.
732 * Dynamic Abbrevs:: Abbreviations for words already in the buffer.
733 * Dabbrev Customization:: What is a word, for dynamic abbrevs. Case handling.
734
735 @ifnottex
736 Editing Pictures
737
738 * Basic Picture:: Basic concepts and simple commands of Picture Mode.
739 * Insert in Picture:: Controlling direction of cursor motion
740 after "self-inserting" characters.
741 * Tabs in Picture:: Various features for tab stops and indentation.
742 * Rectangles in Picture:: Clearing and superimposing rectangles.
743 @end ifnottex
744
745 Sending Mail
746
747 * Mail Format:: Format of the mail being composed.
748 * Mail Headers:: Details of permitted mail header fields.
749 * Mail Aliases:: Abbreviating and grouping mail addresses.
750 * Mail Mode:: Special commands for editing mail being composed.
751 * Mail Amusements:: Distract the NSA's attention; add a fortune to a msg.
752 * Mail Methods:: Using alternative mail-composition methods.
753
754 Reading Mail with Rmail
755
756 * Rmail Basics:: Basic concepts of Rmail, and simple use.
757 * Rmail Scrolling:: Scrolling through a message.
758 * Rmail Motion:: Moving to another message.
759 * Rmail Deletion:: Deleting and expunging messages.
760 * Rmail Inbox:: How mail gets into the Rmail file.
761 * Rmail Files:: Using multiple Rmail files.
762 * Rmail Output:: Copying message out to files.
763 * Rmail Labels:: Classifying messages by labeling them.
764 * Rmail Attributes:: Certain standard labels, called attributes.
765 * Rmail Reply:: Sending replies to messages you are viewing.
766 * Rmail Summary:: Summaries show brief info on many messages.
767 * Rmail Sorting:: Sorting messages in Rmail.
768 * Rmail Display:: How Rmail displays a message; customization.
769 * Rmail Coding:: How Rmail handles decoding character sets.
770 * Rmail Editing:: Editing message text and headers in Rmail.
771 * Rmail Digest:: Extracting the messages from a digest message.
772 * Out of Rmail:: Converting an Rmail file to mailbox format.
773 * Rmail Rot13:: Reading messages encoded in the rot13 code.
774 * Movemail:: More details of fetching new mail.
775 * Remote Mailboxes:: Retrieving Mail from Remote Mailboxes.
776 * Other Mailbox Formats:: Retrieving Mail from Local Mailboxes in
777 Various Formats
778
779 Dired, the Directory Editor
780
781 * Dired Enter:: How to invoke Dired.
782 * Dired Navigation:: How to move in the Dired buffer.
783 * Dired Deletion:: Deleting files with Dired.
784 * Flagging Many Files:: Flagging files based on their names.
785 * Dired Visiting:: Other file operations through Dired.
786 * Marks vs Flags:: Flagging for deletion vs marking.
787 * Operating on Files:: How to copy, rename, print, compress, etc.
788 either one file or several files.
789 * Shell Commands in Dired:: Running a shell command on the marked files.
790 * Transforming File Names:: Using patterns to rename multiple files.
791 * Comparison in Dired:: Running `diff' by way of Dired.
792 * Subdirectories in Dired:: Adding subdirectories to the Dired buffer.
793 * Subdir Switches:: Subdirectory switches in Dired.
794 * Subdirectory Motion:: Moving across subdirectories, and up and down.
795 * Hiding Subdirectories:: Making subdirectories visible or invisible.
796 * Dired Updating:: Discarding lines for files of no interest.
797 * Dired and Find:: Using `find' to choose the files for Dired.
798 * Wdired:: Operating on files by editing the Dired buffer.
799 * Misc Dired Features:: Various other features.
800
801 The Calendar and the Diary
802
803 * Calendar Motion:: Moving through the calendar; selecting a date.
804 * Scroll Calendar:: Bringing earlier or later months onto the screen.
805 * Counting Days:: How many days are there between two dates?
806 * General Calendar:: Exiting or recomputing the calendar.
807 * Writing Calendar Files:: Writing calendars to files of various formats.
808 * Holidays:: Displaying dates of holidays.
809 * Sunrise/Sunset:: Displaying local times of sunrise and sunset.
810 * Lunar Phases:: Displaying phases of the moon.
811 * Other Calendars:: Converting dates to other calendar systems.
812 * Diary:: Displaying events from your diary.
813 * Appointments:: Reminders when it's time to do something.
814 * Importing Diary:: Converting diary events to/from other formats.
815 * Daylight Savings:: How to specify when daylight savings time is active.
816 * Time Intervals:: Keeping track of time intervals.
817 * Advanced Calendar/Diary Usage:: Advanced Calendar/Diary customization.
818
819 Movement in the Calendar
820
821 * Calendar Unit Motion:: Moving by days, weeks, months, and years.
822 * Move to Beginning or End:: Moving to start/end of weeks, months, and years.
823 * Specified Dates:: Moving to the current date or another
824 specific date.
825
826 Conversion To and From Other Calendars
827
828 * Calendar Systems:: The calendars Emacs understands
829 (aside from Gregorian).
830 * To Other Calendar:: Converting the selected date to various calendars.
831 * From Other Calendar:: Moving to a date specified in another calendar.
832 * Mayan Calendar:: Moving to a date specified in a Mayan calendar.
833
834 The Diary
835
836 * Displaying the Diary:: Viewing diary entries and associated calendar dates.
837 * Format of Diary File:: Entering events in your diary.
838 * Date Formats:: Various ways you can specify dates.
839 * Adding to Diary:: Commands to create diary entries.
840 * Special Diary Entries:: Anniversaries, blocks of dates, cyclic entries, etc.
841
842 Gnus
843
844 * Buffers of Gnus:: The group, summary, and article buffers.
845 * Gnus Startup:: What you should know about starting Gnus.
846 * Summary of Gnus:: A short description of the basic Gnus commands.
847
848 Running Shell Commands from Emacs
849
850 * Single Shell:: How to run one shell command and return.
851 * Interactive Shell:: Permanent shell taking input via Emacs.
852 * Shell Mode:: Special Emacs commands used with permanent shell.
853 * Shell Prompts:: Two ways to recognize shell prompts.
854 * Shell History:: Repeating previous commands in a shell buffer.
855 * Directory Tracking:: Keeping track when the subshell changes directory.
856 * Shell Options:: Options for customizing Shell mode.
857 * Terminal emulator:: An Emacs window as a terminal emulator.
858 * Term Mode:: Special Emacs commands used in Term mode.
859 * Paging in Term:: Paging in the terminal emulator.
860 * Remote Host:: Connecting to another computer.
861
862 Using Emacs as a Server
863
864 * Invoking emacsclient:: Emacs client startup options.
865
866 Printing Hard Copies
867
868 * PostScript:: Printing buffers or regions as PostScript.
869 * PostScript Variables:: Customizing the PostScript printing commands.
870 * Printing Package:: An optional advanced printing interface.
871
872 Hyperlinking and Navigation Features
873
874 * Browse-URL:: Following URLs.
875 * Goto-address:: Activating URLs.
876 * FFAP:: Finding files etc. at point.
877
878 Customization
879
880 * Minor Modes:: Each minor mode is one feature you can turn on
881 independently of any others.
882 * Easy Customization:: Convenient way to browse and change user options.
883 * Variables:: Many Emacs commands examine Emacs variables
884 to decide what to do; by setting variables,
885 you can control their functioning.
886 * Key Bindings:: The keymaps say what command each key runs.
887 By changing them, you can "redefine keys".
888 * Syntax:: The syntax table controls how words and
889 expressions are parsed.
890 * Init File:: How to write common customizations in the
891 @file{.emacs} file.
892
893 Variables
894
895 * Examining:: Examining or setting one variable's value.
896 * Hooks:: Hook variables let you specify programs for parts
897 of Emacs to run on particular occasions.
898 * Locals:: Per-buffer values of variables.
899 * File Variables:: How files can specify variable values.
900
901 Customizing Key Bindings
902
903 * Keymaps:: Generalities. The global keymap.
904 * Prefix Keymaps:: Keymaps for prefix keys.
905 * Local Keymaps:: Major and minor modes have their own keymaps.
906 * Minibuffer Maps:: The minibuffer uses its own local keymaps.
907 * Rebinding:: How to redefine one key's meaning conveniently.
908 * Init Rebinding:: Rebinding keys with your init file, @file{.emacs}.
909 * Function Keys:: Rebinding terminal function keys.
910 * Named ASCII Chars:: Distinguishing @key{TAB} from @kbd{C-i}, and so on.
911 * Non-ASCII Rebinding:: Rebinding non-@acronym{ASCII} characters such as Latin-1.
912 * Mouse Buttons:: Rebinding mouse buttons in Emacs.
913 * Disabling:: Disabling a command means confirmation is required
914 before it can be executed. This is done to protect
915 beginners from surprises.
916
917 The Init File, @file{~/.emacs}
918
919 * Init Syntax:: Syntax of constants in Emacs Lisp.
920 * Init Examples:: How to do some things with an init file.
921 * Terminal Init:: Each terminal type can have an init file.
922 * Find Init:: How Emacs finds the init file.
923
924 Dealing with Emacs Trouble
925
926 * DEL Does Not Delete:: What to do if @key{DEL} doesn't delete.
927 * Stuck Recursive:: `[...]' in mode line around the parentheses.
928 * Screen Garbled:: Garbage on the screen.
929 * Text Garbled:: Garbage in the text.
930 * Memory Full:: How to cope when you run out of memory.
931 * After a Crash:: Recovering editing in an Emacs session that crashed.
932 * Emergency Escape:: Emergency escape---
933 What to do if Emacs stops responding.
934 * Total Frustration:: When you are at your wits' end.
935
936 Reporting Bugs
937
938 * Bug Criteria:: Have you really found a bug?
939 * Understanding Bug Reporting:: How to report a bug effectively.
940 * Checklist:: Steps to follow for a good bug report.
941 * Sending Patches:: How to send a patch for GNU Emacs.
942
943 Command Line Arguments for Emacs Invocation
944
945 * Action Arguments:: Arguments to visit files, load libraries,
946 and call functions.
947 * Initial Options:: Arguments that take effect while starting Emacs.
948 * Command Example:: Examples of using command line arguments.
949 * Resume Arguments:: Specifying arguments when you resume a running Emacs.
950 * Environment:: Environment variables that Emacs uses.
951 * Display X:: Changing the default display and using remote login.
952 * Font X:: Choosing a font for text, under X.
953 * Colors:: Choosing display colors.
954 * Window Size X:: Start-up window size, under X.
955 * Borders X:: Internal and external borders, under X.
956 * Title X:: Specifying the initial frame's title.
957 * Icons X:: Choosing what sort of icon to use, under X.
958 * Misc X:: Other display options.
959
960 Environment Variables
961
962 * General Variables:: Environment variables that all versions of Emacs use.
963 * Misc Variables:: Certain system specific variables.
964 * MS-Windows Registry:: An alternative to the environment on MS-Windows.
965
966 X Options and Resources
967
968 * Resources:: Using X resources with Emacs (in general).
969 * Table of Resources:: Table of specific X resources that affect Emacs.
970 * Face Resources:: X resources for customizing faces.
971 * Lucid Resources:: X resources for Lucid menus.
972 * LessTif Resources:: X resources for LessTif and Motif menus.
973 * GTK resources:: Resources for GTK widgets.
974
975 Emacs and Mac OS
976
977 * Mac Input:: Keyboard and mouse input on Mac.
978 * Mac International:: International character sets on Mac.
979 * Mac Environment Variables:: Setting environment variables for Emacs.
980 * Mac Directories:: Volumes and directories on Mac.
981 * Mac Font Specs:: Specifying fonts on Mac.
982 * Mac Functions:: Mac-specific Lisp functions.
983
984 Emacs and Microsoft Windows/MS-DOS
985
986 * Text and Binary:: Text files use CRLF to terminate lines.
987 * Windows Files:: File-name conventions on Windows.
988 * ls in Lisp:: Emulation of @code{ls} for Dired.
989 * Windows HOME:: Where Emacs looks for your @file{.emacs}.
990 * Windows Keyboard:: Windows-specific keyboard features.
991 * Windows Mouse:: Windows-specific mouse features.
992 * Windows Processes:: Running subprocesses on Windows.
993 * Windows Printing:: How to specify the printer on MS-Windows.
994 * Windows Misc:: Miscellaneous Windows features.
995 * MS-DOS:: Using Emacs on MS-DOS (otherwise known as @dfn{MS-DOG}).
996 @end detailmenu
997 @end menu
998
999 @iftex
1000 @unnumbered Preface
1001
1002 This manual documents the use and simple customization of the Emacs
1003 editor. Simple Emacs customizations do not require you to be a
1004 programmer, but if you are not interested in customizing, you can
1005 ignore the customization hints.
1006
1007 This is primarily a reference manual, but can also be used as a
1008 primer. If you are new to Emacs, we recommend you start with
1009 the on-line, learn-by-doing tutorial, before reading the manual. To
1010 run the tutorial, start Emacs and type @kbd{C-h t}. The tutorial
1011 describes commands, tells you when to try them, and explains the
1012 results.
1013
1014 On first reading, just skim chapters 1 and 2, which describe the
1015 notational conventions of the manual and the general appearance of the
1016 Emacs display screen. Note which questions are answered in these
1017 chapters, so you can refer back later. After reading chapter 4, you
1018 should practice the commands shown there. The next few chapters
1019 describe fundamental techniques and concepts that are used constantly.
1020 You need to understand them thoroughly, so experiment with them
1021 until you are fluent.
1022
1023 Chapters 14 through 19 describe intermediate-level features that are
1024 useful for many kinds of editing. Chapter 20 and following chapters
1025 describe optional but useful features; read those chapters when you
1026 need them.
1027
1028 Read the Trouble chapter if Emacs does not seem to be working
1029 properly. It explains how to cope with several common problems
1030 (@pxref{Lossage}), as well as when and how to report Emacs bugs
1031 (@pxref{Bugs}).
1032
1033 To find the documentation of a particular command, look in the index.
1034 Keys (character commands) and command names have separate indexes.
1035 There is also a glossary, with a cross reference for each term.
1036
1037 This manual is available as a printed book and also as an Info file.
1038 The Info file is for on-line perusal with the Info program, which is
1039 the principal means of accessing on-line documentation in the GNU
1040 system. Both the Emacs Info file and an Info reader are included with
1041 GNU Emacs. The Info file and the printed book contain substantially
1042 the same text and are generated from the same source files, which are
1043 also distributed with GNU Emacs.
1044
1045 GNU Emacs is a member of the Emacs editor family. There are many
1046 Emacs editors, all sharing common principles of organization. For
1047 information on the underlying philosophy of Emacs and the lessons
1048 learned from its development, see @cite{Emacs, the Extensible,
1049 Customizable Self-Documenting Display Editor}, available from
1050 @url{ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-519A.pdf}.
1051
1052 This edition of the manual is intended for use with GNU Emacs
1053 installed on GNU and Unix systems. GNU Emacs can also be used on VMS,
1054 MS-DOS (also called MS-DOG), Microsoft Windows, and Macintosh systems.
1055 Those systems use different file name syntax; in addition, VMS and
1056 MS-DOS do not support all GNU Emacs features. @xref{Microsoft
1057 Windows}, for information about using Emacs on Windows.
1058 @xref{Mac OS}, for information about using Emacs on Macintosh. We
1059 don't try to describe VMS usage in this manual.
1060 @end iftex
1061
1062 @node Distrib, Intro, Top, Top
1063 @unnumbered Distribution
1064
1065 GNU Emacs is @dfn{free software}; this means that everyone is free to
1066 use it and free to redistribute it on certain conditions. GNU Emacs
1067 is not in the public domain; it is copyrighted and there are
1068 restrictions on its distribution, but these restrictions are designed
1069 to permit everything that a good cooperating citizen would want to do.
1070 What is not allowed is to try to prevent others from further sharing
1071 any version of GNU Emacs that they might get from you. The precise
1072 conditions are found in the GNU General Public License that comes with
1073 Emacs and also appears in this manual@footnote{This manual is itself
1074 covered by the GNU Free Documentation License. This license is
1075 similar in spirit to the General Public License, but is more suitable
1076 for documentation. @xref{GNU Free Documentation License}.}.
1077 @xref{Copying}.
1078
1079 One way to get a copy of GNU Emacs is from someone else who has it.
1080 You need not ask for our permission to do so, or tell any one else;
1081 just copy it. If you have access to the Internet, you can get the
1082 latest distribution version of GNU Emacs by anonymous FTP; see
1083 @url{http://www.gnu.org/software/emacs} on our website for more
1084 information.
1085
1086 You may also receive GNU Emacs when you buy a computer. Computer
1087 manufacturers are free to distribute copies on the same terms that apply to
1088 everyone else. These terms require them to give you the full sources,
1089 including whatever changes they may have made, and to permit you to
1090 redistribute the GNU Emacs received from them under the usual terms of the
1091 General Public License. In other words, the program must be free for you
1092 when you get it, not just free for the manufacturer.
1093
1094 You can also order copies of GNU Emacs from the Free Software
1095 Foundation. This is a convenient and reliable way to get a copy; it is
1096 also a good way to help fund our work. We also sell hardcopy versions
1097 of this manual and @cite{An Introduction to Programming in Emacs Lisp},
1098 by Robert J. Chassell. You can find an order form on our web site at
1099 @url{http://www.gnu.org/order/order.html}. For further information,
1100 write to
1101
1102 @display
1103 Free Software Foundation
1104 51 Franklin Street, Fifth Floor
1105 Boston, MA 02110-1301
1106 USA
1107 @end display
1108
1109 The income from distribution fees goes to support the foundation's
1110 purpose: the development of new free software, and improvements to our
1111 existing programs including GNU Emacs.
1112
1113 If you find GNU Emacs useful, please @strong{send a donation} to the
1114 Free Software Foundation to support our work. Donations to the Free
1115 Software Foundation are tax deductible in the US. If you use GNU Emacs
1116 at your workplace, please suggest that the company make a donation. If
1117 company policy is unsympathetic to the idea of donating to charity, you
1118 might instead suggest ordering a CD-ROM from the Foundation
1119 occasionally, or subscribing to periodic updates.
1120
1121 @iftex
1122 @node Acknowledgments, Intro, Distrib, Top
1123 @unnumberedsec Acknowledgments
1124
1125 Contributors to GNU Emacs include Jari Aalto, Per Abrahamsen, Tomas
1126 Abrahamsson, Jay K.@: Adams, Michael Albinus, Nagy Andras, Ralf
1127 Angeli, Joe Arceneaux, Miles Bader, David Bakhash, Juanma Barranquero,
1128 Eli Barzilay, Steven L.@: Baur, Jay Belanger, Alexander L.@: Belikoff,
1129 Boaz Ben-Zvi, Karl Berry, Anna M.@: Bigatti, Ray Blaak, Jim Blandy, Johan Bockg@aa{}rd,
1130 Per Bothner, Terrence Brannon, Frank Bresz, Peter Breton, Emmanuel
1131 Briot, Kevin Broadey, Vincent Broman, David M.@: Brown, Georges
1132 Brun-Cottan, Joe Buehler, W@l{}odek Bzyl, Bill Carpenter, Per
1133 Cederqvist, Hans Chalupsky, Chris Chase, Bob Chassell, Andrew Choi,
1134 Sacha Chua, James Clark, Mike Clarkson, Glynn Clements, Andrew
1135 Csillag, Doug Cutting, Mathias Dahl, Satyaki Das, Michael DeCorte,
1136 Gary Delp, Matthieu Devin, Eri Ding, Jan Dj@"{a}rv, Carsten Dominik,
1137 Scott Draves, Benjamin Drieu, Viktor Dukhovni, John Eaton, Rolf Ebert,
1138 Paul Eggert, Stephen Eglen, Torbj@"orn Einarsson, Tsugutomo Enami,
1139 Hans Henrik Eriksen, Michael Ernst, Ata Etemadi, Frederick Farnbach,
1140 Oscar Figueiredo, Fred Fish, Karl Fogel, Gary Foster, Romain
1141 Francoise, Noah Friedman, Andreas Fuchs, Hallvard Furuseth, Keith
1142 Gabryelski, Peter S.@: Galbraith, Kevin Gallagher, Kevin Gallo, Juan
1143 Le@'{o}n Lahoz Garc@'{@dotless{i}}a, Howard Gayle, Stephen Gildea, Julien
1144 Gilles, David Gillespie, Bob Glickstein, Deepak Goel, Boris Goldowsky,
1145 Michelangelo Grigni, Odd Gripenstam, Kai Gro@ss{}johann, Michael
1146 Gschwind, Henry Guillaume, Doug Gwyn, Ken'ichi Handa, Lars Hansen,
1147 Chris Hanson, K. Shane Hartman, John Heidemann, Jon K.@: Hellan,
1148 Jesper Harder, Markus Heritsch, Karl Heuer, Manabu Higashida, Anders
1149 Holst, Jeffrey C.@: Honig, Kurt Hornik, Tom Houlder, Joakim Hove,
1150 Denis Howe, Lars Ingebrigtsen, Andrew Innes, Seiichiro Inoue, Pavel
1151 Janik, Paul Jarc, Ulf Jasper, Michael K. Johnson, Kyle Jones, Terry
1152 Jones, Simon Josefsson, Arne J@o{}rgensen, Tomoji Kagatani, Brewster
1153 Kahle, Lute Kamstra, David Kastrup, David Kaufman, Henry Kautz, Taichi
1154 Kawabata, Howard Kaye, Michael Kifer, Richard King, Peter Kleiweg,
1155 Shuhei Kobayashi, Pavel Kobiakov, Larry K.@: Kolodney, David M.@:
1156 Koppelman, Koseki Yoshinori, Robert Krawitz, Sebastian Kremer, Ryszard
1157 Kubiak, Geoff Kuenning, David K@aa{}gedal, Daniel LaLiberte, Mario
1158 Lang, Aaron Larson, James R.@: Larus, Vinicius Jose Latorre, Werner
1159 Lemberg, Frederic Lepied, Peter Liljenberg, Lars Lindberg, Chris
1160 Lindblad, Anders Lindgren, Thomas Link, Juri Linkov, Francis Litterio,
1161 Emilio C. Lopes, Dave Love, Sascha L@"{u}decke, Eric Ludlam,Alan
1162 Mackenzie, Christopher J.@: Madsen, Neil M.@: Mager, Ken Manheimer,
1163 Bill Mann, Brian Marick, Simon Marshall, Bengt Martensson, Charlie
1164 Martin, Thomas May, Roland McGrath, Will Mengarini, David Megginson,
1165 Ben A. Mesander, Wayne Mesard, Brad Miller, Lawrence Mitchell, Richard
1166 Mlynarik, Gerd Moellmann, Stefan Monnier, Morioka Tomohiko, Keith
1167 Moore, Glenn Morris, Diane Murray, Sen Nagata, Erik Naggum, Thomas
1168 Neumann, Thien-Thi Nguyen, Mike Newton, Jurgen Nickelsen, Dan
1169 Nicolaescu, Hrvoje Niksic, Jeff Norden, Andrew Norman, Alexandre
1170 Oliva, Bob Olson, Michael Olson, Takaaki Ota, Pieter E.@: J.@: Pareit,
1171 David Pearson, Jeff Peck, Damon Anton Permezel, Tom Perrine, William
1172 M.@: Perry, Per Persson, Jens Petersen, Daniel Pfeiffer, Richard L.@:
1173 Pieri, Fred Pierresteguy, Christian Plaunt, David Ponce, Francesco
1174 A.@: Potorti, Michael D. Prange, Mukesh Prasad, Ken Raeburn, Marko
1175 Rahamaa, Ashwin Ram, Eric S. Raymond, Paul Reilly, Edward M. Reingold,
1176 Alex Rezinsky, Rob Riepel, David Reitter, Nick Roberts, Roland B.@:
1177 Roberts, John Robinson, Danny Roozendaal, William Rosenblatt,
1178 Guillermo J.@: Rozas, Martin Rudalics, Ivar Rummelhoff, Jason Rumney,
1179 Wolfgang Rupprecht, Kevin Ryde, James B. Salem, Masahiko Sato, Jorgen
1180 Schaefer, Holger Schauer, William Schelter, Ralph Schleicher, Gregor
1181 Schmid, Michael Schmidt, Ronald S. Schnell, Philippe Schnoebelen, Jan
1182 Schormann, Alex Schroeder, Stephen Schoef, Raymond Scholz, Randal
1183 Schwartz, Oliver Seidel, Manuel Serrano, Hovav Shacham, Stanislav
1184 Shalunov, Marc Shapiro, Richard Sharman, Olin Shivers, Espen Skoglund,
1185 Rick Sladkey, Lynn Slater, Chris Smith, David Smith, Paul D.@: Smith,
1186 Andre Spiegel, Michael Staats, William Sommerfeld, Michael Staats,
1187 Reiner Steib, Sam Steingold, Ake Stenhoff, Peter Stephenson, Ken
1188 Stevens, Jonathan Stigelman, Martin Stjernholm, Kim F.@: Storm, Steve
1189 Strassman, Olaf Sylvester, Naoto Takahashi, Steven Tamm, Jean-Philippe
1190 Theberge, Jens T.@: Berger Thielemann, Spencer Thomas, Jim Thompson,
1191 Luc Teirlinck, Tom Tromey, Enami Tsugutomo, Eli Tziperman, Daiki Ueno,
1192 Masanobu Umeda, Rajesh Vaidheeswarran, Neil W.@: Van Dyke, Didier
1193 Verna, Ulrik Vieth, Geoffrey Voelker, Johan Vromans, Inge Wallin, John
1194 Paul Wallington, Colin Walters, Barry Warsaw, Morten Welinder, Joseph
1195 Brian Wells, Rodney Whitby, John Wiegley, Ed Wilkinson, Mike Williams,
1196 Bill Wohler, Steven A. Wood, Dale R.@: Worley, Francis J.@: Wright,
1197 Felix S. T. Wu, Tom Wurgler, Katsumi Yamaoka, Masatake Yamato,
1198 Jonathan Yavner, Ryan Yeske, Chong Yidong, Ilya Zakharevich, Milan
1199 Zamazal, Victor Zandy, Eli Zaretskii, Jamie Zawinski, Shenghuo Zhu,
1200 Ian T.@: Zimmermann, Reto Zimmermann, Neal Ziring, Teodor Zlatanov,
1201 and Detlev Zundel.
1202 @end iftex
1203
1204 @node Intro, Glossary, Distrib, Top
1205 @unnumbered Introduction
1206
1207 You are reading about GNU Emacs, the GNU incarnation of the
1208 advanced, self-documenting, customizable, extensible editor Emacs.
1209 (The `G' in `GNU' is not silent.)
1210
1211 We call Emacs advanced because it provides much more than simple
1212 insertion and deletion. It can control subprocesses, indent programs
1213 automatically, show two or more files at once, and edit formatted
1214 text. Emacs editing commands operate in terms of characters, words,
1215 lines, sentences, paragraphs, and pages, as well as expressions and
1216 comments in various programming languages.
1217
1218 @dfn{Self-documenting} means that at any time you can type a special
1219 character, @kbd{Control-h}, to find out what your options are. You can
1220 also use it to find out what any command does, or to find all the commands
1221 that pertain to a topic. @xref{Help}.
1222
1223 @dfn{Customizable} means that you can alter Emacs commands' behavior
1224 in simple ways. For example, if you use a programming language in
1225 which comments start with @samp{<**} and end with @samp{**>}, you can
1226 tell the Emacs comment manipulation commands to use those strings
1227 (@pxref{Comments}). Another sort of customization is rearrangement of
1228 the command set. For example, you can rebind the basic cursor motion
1229 commands (up, down, left and right) to any keys on the keyboard that
1230 you find comfortable. @xref{Customization}.
1231
1232 @dfn{Extensible} means that you can go beyond simple customization
1233 and write entirely new commands---programs in the Lisp language to be
1234 run by Emacs's own Lisp interpreter. Emacs is an ``on-line
1235 extensible'' system, which means that it is divided into many
1236 functions that call each other, any of which can be redefined in the
1237 middle of an editing session. Almost any part of Emacs can be
1238 replaced without making a separate copy of all of Emacs. Most of the
1239 editing commands of Emacs are written in Lisp; the few exceptions
1240 could have been written in Lisp but use C instead for efficiency.
1241 Writing an extension is programming, but non-programmers can use it
1242 afterwards. @xref{Top, Emacs Lisp Intro, Preface, eintr, An
1243 Introduction to Programming in Emacs Lisp}, if you want to learn Emacs
1244 Lisp programming.
1245
1246 When running on a graphical display, Emacs provides its own menus
1247 and convenient handling of mouse buttons. In addition, Emacs provides
1248 many of the benefits of a graphical display even on a text-only
1249 terminal. For instance, it can highlight parts of a file, display and
1250 edit several files at once, move text between files, and edit files
1251 while running shell commands.
1252
1253 @include screen.texi
1254 @include commands.texi
1255 @include entering.texi
1256 @include basic.texi
1257 @include mini.texi
1258 @include m-x.texi
1259 @include help.texi
1260 @include mark.texi
1261 @include killing.texi
1262 @include regs.texi
1263 @include display.texi
1264 @include search.texi
1265 @include fixit.texi
1266 @include kmacro.texi
1267 @include files.texi
1268 @include buffers.texi
1269 @include windows.texi
1270 @include frames.texi
1271 @include mule.texi
1272 @include major.texi
1273 @include indent.texi
1274 @include text.texi
1275 @include programs.texi
1276 @include building.texi
1277 @include maintaining.texi
1278 @include abbrevs.texi
1279 @ifnottex
1280 @include picture-xtra.texi
1281 @end ifnottex
1282 @include sending.texi
1283 @include rmail.texi
1284 @include dired.texi
1285 @include calendar.texi
1286 @include misc.texi
1287 @include custom.texi
1288 @include trouble.texi
1289
1290 @node Copying, GNU Free Documentation License, Service, Top
1291 @appendix GNU GENERAL PUBLIC LICENSE
1292 @center Version 2, June 1991
1293
1294 @display
1295 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
1296 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
1297
1298 Everyone is permitted to copy and distribute verbatim copies
1299 of this license document, but changing it is not allowed.
1300 @end display
1301
1302 @unnumberedsec Preamble
1303
1304 The licenses for most software are designed to take away your
1305 freedom to share and change it. By contrast, the GNU General Public
1306 License is intended to guarantee your freedom to share and change free
1307 software---to make sure the software is free for all its users. This
1308 General Public License applies to most of the Free Software
1309 Foundation's software and to any other program whose authors commit to
1310 using it. (Some other Free Software Foundation software is covered by
1311 the GNU Lesser General Public License instead.) You can apply it to
1312 your programs, too.
1313
1314 When we speak of free software, we are referring to freedom, not
1315 price. Our General Public Licenses are designed to make sure that you
1316 have the freedom to distribute copies of free software (and charge for
1317 this service if you wish), that you receive source code or can get it
1318 if you want it, that you can change the software or use pieces of it
1319 in new free programs; and that you know you can do these things.
1320
1321 To protect your rights, we need to make restrictions that forbid
1322 anyone to deny you these rights or to ask you to surrender the rights.
1323 These restrictions translate to certain responsibilities for you if you
1324 distribute copies of the software, or if you modify it.
1325
1326 For example, if you distribute copies of such a program, whether
1327 gratis or for a fee, you must give the recipients all the rights that
1328 you have. You must make sure that they, too, receive or can get the
1329 source code. And you must show them these terms so they know their
1330 rights.
1331
1332 We protect your rights with two steps: (1) copyright the software, and
1333 (2) offer you this license which gives you legal permission to copy,
1334 distribute and/or modify the software.
1335
1336 Also, for each author's protection and ours, we want to make certain
1337 that everyone understands that there is no warranty for this free
1338 software. If the software is modified by someone else and passed on, we
1339 want its recipients to know that what they have is not the original, so
1340 that any problems introduced by others will not reflect on the original
1341 authors' reputations.
1342
1343 Finally, any free program is threatened constantly by software
1344 patents. We wish to avoid the danger that redistributors of a free
1345 program will individually obtain patent licenses, in effect making the
1346 program proprietary. To prevent this, we have made it clear that any
1347 patent must be licensed for everyone's free use or not licensed at all.
1348
1349 The precise terms and conditions for copying, distribution and
1350 modification follow.
1351
1352 @iftex
1353 @unnumberedsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1354 @end iftex
1355 @ifnottex
1356 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1357 @end ifnottex
1358
1359 @enumerate 0
1360 @item
1361 This License applies to any program or other work which contains
1362 a notice placed by the copyright holder saying it may be distributed
1363 under the terms of this General Public License. The ``Program,'' below,
1364 refers to any such program or work, and a ``work based on the Program''
1365 means either the Program or any derivative work under copyright law:
1366 that is to say, a work containing the Program or a portion of it,
1367 either verbatim or with modifications and/or translated into another
1368 language. (Hereinafter, translation is included without limitation in
1369 the term ``modification.'') Each licensee is addressed as ``you.''
1370
1371 Activities other than copying, distribution and modification are not
1372 covered by this License; they are outside its scope. The act of
1373 running the Program is not restricted, and the output from the Program
1374 is covered only if its contents constitute a work based on the
1375 Program (independent of having been made by running the Program).
1376 Whether that is true depends on what the Program does.
1377
1378 @item
1379 You may copy and distribute verbatim copies of the Program's
1380 source code as you receive it, in any medium, provided that you
1381 conspicuously and appropriately publish on each copy an appropriate
1382 copyright notice and disclaimer of warranty; keep intact all the
1383 notices that refer to this License and to the absence of any warranty;
1384 and give any other recipients of the Program a copy of this License
1385 along with the Program.
1386
1387 You may charge a fee for the physical act of transferring a copy, and
1388 you may at your option offer warranty protection in exchange for a fee.
1389
1390 @item
1391 You may modify your copy or copies of the Program or any portion
1392 of it, thus forming a work based on the Program, and copy and
1393 distribute such modifications or work under the terms of Section 1
1394 above, provided that you also meet all of these conditions:
1395
1396 @enumerate a
1397 @item
1398 You must cause the modified files to carry prominent notices
1399 stating that you changed the files and the date of any change.
1400
1401 @item
1402 You must cause any work that you distribute or publish, that in
1403 whole or in part contains or is derived from the Program or any
1404 part thereof, to be licensed as a whole at no charge to all third
1405 parties under the terms of this License.
1406
1407 @item
1408 If the modified program normally reads commands interactively
1409 when run, you must cause it, when started running for such
1410 interactive use in the most ordinary way, to print or display an
1411 announcement including an appropriate copyright notice and a
1412 notice that there is no warranty (or else, saying that you provide
1413 a warranty) and that users may redistribute the program under
1414 these conditions, and telling the user how to view a copy of this
1415 License. (Exception: if the Program itself is interactive but
1416 does not normally print such an announcement, your work based on
1417 the Program is not required to print an announcement.)
1418 @end enumerate
1419
1420 These requirements apply to the modified work as a whole. If
1421 identifiable sections of that work are not derived from the Program,
1422 and can be reasonably considered independent and separate works in
1423 themselves, then this License, and its terms, do not apply to those
1424 sections when you distribute them as separate works. But when you
1425 distribute the same sections as part of a whole which is a work based
1426 on the Program, the distribution of the whole must be on the terms of
1427 this License, whose permissions for other licensees extend to the
1428 entire whole, and thus to each and every part regardless of who wrote it.
1429
1430 Thus, it is not the intent of this section to claim rights or contest
1431 your rights to work written entirely by you; rather, the intent is to
1432 exercise the right to control the distribution of derivative or
1433 collective works based on the Program.
1434
1435 In addition, mere aggregation of another work not based on the Program
1436 with the Program (or with a work based on the Program) on a volume of
1437 a storage or distribution medium does not bring the other work under
1438 the scope of this License.
1439
1440 @item
1441 You may copy and distribute the Program (or a work based on it,
1442 under Section 2) in object code or executable form under the terms of
1443 Sections 1 and 2 above provided that you also do one of the following:
1444
1445 @enumerate a
1446 @item
1447 Accompany it with the complete corresponding machine-readable
1448 source code, which must be distributed under the terms of Sections
1449 1 and 2 above on a medium customarily used for software interchange; or,
1450
1451 @item
1452 Accompany it with a written offer, valid for at least three
1453 years, to give any third party, for a charge no more than your
1454 cost of physically performing source distribution, a complete
1455 machine-readable copy of the corresponding source code, to be
1456 distributed under the terms of Sections 1 and 2 above on a medium
1457 customarily used for software interchange; or,
1458
1459 @item
1460 Accompany it with the information you received as to the offer
1461 to distribute corresponding source code. (This alternative is
1462 allowed only for noncommercial distribution and only if you
1463 received the program in object code or executable form with such
1464 an offer, in accord with Subsection b above.)
1465 @end enumerate
1466
1467 The source code for a work means the preferred form of the work for
1468 making modifications to it. For an executable work, complete source
1469 code means all the source code for all modules it contains, plus any
1470 associated interface definition files, plus the scripts used to
1471 control compilation and installation of the executable. However, as a
1472 special exception, the source code distributed need not include
1473 anything that is normally distributed (in either source or binary
1474 form) with the major components (compiler, kernel, and so on) of the
1475 operating system on which the executable runs, unless that component
1476 itself accompanies the executable.
1477
1478 If distribution of executable or object code is made by offering
1479 access to copy from a designated place, then offering equivalent
1480 access to copy the source code from the same place counts as
1481 distribution of the source code, even though third parties are not
1482 compelled to copy the source along with the object code.
1483
1484 @item
1485 You may not copy, modify, sublicense, or distribute the Program
1486 except as expressly provided under this License. Any attempt
1487 otherwise to copy, modify, sublicense or distribute the Program is
1488 void, and will automatically terminate your rights under this License.
1489 However, parties who have received copies, or rights, from you under
1490 this License will not have their licenses terminated so long as such
1491 parties remain in full compliance.
1492
1493 @item
1494 You are not required to accept this License, since you have not
1495 signed it. However, nothing else grants you permission to modify or
1496 distribute the Program or its derivative works. These actions are
1497 prohibited by law if you do not accept this License. Therefore, by
1498 modifying or distributing the Program (or any work based on the
1499 Program), you indicate your acceptance of this License to do so, and
1500 all its terms and conditions for copying, distributing or modifying
1501 the Program or works based on it.
1502
1503 @item
1504 Each time you redistribute the Program (or any work based on the
1505 Program), the recipient automatically receives a license from the
1506 original licensor to copy, distribute or modify the Program subject to
1507 these terms and conditions. You may not impose any further
1508 restrictions on the recipients' exercise of the rights granted herein.
1509 You are not responsible for enforcing compliance by third parties to
1510 this License.
1511
1512 @item
1513 If, as a consequence of a court judgment or allegation of patent
1514 infringement or for any other reason (not limited to patent issues),
1515 conditions are imposed on you (whether by court order, agreement or
1516 otherwise) that contradict the conditions of this License, they do not
1517 excuse you from the conditions of this License. If you cannot
1518 distribute so as to satisfy simultaneously your obligations under this
1519 License and any other pertinent obligations, then as a consequence you
1520 may not distribute the Program at all. For example, if a patent
1521 license would not permit royalty-free redistribution of the Program by
1522 all those who receive copies directly or indirectly through you, then
1523 the only way you could satisfy both it and this License would be to
1524 refrain entirely from distribution of the Program.
1525
1526 If any portion of this section is held invalid or unenforceable under
1527 any particular circumstance, the balance of the section is intended to
1528 apply and the section as a whole is intended to apply in other
1529 circumstances.
1530
1531 It is not the purpose of this section to induce you to infringe any
1532 patents or other property right claims or to contest validity of any
1533 such claims; this section has the sole purpose of protecting the
1534 integrity of the free software distribution system, which is
1535 implemented by public license practices. Many people have made
1536 generous contributions to the wide range of software distributed
1537 through that system in reliance on consistent application of that
1538 system; it is up to the author/donor to decide if he or she is willing
1539 to distribute software through any other system and a licensee cannot
1540 impose that choice.
1541
1542 This section is intended to make thoroughly clear what is believed to
1543 be a consequence of the rest of this License.
1544
1545 @item
1546 If the distribution and/or use of the Program is restricted in
1547 certain countries either by patents or by copyrighted interfaces, the
1548 original copyright holder who places the Program under this License
1549 may add an explicit geographical distribution limitation excluding
1550 those countries, so that distribution is permitted only in or among
1551 countries not thus excluded. In such case, this License incorporates
1552 the limitation as if written in the body of this License.
1553
1554 @item
1555 The Free Software Foundation may publish revised and/or new versions
1556 of the General Public License from time to time. Such new versions will
1557 be similar in spirit to the present version, but may differ in detail to
1558 address new problems or concerns.
1559
1560 Each version is given a distinguishing version number. If the Program
1561 specifies a version number of this License which applies to it and ``any
1562 later version,'' you have the option of following the terms and conditions
1563 either of that version or of any later version published by the Free
1564 Software Foundation. If the Program does not specify a version number of
1565 this License, you may choose any version ever published by the Free Software
1566 Foundation.
1567
1568 @item
1569 If you wish to incorporate parts of the Program into other free
1570 programs whose distribution conditions are different, write to the author
1571 to ask for permission. For software which is copyrighted by the Free
1572 Software Foundation, write to the Free Software Foundation; we sometimes
1573 make exceptions for this. Our decision will be guided by the two goals
1574 of preserving the free status of all derivatives of our free software and
1575 of promoting the sharing and reuse of software generally.
1576
1577 @iftex
1578 @heading NO WARRANTY
1579 @end iftex
1580 @ifnottex
1581 @center NO WARRANTY
1582 @end ifnottex
1583
1584 @item
1585 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
1586 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW@. EXCEPT WHEN
1587 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
1588 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
1589 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1590 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE@. THE ENTIRE RISK AS
1591 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU@. SHOULD THE
1592 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
1593 REPAIR OR CORRECTION.
1594
1595 @item
1596 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
1597 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
1598 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
1599 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
1600 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
1601 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
1602 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
1603 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
1604 POSSIBILITY OF SUCH DAMAGES.
1605 @end enumerate
1606
1607 @iftex
1608 @heading END OF TERMS AND CONDITIONS
1609 @end iftex
1610 @ifnottex
1611 @center END OF TERMS AND CONDITIONS
1612 @end ifnottex
1613
1614 @page
1615 @unnumberedsec How to Apply These Terms to Your New Programs
1616
1617 If you develop a new program, and you want it to be of the greatest
1618 possible use to the public, the best way to achieve this is to make it
1619 free software which everyone can redistribute and change under these terms.
1620
1621 To do so, attach the following notices to the program. It is safest
1622 to attach them to the start of each source file to most effectively
1623 convey the exclusion of warranty; and each file should have at least
1624 the ``copyright'' line and a pointer to where the full notice is found.
1625
1626 @smallexample
1627 @var{one line to give the program's name and an idea of what it does.}
1628 Copyright (C) @var{yyyy} @var{name of author}
1629
1630 This program is free software; you can redistribute it and/or
1631 modify it under the terms of the GNU General Public License
1632 as published by the Free Software Foundation; either version 2
1633 of the License, or (at your option) any later version.
1634
1635 This program is distributed in the hope that it will be useful,
1636 but WITHOUT ANY WARRANTY; without even the implied warranty of
1637 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE@. See the
1638 GNU General Public License for more details.
1639
1640 You should have received a copy of the GNU General Public License along
1641 with this program; if not, write to the Free Software Foundation, Inc.,
1642 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1643 @end smallexample
1644
1645 Also add information on how to contact you by electronic and paper mail.
1646
1647 If the program is interactive, make it output a short notice like this
1648 when it starts in an interactive mode:
1649
1650 @smallexample
1651 Gnomovision version 69, Copyright (C) @var{yyyy} @var{name of author}
1652 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
1653 type `show w'. This is free software, and you are welcome
1654 to redistribute it under certain conditions; type `show c'
1655 for details.
1656 @end smallexample
1657
1658 The hypothetical commands @samp{show w} and @samp{show c} should show
1659 the appropriate parts of the General Public License. Of course, the
1660 commands you use may be called something other than @samp{show w} and
1661 @samp{show c}; they could even be mouse-clicks or menu items---whatever
1662 suits your program.
1663
1664 You should also get your employer (if you work as a programmer) or your
1665 school, if any, to sign a ``copyright disclaimer'' for the program, if
1666 necessary. Here is a sample; alter the names:
1667
1668 @smallexample
1669 @group
1670 Yoyodyne, Inc., hereby disclaims all copyright
1671 interest in the program `Gnomovision'
1672 (which makes passes at compilers) written
1673 by James Hacker.
1674
1675 @var{signature of Ty Coon}, 1 April 1989
1676 Ty Coon, President of Vice
1677 @end group
1678 @end smallexample
1679
1680 This General Public License does not permit incorporating your program into
1681 proprietary programs. If your program is a subroutine library, you may
1682 consider it more useful to permit linking proprietary applications with the
1683 library. If this is what you want to do, use the GNU Lesser General
1684 Public License instead of this License.
1685
1686 @include doclicense.texi
1687 @include cmdargs.texi
1688 @include xresources.texi
1689
1690 @include anti.texi
1691 @include macos.texi
1692 @include msdog.texi
1693 @include gnu.texi
1694 @include glossary.texi
1695 @ifnottex
1696 @include ack.texi
1697 @end ifnottex
1698
1699 @c The Option Index is produced only in the on-line version,
1700 @c because the index entries related to command-line options
1701 @c tend to point to the same pages and all begin with a dash.
1702 @c This, and the need to keep the node links consistent, are
1703 @c the reasons for the funky @iftex/@ifnottex dance below.
1704 @c The Option Index is _not_ before Key Index, because that
1705 @c would require changes in the glossary.texi's @node line.
1706 @c It is not after Concept Index for similar reasons.
1707
1708 @iftex
1709 @node Key Index, Command Index, Glossary, Top
1710 @unnumbered Key (Character) Index
1711 @printindex ky
1712 @end iftex
1713
1714 @ifnottex
1715 @node Key Index, Option Index, Glossary, Top
1716 @unnumbered Key (Character) Index
1717 @printindex ky
1718
1719 @node Option Index, Command Index, Key Index, Top
1720 @unnumbered Command-Line Options Index
1721 @printindex op
1722
1723 @node Command Index, Variable Index, Option Index, Top
1724 @unnumbered Command and Function Index
1725 @printindex fn
1726 @end ifnottex
1727
1728 @iftex
1729 @node Command Index, Variable Index, Key Index, Top
1730 @unnumbered Command and Function Index
1731 @printindex fn
1732 @end iftex
1733
1734 @node Variable Index, Concept Index, Command Index, Top
1735 @unnumbered Variable Index
1736 @printindex vr
1737
1738 @node Concept Index, Acknowledgments, Variable Index, Top
1739 @unnumbered Concept Index
1740 @printindex cp
1741
1742 @bye
1743
1744 @ignore
1745 arch-tag: ed48740a-410b-46ea-9387-c9a9252a3392
1746 @end ignore