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