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