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