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