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