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