1 \input texinfo @c -*- coding: utf-8 -*-
3 @setfilename ../../info/emacs
4 @settitle GNU Emacs Manual
6 @c The edition number appears in more than one place in this file
7 @c I don't really know what it means...
8 @c For example, it has said "Sixteenth" since sometime in the Emacs 22
9 @c series, all through 23, and into 24. So it is not very useful IMO,
10 @c and offers nothing that EMACSVER does not. I guess it relates
11 @c mainly to the published book sold by the FSF. Hence no longer
12 @c bother including it except iftex. Really, I think it should not be
13 @c here at all (since anyone can make a pdf version), but should just
14 @c be something added by the FSF during the publishing process.
15 @c Also, the lispref uses a float (3.0), whereas this uses an ordinal,
16 @c so the format is not even consistent.
17 @set EDITION Seventeenth
18 @include emacsver.texi
22 This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},@*
25 This is the @cite{GNU Emacs Manual},
27 updated for Emacs version @value{EMACSVER}.
29 Copyright @copyright{} 1985--1987, 1993--2013 Free Software Foundation, Inc.
32 Permission is granted to copy, distribute and/or modify this document
33 under the terms of the GNU Free Documentation License, Version 1.3 or
34 any later version published by the Free Software Foundation; with the
35 Invariant Sections being ``The GNU Manifesto,'' ``Distribution'' and
36 ``GNU GENERAL PUBLIC LICENSE,'' with the Front-Cover texts being ``A GNU
37 Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the
38 license is included in the section entitled ``GNU Free Documentation
41 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
42 modify this GNU manual. Buying copies from the FSF supports it in
43 developing GNU and promoting software freedom.''
47 @documentencoding UTF-8
51 * Emacs: (emacs). The extensible self-documenting text editor.
54 @c in general, keep the following line commented out, unless doing a
55 @c copy of this manual that will be published. The manual should go
56 @c onto the distribution in the full, 8.5 x 11" size.
63 @c per rms and peterb, use 10pt fonts for the main text, mostly to
64 @c save on paper cost.
65 @c Do this inside @tex for now, so current makeinfo does not complain.
70 \global\hbadness=6666 % don't worry about not-too-underfull boxes
79 @shorttitlepage GNU Emacs Manual
84 @center @titlefont{GNU Emacs Manual}
86 @center @value{EDITION} Edition, Updated for Emacs Version @value{EMACSVER}.
88 @center Richard Stallman et al.
90 @vskip 0pt plus 1filll
94 Published by the Free Software Foundation @*
95 51 Franklin Street, Fifth Floor @*
96 Boston, MA 02110-1301 USA @*
97 ISBN 978-0-9831592-4-7
100 Cover art by Etienne Suvasa; cover design by Matt Lee.
111 @top The Emacs Editor
113 Emacs is the extensible, customizable, self-documenting real-time
114 display editor. This manual describes how to edit with Emacs and
115 some of the ways to customize it; it corresponds to GNU Emacs version
120 The homepage for GNU Emacs is at
121 <a href="/software/emacs/">http://www.gnu.org/software/emacs/</a>.<br>
122 To view this manual in other formats, click
123 <a href="/software/emacs/manual/emacs.html">here</a>.<br>
124 You can also purchase a printed copy from the
125 <a href="http://shop.fsf.org/product/emacs-manual/">FSF store</a>.
130 If you are reading this in Emacs, type @kbd{h} to read a basic
131 introduction to the Info documentation system.
134 For information on extending Emacs, see @ref{Top, Emacs Lisp,, elisp, The
135 Emacs Lisp Reference Manual}.
140 @c Note that the TeX version generates its own TOC, so the ifnottex's
141 @c here are not really necessary.
143 * Distrib:: How to get the latest Emacs distribution.
144 * Intro:: An introduction to Emacs concepts.
146 Important General Concepts
147 * Screen:: How to interpret what you see on the screen.
148 * User Input:: Kinds of input events (characters, buttons,
150 * Keys:: Key sequences: what you type to request one
152 * Commands:: Named functions run by key sequences to do editing.
153 * Entering Emacs:: Starting Emacs from the shell.
154 * Exiting:: Stopping or killing Emacs.
156 Fundamental Editing Commands
157 * Basic:: The most basic editing commands.
158 * Minibuffer:: Entering arguments that are prompted for.
159 * M-x:: Invoking commands by their names.
160 * Help:: Commands for asking Emacs about its commands.
162 Important Text-Changing Commands
163 * Mark:: The mark: how to delimit a "region" of text.
164 * Killing:: Killing (cutting) and yanking (copying) text.
165 * Registers:: Saving a text string or a location in the buffer.
166 * Display:: Controlling what text is displayed.
167 * Search:: Finding or replacing occurrences of a string.
168 * Fixit:: Commands especially useful for fixing typos.
169 * Keyboard Macros:: Recording a sequence of keystrokes to be replayed.
171 Major Structures of Emacs
172 * Files:: All about handling files.
173 * Buffers:: Multiple buffers; editing several files at once.
174 * Windows:: Viewing multiple pieces of text in one frame.
175 * Frames:: Using multiple "windows" on your display.
176 * International:: Using non-@acronym{ASCII} character sets.
179 * Modes:: Major and minor modes alter Emacs's basic behavior.
180 * Indentation:: Editing the white space at the beginnings of lines.
181 * Text:: Commands and modes for editing human languages.
182 * Programs:: Commands and modes for editing programs.
183 * Building:: Compiling, running and debugging programs.
184 * Maintaining:: Features for maintaining large programs.
185 * Abbrevs:: Defining text abbreviations to reduce typing.
186 * Dired:: Directory and file manager.
187 * Calendar/Diary:: Calendar and diary facilities.
188 * Sending Mail:: Sending mail in Emacs.
189 * Rmail:: Reading mail in Emacs.
190 * Gnus:: A flexible mail and news reader.
191 * Document View:: Viewing PDF, PS and DVI files.
192 * Shell:: Executing shell commands from Emacs.
193 * Emacs Server:: Using Emacs as an editing server.
194 * Printing:: Printing hardcopies of buffers or regions.
195 * Sorting:: Sorting lines, paragraphs or pages within Emacs.
197 * Picture Mode:: Editing pictures made up of text characters.
199 * Editing Binary Files:: Editing binary files with Hexl mode.
200 * Saving Emacs Sessions:: Saving Emacs state from one session to the next.
201 * Recursive Edit:: Performing edits while "within another command".
202 * Emulation:: Emulating some other editors with Emacs.
203 * Hyperlinking:: Following links in buffers.
204 * Amusements:: Various games and hacks.
205 * Packages:: Installing additional features.
206 * Customization:: Modifying the behavior of Emacs.
208 Recovery from Problems
209 * Quitting:: Quitting and aborting.
210 * Lossage:: What to do if Emacs is hung or malfunctioning.
211 * Bugs:: How and when to report a bug.
212 * Contributing:: How to contribute improvements to Emacs.
213 * Service:: How to get help for your own Emacs needs.
216 * Copying:: The GNU General Public License gives you permission
217 to redistribute GNU Emacs on certain terms;
218 it also explains that there is no warranty.
219 * GNU Free Documentation License:: The license for this documentation.
220 * Emacs Invocation:: Hairy startup options.
221 * X Resources:: X resources for customizing Emacs.
222 * Antinews:: Information about Emacs version 23.
223 * Mac OS / GNUstep:: Using Emacs under Mac OS and GNUstep.
224 * Microsoft Windows:: Using Emacs on Microsoft Windows and MS-DOS.
225 * Manifesto:: What's GNU? Gnu's Not Unix!
227 * Glossary:: Terms used in this manual.
229 * Acknowledgments:: Major contributors to GNU Emacs.
232 Indexes (each index contains a large menu)
233 * Key Index:: An item for each standard Emacs key sequence.
234 * Option Index:: An item for every command-line option.
235 * Command Index:: An item for each command name.
236 * Variable Index:: An item for each documented variable.
237 * Concept Index:: An item for each concept.
239 @c Do NOT modify the following 3 lines! They must have this form to
240 @c be correctly identified by `texinfo-multiple-files-update'. In
241 @c particular, the detailed menu header line MUST be identical to the
242 @c value of `texinfo-master-menu-header'. See texnfo-upd.el.
245 --- The Detailed Node Listing ---
246 ---------------------------------
248 Here are some other nodes which are really subnodes of the ones
249 already listed, mentioned here so you can get to them in one step:
251 The Organization of the Screen
253 * Point:: The place in the text where editing commands operate.
254 * Echo Area:: Short messages appear at the bottom of the screen.
255 * Mode Line:: Interpreting the mode line.
256 * Menu Bar:: How to use the menu bar.
258 Basic Editing Commands
260 * Inserting Text:: Inserting text by simply typing it.
261 * Moving Point:: Moving the cursor to the place where you want to
263 * Erasing:: Deleting and killing text.
264 * Basic Undo:: Undoing recent changes in the text.
265 * Basic Files:: Visiting, creating, and saving files.
266 * Basic Help:: Asking what a character does.
267 * Blank Lines:: Making and deleting blank lines.
268 * Continuation Lines:: How Emacs displays lines too wide for the screen.
269 * Position Info:: What line, row, or column is point on?
270 * Arguments:: Numeric arguments for repeating a command N times.
271 * Repeating:: Repeating the previous command quickly.
275 * Basic Minibuffer:: Basic usage of the minibuffer.
276 * Minibuffer File:: Entering file names with the minibuffer.
277 * Minibuffer Edit:: How to edit in the minibuffer.
278 * Completion:: An abbreviation facility for minibuffer input.
279 * Minibuffer History:: Reusing recent minibuffer arguments.
280 * Repetition:: Re-executing commands that used the minibuffer.
281 * Passwords:: Entering passwords in the echo area.
282 * Yes or No Prompts:: Replying yes or no in the echo area.
286 * Completion Example:: Examples of using completion.
287 * Completion Commands:: A list of completion commands.
288 * Completion Exit:: Completion and minibuffer text submission.
289 * Completion Styles:: How completion matches are chosen.
290 * Completion Options:: Options for completion.
294 * Help Summary:: Brief list of all Help commands.
295 * Key Help:: Asking what a key does in Emacs.
296 * Name Help:: Asking about a command, variable or function name.
297 * Apropos:: Asking what pertains to a given topic.
298 * Help Mode:: Special features of Help mode and Help buffers.
299 * Package Keywords:: Finding Lisp libraries by keywords (topics).
300 * Language Help:: Help relating to international language support.
301 * Misc Help:: Other help commands.
302 * Help Files:: Commands to display auxiliary help files.
303 * Help Echo:: Help on active text and tooltips ("balloon help").
305 The Mark and the Region
307 * Setting Mark:: Commands to set the mark.
308 * Marking Objects:: Commands to put region around textual units.
309 * Using Region:: Summary of ways to operate on contents of the region.
310 * Mark Ring:: Previous mark positions saved so you can go back there.
311 * Global Mark Ring:: Previous mark positions in various buffers.
312 * Shift Selection:: Using shifted cursor motion keys.
313 * Disabled Transient Mark:: Leaving regions unhighlighted by default.
315 Killing and Moving Text
317 * Deletion and Killing:: Commands that remove text.
318 * Yanking:: Commands that insert text.
319 * Cut and Paste:: Clipboard and selections on graphical displays.
320 * Accumulating Text:: Other methods to add text to the buffer.
321 * Rectangles:: Operating on text in rectangular areas.
322 * CUA Bindings:: Using @kbd{C-x}/@kbd{C-c}/@kbd{C-v} to kill and yank.
326 * Deletion:: Commands for deleting small amounts of text and
328 * Killing by Lines:: How to kill entire lines of text at one time.
329 * Other Kill Commands:: Commands to kill large regions of text and
330 syntactic units such as words and sentences.
331 * Kill Options:: Options that affect killing.
335 * Kill Ring:: Where killed text is stored.
336 * Earlier Kills:: Yanking something killed some time ago.
337 * Appending Kills:: Several kills in a row all yank together.
339 "Cut and Paste" Operations on Graphical Displays
341 * Clipboard:: How Emacs uses the system clipboard.
342 * Primary Selection:: The temporarily selected text selection.
343 * Secondary Selection:: Cutting without altering point and mark.
347 * Position Registers:: Saving positions in registers.
348 * Text Registers:: Saving text in registers.
349 * Rectangle Registers:: Saving rectangles in registers.
350 * Configuration Registers:: Saving window configurations in registers.
351 * Number Registers:: Numbers in registers.
352 * File Registers:: File names in registers.
353 * Bookmarks:: Bookmarks are like registers, but persistent.
355 Controlling the Display
357 * Scrolling:: Commands to move text up and down in a window.
358 * Recentering:: A scroll command that centers the current line.
359 * Auto Scrolling:: Redisplay scrolls text automatically when needed.
360 * Horizontal Scrolling:: Moving text left and right in a window.
361 * Narrowing:: Restricting display and editing to a portion
363 * View Mode:: Viewing read-only buffers.
364 * Follow Mode:: Follow mode lets two windows scroll as one.
365 * Faces:: How to change the display style using faces.
366 * Colors:: Specifying colors for faces.
367 * Standard Faces:: The main predefined faces.
368 * Text Scale:: Increasing or decreasing text size in a buffer.
369 * Font Lock:: Minor mode for syntactic highlighting using faces.
370 * Highlight Interactively:: Tell Emacs what text to highlight.
371 * Fringes:: Enabling or disabling window fringes.
372 * Displaying Boundaries:: Displaying top and bottom of the buffer.
373 * Useless Whitespace:: Showing possibly spurious trailing whitespace.
374 * Selective Display:: Hiding lines with lots of indentation.
375 * Optional Mode Line:: Optional mode line display features.
376 * Text Display:: How text characters are normally displayed.
377 * Cursor Display:: Features for displaying the cursor.
378 * Line Truncation:: Truncating lines to fit the screen width instead
379 of continuing them to multiple screen lines.
380 * Visual Line Mode:: Word wrap and screen line-based editing.
381 * Display Custom:: Information on variables for customizing display.
383 Searching and Replacement
385 * Incremental Search:: Search happens as you type the string.
386 * Nonincremental Search:: Specify entire string and then search.
387 * Word Search:: Search for sequence of words.
388 * Symbol Search:: Search for a source code symbol.
389 * Regexp Search:: Search for match for a regexp.
390 * Regexps:: Syntax of regular expressions.
391 * Regexp Backslash:: Regular expression constructs starting with `\'.
392 * Regexp Example:: A complex regular expression explained.
393 * Search Case:: To ignore case while searching, or not.
394 * Replace:: Search, and replace some or all matches.
395 * Other Repeating Search:: Operating on all matches for some regexp.
399 * Basic Isearch:: Basic incremental search commands.
400 * Repeat Isearch:: Searching for the same string again.
401 * Error in Isearch:: When your string is not found.
402 * Special Isearch:: Special input in incremental search.
403 * Isearch Yank:: Commands that grab text into the search string
404 or else edit the search string.
405 * Not Exiting Isearch:: Prefix argument and scrolling commands.
406 * Isearch Minibuffer:: Incremental search of the minibuffer history.
410 * Unconditional Replace:: Replacing all matches for a string.
411 * Regexp Replace:: Replacing all matches for a regexp.
412 * Replacement and Case:: How replacements preserve case of letters.
413 * Query Replace:: How to use querying.
415 Commands for Fixing Typos
417 * Undo:: The Undo commands.
418 * Transpose:: Exchanging two characters, words, lines, lists...
419 * Fixing Case:: Correcting case of last word entered.
420 * Spelling:: Apply spelling checker to a word, or a whole file.
424 * Basic Keyboard Macro:: Defining and running keyboard macros.
425 * Keyboard Macro Ring:: Where previous keyboard macros are saved.
426 * Keyboard Macro Counter:: Inserting incrementing numbers in macros.
427 * Keyboard Macro Query:: Making keyboard macros do different things each
429 * Save Keyboard Macro:: Giving keyboard macros names; saving them in
431 * Edit Keyboard Macro:: Editing keyboard macros.
432 * Keyboard Macro Step-Edit:: Interactively executing and editing a keyboard
437 * File Names:: How to type and edit file-name arguments.
438 * Visiting:: Visiting a file prepares Emacs to edit the file.
439 * Saving:: Saving makes your changes permanent.
440 * Reverting:: Reverting cancels all the changes not saved.
442 * Autorevert:: Auto Reverting non-file buffers.
444 * Auto Save:: Auto Save periodically protects against loss of data.
445 * File Aliases:: Handling multiple names for one file.
446 * Directories:: Creating, deleting, and listing file directories.
447 * Comparing Files:: Finding where two files differ.
448 * Diff Mode:: Mode for editing file differences.
449 * Misc File Ops:: Other things you can do on files.
450 * Compressed Files:: Accessing compressed files.
451 * File Archives:: Operating on tar, zip, jar etc. archive files.
452 * Remote Files:: Accessing files on other machines.
453 * Quoted File Names:: Quoting special characters in file names.
454 * File Name Cache:: Completion against a list of files you often use.
455 * File Conveniences:: Convenience Features for Finding Files.
456 * Filesets:: Handling sets of files.
460 * Save Commands:: Commands for saving files.
461 * Backup:: How Emacs saves the old version of your file.
462 * Customize Save:: Customizing the saving of files.
463 * Interlocking:: How Emacs protects against simultaneous editing
464 of one file by two users.
465 * File Shadowing:: Copying files to "shadows" automatically.
466 * Time Stamps:: Emacs can update time stamps on saved files.
470 * Backup Names:: How backup files are named.
471 * Backup Deletion:: Emacs deletes excess numbered backups.
472 * Backup Copying:: Backups can be made by copying or renaming.
475 Auto Reverting Non-File Buffers
477 * Auto Reverting the Buffer Menu:: Auto Revert of the Buffer Menu.
478 * Auto Reverting Dired:: Auto Revert of Dired buffers.
479 * Supporting additional buffers:: How to add more Auto Revert support.
482 Auto-Saving: Protection Against Disasters
484 * Auto Save Files:: The file where auto-saved changes are
485 actually made until you save the file.
486 * Auto Save Control:: Controlling when and how often to auto-save.
487 * Recover:: Recovering text from auto-save files.
489 Using Multiple Buffers
491 * Select Buffer:: Creating a new buffer or reselecting an old one.
492 * List Buffers:: Getting a list of buffers that exist.
493 * Misc Buffer:: Renaming; changing read-onlyness; copying text.
494 * Kill Buffer:: Killing buffers you no longer need.
495 * Several Buffers:: How to go through the list of all buffers
496 and operate variously on several of them.
497 * Indirect Buffers:: An indirect buffer shares the text of another buffer.
498 * Buffer Convenience:: Convenience and customization features for
501 Convenience Features and Customization of Buffer Handling
503 * Uniquify:: Making buffer names unique with directory parts.
504 * Iswitchb:: Switching between buffers with substrings.
505 * Buffer Menus:: Configurable buffer menu.
509 * Basic Window:: Introduction to Emacs windows.
510 * Split Window:: New windows are made by splitting existing windows.
511 * Other Window:: Moving to another window or doing something to it.
512 * Pop Up Window:: Finding a file or buffer in another window.
513 * Change Window:: Deleting windows and changing their sizes.
514 * Displaying Buffers:: How Emacs picks a window for displaying a buffer.
515 * Window Convenience:: Convenience functions for window handling.
517 Displaying a Buffer in a Window
519 * Window Choice:: How @code{display-buffer} works.
521 Frames and Graphical Displays
523 * Mouse Commands:: Moving, cutting, and pasting, with the mouse.
524 * Word and Line Mouse:: Mouse commands for selecting whole words or lines.
525 * Mouse References:: Using the mouse to select an item from a list.
526 * Menu Mouse Clicks:: Mouse clicks that bring up menus.
527 * Mode Line Mouse:: Mouse clicks on the mode line.
528 * Creating Frames:: Creating additional Emacs frames with various contents.
529 * Frame Commands:: Iconifying, deleting, and switching frames.
530 * Fonts:: Changing the frame font.
531 * Speedbar:: How to make and use a speedbar frame.
532 * Multiple Displays:: How one Emacs instance can talk to several displays.
533 * Frame Parameters:: Changing the colors and other modes of frames.
534 * Scroll Bars:: How to enable and disable scroll bars; how to use them.
535 * Drag and Drop:: Using drag and drop to open files and insert text.
536 * Menu Bars:: Enabling and disabling the menu bar.
537 * Tool Bars:: Enabling and disabling the tool bar.
538 * Dialog Boxes:: Controlling use of dialog boxes.
539 * Tooltips:: Displaying information at the current mouse position.
540 * Mouse Avoidance:: Preventing the mouse pointer from obscuring text.
541 * Non-Window Terminals:: Multiple frames on terminals that show only one.
542 * Text-Only Mouse:: Using the mouse in text terminals.
544 International Character Set Support
546 * International Chars:: Basic concepts of multibyte characters.
547 * Language Environments:: Setting things up for the language you use.
548 * Input Methods:: Entering text characters not on your keyboard.
549 * Select Input Method:: Specifying your choice of input methods.
550 * Coding Systems:: Character set conversion when you read and
551 write files, and so on.
552 * Recognize Coding:: How Emacs figures out which conversion to use.
553 * Specify Coding:: Specifying a file's coding system explicitly.
554 * Output Coding:: Choosing coding systems for output.
555 * Text Coding:: Choosing conversion to use for file text.
556 * Communication Coding:: Coding systems for interprocess communication.
557 * File Name Coding:: Coding systems for file @emph{names}.
558 * Terminal Coding:: Specifying coding systems for converting
559 terminal input and output.
560 * Fontsets:: Fontsets are collections of fonts
561 that cover the whole spectrum of characters.
562 * Defining Fontsets:: Defining a new fontset.
563 * Modifying Fontsets:: Modifying an existing fontset.
564 * Undisplayable Characters::When characters don't display.
565 * Unibyte Mode:: You can pick one European character set
566 to use without multibyte characters.
567 * Charsets:: How Emacs groups its internal character codes.
568 * Bidirectional Editing:: Support for right-to-left scripts.
570 Major and Minor Modes
572 * Major Modes:: Text mode vs. Lisp mode vs. C mode...
573 * Minor Modes:: Each minor mode is a feature you can turn on
574 independently of any others.
575 * Choosing Modes:: How modes are chosen when visiting files.
579 * Indentation Commands:: More commands for performing indentation.
580 * Tab Stops:: Stop points for indentation in Text modes.
581 * Just Spaces:: Using only space characters for indentation.
582 * Indent Convenience:: Optional indentation features.
584 Commands for Human Languages
586 * Words:: Moving over and killing words.
587 * Sentences:: Moving over and killing sentences.
588 * Paragraphs:: Moving over paragraphs.
589 * Pages:: Moving over pages.
590 * Filling:: Filling or justifying text.
591 * Case:: Changing the case of text.
592 * Text Mode:: The major modes for editing text files.
593 * Outline Mode:: Editing outlines.
594 * Org Mode:: The Emacs organizer.
595 * TeX Mode:: Editing TeX and LaTeX files.
596 * HTML Mode:: Editing HTML and SGML files.
597 * Nroff Mode:: Editing input to the nroff formatter.
598 * Enriched Text:: Editing text "enriched" with fonts, colors, etc.
599 * Text Based Tables:: Commands for editing text-based tables.
600 * Two-Column:: Splitting text columns into separate windows.
604 * Auto Fill:: Auto Fill mode breaks long lines automatically.
605 * Fill Commands:: Commands to refill paragraphs and center lines.
606 * Fill Prefix:: Filling paragraphs that are indented
607 or in a comment, etc.
608 * Adaptive Fill:: How Emacs can determine the fill prefix automatically.
612 * Outline Format:: What the text of an outline looks like.
613 * Outline Motion:: Special commands for moving through outlines.
614 * Outline Visibility:: Commands to control what is visible.
615 * Outline Views:: Outlines and multiple views.
616 * Foldout:: Folding means zooming in on outlines.
620 * Org Organizer:: Managing TODO lists and agendas.
621 * Org Authoring:: Exporting Org buffers to various formats.
625 * TeX Editing:: Special commands for editing in TeX mode.
626 * LaTeX Editing:: Additional commands for LaTeX input files.
627 * TeX Print:: Commands for printing part of a file with TeX.
628 * TeX Misc:: Customization of TeX mode, and related features.
632 * Enriched Mode:: Entering and exiting Enriched mode.
633 * Hard and Soft Newlines:: There are two different kinds of newlines.
634 * Editing Format Info:: How to edit text properties.
635 * Enriched Faces:: Bold, italic, underline, etc.
636 * Enriched Indentation:: Changing the left and right margins.
637 * Enriched Justification:: Centering, setting text flush with the
638 left or right margin, etc.
639 * Enriched Properties:: The "special" text properties submenu.
641 @c The automatic texinfo menu update inserts some duplicate items here
642 @c (faces, colors, indentation, justification, properties), because
643 @c they are listed in two menus. But we already have them above, no
644 @c need to list them twice.
646 Editing Text-based Tables
648 * Table Definition:: What is a text based table.
649 * Table Creation:: How to create a table.
650 * Table Recognition:: How to activate and deactivate tables.
651 * Cell Commands:: Cell-oriented commands in a table.
652 * Cell Justification:: Justifying cell contents.
653 * Table Rows and Columns:: Inserting and deleting rows and columns.
654 * Table Conversion:: Converting between plain text and tables.
655 * Table Misc:: Table miscellany.
659 * Program Modes:: Major modes for editing programs.
660 * Defuns:: Commands to operate on major top-level parts
662 * Program Indent:: Adjusting indentation to show the nesting.
663 * Parentheses:: Commands that operate on parentheses.
664 * Comments:: Inserting, killing, and aligning comments.
665 * Documentation:: Getting documentation of functions you plan to call.
666 * Hideshow:: Displaying blocks selectively.
667 * Symbol Completion:: Completion on symbol names of your program or language.
668 * Glasses:: Making identifiersLikeThis more readable.
669 * Semantic:: Suite of editing tools based on source code parsing.
670 * Misc for Programs:: Other Emacs features useful for editing programs.
671 * C Modes:: Special commands of C, C++, Objective-C,
672 Java, IDL, Pike and AWK modes.
673 * Asm Mode:: Asm mode and its special features.
675 * Fortran:: Fortran mode and its special features.
678 Top-Level Definitions, or Defuns
680 * Left Margin Paren:: An open-paren or similar opening delimiter
681 starts a defun if it is at the left margin.
682 * Moving by Defuns:: Commands to move over or mark a major definition.
683 * Imenu:: Making buffer indexes as menus.
684 * Which Function:: Which Function mode shows which function you are in.
686 Indentation for Programs
688 * Basic Indent:: Indenting a single line.
689 * Multi-line Indent:: Commands to reindent many lines at once.
690 * Lisp Indent:: Specifying how each Lisp function should be indented.
691 * C Indent:: Extra features for indenting C and related modes.
692 * Custom C Indent:: Controlling indentation style for C and related modes.
694 Commands for Editing with Parentheses
696 * Expressions:: Expressions with balanced parentheses.
697 * Moving by Parens:: Commands for moving up, down and across
698 in the structure of parentheses.
699 * Matching:: Insertion of a close-delimiter flashes matching open.
701 Manipulating Comments
703 * Comment Commands:: Inserting, killing, and aligning comments.
704 * Multi-Line Comments:: Commands for adding and editing multi-line comments.
705 * Options for Comments::Customizing the comment features.
709 * Info Lookup:: Looking up library functions and commands in Info files.
710 * Man Page:: Looking up man pages of library functions and commands.
711 * Lisp Doc:: Looking up Emacs Lisp functions, etc.
715 * Motion in C:: Commands to move by C statements, etc.
716 * Electric C:: Colon and other chars can automatically reindent.
717 * Hungry Delete:: A more powerful DEL command.
718 * Other C Commands:: Filling comments, viewing expansion of macros,
719 and other neat features.
724 * Fortran Motion:: Moving point by statements or subprograms.
725 * Fortran Indent:: Indentation commands for Fortran.
726 * Fortran Comments:: Inserting and aligning comments.
727 * Fortran Autofill:: Auto fill support for Fortran.
728 * Fortran Columns:: Measuring columns for valid Fortran.
729 * Fortran Abbrev:: Built-in abbrevs for Fortran keywords.
733 * ForIndent Commands:: Commands for indenting and filling Fortran.
734 * ForIndent Cont:: How continuation lines indent.
735 * ForIndent Num:: How line numbers auto-indent.
736 * ForIndent Conv:: Conventions you must obey to avoid trouble.
737 * ForIndent Vars:: Variables controlling Fortran indent style.
740 Compiling and Testing Programs
742 * Compilation:: Compiling programs in languages other
743 than Lisp (C, Pascal, etc.).
744 * Compilation Mode:: The mode for visiting compiler errors.
745 * Compilation Shell:: Customizing your shell properly
746 for use in the compilation buffer.
747 * Grep Searching:: Searching with grep.
748 * Flymake:: Finding syntax errors on the fly.
749 * Debuggers:: Running symbolic debuggers for non-Lisp programs.
750 * Executing Lisp:: Various modes for editing Lisp programs,
751 with different facilities for running
753 * Lisp Libraries:: How Lisp programs are loaded into Emacs.
754 * Lisp Eval:: Executing a single Lisp expression in Emacs.
755 * Lisp Interaction:: Executing Lisp in an Emacs buffer.
756 * External Lisp:: Communicating through Emacs with a separate Lisp.
758 Running Debuggers Under Emacs
760 * Starting GUD:: How to start a debugger subprocess.
761 * Debugger Operation:: Connection between the debugger and source buffers.
762 * Commands of GUD:: Key bindings for common commands.
763 * GUD Customization:: Defining your own commands for GUD.
764 * GDB Graphical Interface:: An enhanced mode that uses GDB features to
765 implement a graphical debugging environment.
767 GDB Graphical Interface
769 * GDB User Interface Layout:: Control the number of displayed buffers.
770 * Source Buffers:: Use the mouse in the fringe/margin to
771 control your program.
772 * Breakpoints Buffer:: A breakpoint control panel.
773 * Threads Buffer:: Displays your threads.
774 * Stack Buffer:: Select a frame from the call stack.
775 * Other GDB Buffers:: Other buffers for controlling the GDB state.
776 * Watch Expressions:: Monitor variable values in the speedbar.
777 * Multithreaded Debugging:: Debugging programs with several threads.
779 Maintaining Large Programs
781 * Version Control:: Using version control systems.
782 * Change Log:: Maintaining a change history for your program.
783 * Tags:: Go directly to any function in your program in one
784 command. Tags remembers which file it is in.
785 * EDE:: An integrated development environment for Emacs.
787 * Emerge:: A convenient way of merging two versions of a program.
792 * Introduction to VC:: How version control works in general.
793 * VC Mode Line:: How the mode line shows version control status.
794 * Basic VC Editing:: How to edit a file under version control.
795 * Log Buffer:: Features available in log entry buffers.
796 * Registering:: Putting a file under version control.
797 * Old Revisions:: Examining and comparing old versions.
798 * VC Change Log:: Viewing the VC Change Log.
799 * VC Undo:: Canceling changes before or after committing.
800 * VC Ignore:: Ignore files under version control system.
801 * VC Directory Mode:: Listing files managed by version control.
802 * Branches:: Multiple lines of development.
804 * Miscellaneous VC:: Various other commands and features of VC.
805 * Customizing VC:: Variables that change VC's behavior.
808 Introduction to Version Control
810 * Why Version Control?:: Understanding the problems it addresses.
811 * Version Control Systems:: Supported version control back-end systems.
812 * VCS Concepts:: Words and concepts related to version control.
813 * VCS Merging:: How file conflicts are handled.
814 * VCS Changesets:: How changes are grouped.
815 * VCS Repositories:: Where version control repositories are stored.
816 * Types of Log File:: The VCS log in contrast to the ChangeLog.
818 Basic Editing under Version Control
820 * VC With A Merging VCS:: Without locking: default mode for CVS.
821 * VC With A Locking VCS:: RCS in its default mode, SCCS, and optionally CVS.
822 * Advanced C-x v v:: Advanced features available with a prefix argument.
826 * VC Directory Buffer:: What the buffer looks like and means.
827 * VC Directory Commands:: Commands to use in a VC directory buffer.
829 Version Control Branches
831 * Switching Branches:: How to get to another existing branch.
832 * VC Pull:: Updating the contents of a branch.
833 * Merging:: Transferring changes between branches.
834 * Creating Branches:: How to start a new branch.
837 Miscellaneous Commands and Features of VC
839 * Change Logs and VC:: Generating a change log file from log entries.
840 * VC Delete/Rename:: Deleting and renaming version-controlled files.
841 * Revision Tags:: Symbolic names for revisions.
842 * Version Headers:: Inserting version control headers into working files.
846 * General VC Options:: Options that apply to multiple back ends.
847 * RCS and SCCS:: Options for RCS and SCCS.
848 * CVS Options:: Options for CVS.
853 * Change Log Commands:: Commands for editing change log files.
854 * Format of ChangeLog:: What the change log file looks like.
858 * Tag Syntax:: Tag syntax for various types of code and text files.
859 * Create Tags Table:: Creating a tags table with @command{etags}.
860 * Etags Regexps:: Create arbitrary tags using regular expressions.
861 * Select Tags Table:: How to visit a tags table.
862 * Find Tag:: Commands to find the definition of a specific tag.
863 * Tags Search:: Using a tags table for searching and replacing.
864 * List Tags:: Using tags for completion, and listing them.
867 Merging Files with Emerge
869 * Overview of Emerge:: How to start Emerge. Basic concepts.
870 * Submodes of Emerge:: Fast mode vs. Edit mode.
871 Skip Prefers mode and Auto Advance mode.
872 * State of Difference:: You do the merge by specifying state A or B
874 * Merge Commands:: Commands for selecting a difference,
875 changing states of differences, etc.
876 * Exiting Emerge:: What to do when you've finished the merge.
877 * Combining in Emerge:: How to keep both alternatives for a difference.
878 * Fine Points of Emerge:: Miscellaneous issues.
883 * Abbrev Concepts:: Fundamentals of defined abbrevs.
884 * Defining Abbrevs:: Defining an abbrev, so it will expand when typed.
885 * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
886 * Editing Abbrevs:: Viewing or editing the entire list of defined abbrevs.
887 * Saving Abbrevs:: Saving the entire list of abbrevs for another session.
888 * Dynamic Abbrevs:: Abbreviations for words already in the buffer.
889 * Dabbrev Customization:: What is a word, for dynamic abbrevs. Case handling.
894 * Basic Picture:: Basic concepts and simple commands of Picture Mode.
895 * Insert in Picture:: Controlling direction of cursor motion
896 after "self-inserting" characters.
897 * Tabs in Picture:: Various features for tab stops and indentation.
898 * Rectangles in Picture:: Clearing and superimposing rectangles.
901 Dired, the Directory Editor
903 * Dired Enter:: How to invoke Dired.
904 * Dired Navigation:: Special motion commands in the Dired buffer.
905 * Dired Deletion:: Deleting files with Dired.
906 * Flagging Many Files:: Flagging files based on their names.
907 * Dired Visiting:: Other file operations through Dired.
908 * Marks vs Flags:: Flagging for deletion vs marking.
909 * Operating on Files:: How to copy, rename, print, compress, etc.
910 either one file or several files.
911 * Shell Commands in Dired:: Running a shell command on the marked files.
912 * Transforming File Names:: Using patterns to rename multiple files.
913 * Comparison in Dired:: Running @code{diff} by way of Dired.
914 * Subdirectories in Dired:: Adding subdirectories to the Dired buffer.
916 * Subdir Switches:: Subdirectory switches in Dired.
918 * Subdirectory Motion:: Moving across subdirectories, and up and down.
919 * Hiding Subdirectories:: Making subdirectories visible or invisible.
920 * Dired Updating:: Discarding lines for files of no interest.
921 * Dired and Find:: Using @code{find} to choose the files for Dired.
922 * Wdired:: Operating on files by editing the Dired buffer.
923 * Image-Dired:: Viewing image thumbnails in Dired.
924 * Misc Dired Features:: Various other features.
926 The Calendar and the Diary
928 * Calendar Motion:: Moving through the calendar; selecting a date.
929 * Scroll Calendar:: Bringing earlier or later months onto the screen.
930 * Counting Days:: How many days are there between two dates?
931 * General Calendar:: Exiting or recomputing the calendar.
932 * Writing Calendar Files:: Writing calendars to files of various formats.
933 * Holidays:: Displaying dates of holidays.
934 * Sunrise/Sunset:: Displaying local times of sunrise and sunset.
935 * Lunar Phases:: Displaying phases of the moon.
936 * Other Calendars:: Converting dates to other calendar systems.
937 * Diary:: Displaying events from your diary.
938 * Appointments:: Reminders when it's time to do something.
939 * Importing Diary:: Converting diary events to/from other formats.
940 * Daylight Saving:: How to specify when daylight saving time is active.
941 * Time Intervals:: Keeping track of time intervals.
943 * Advanced Calendar/Diary Usage:: Advanced Calendar/Diary customization.
946 Movement in the Calendar
948 * Calendar Unit Motion:: Moving by days, weeks, months, and years.
949 * Move to Beginning or End:: Moving to start/end of weeks, months, and years.
950 * Specified Dates:: Moving to the current date or another
953 Conversion To and From Other Calendars
955 * Calendar Systems:: The calendars Emacs understands
956 (aside from Gregorian).
957 * To Other Calendar:: Converting the selected date to various calendars.
958 * From Other Calendar:: Moving to a date specified in another calendar.
962 * Displaying the Diary:: Viewing diary entries and associated calendar dates.
963 * Format of Diary File:: Entering events in your diary.
964 * Date Formats:: Various ways you can specify dates.
965 * Adding to Diary:: Commands to create diary entries.
966 * Special Diary Entries:: Anniversaries, blocks of dates, cyclic entries, etc.
969 More advanced features of the Calendar and Diary
971 * Calendar Customizing:: Calendar layout and hooks.
972 * Holiday Customizing:: Defining your own holidays.
973 * Mayan Calendar:: Moving to a date specified in a Mayan calendar.
974 * Date Display Format:: Changing the format.
975 * Time Display Format:: Changing the format.
976 * Diary Customizing:: Defaults you can set.
977 * Non-Gregorian Diary:: Diary entries based on other calendars.
978 * Diary Display:: A choice of ways to display the diary.
979 * Fancy Diary Display:: Sorting diary entries, using included diary files.
980 * Sexp Diary Entries:: More flexible diary entries.
985 * Mail Format:: Format of a mail message.
986 * Mail Headers:: Details of some standard mail header fields.
987 * Mail Aliases:: Abbreviating and grouping mail addresses.
988 * Mail Commands:: Special commands for editing mail being composed.
989 * Mail Signature:: Adding a signature to every message.
990 * Mail Amusements:: Distracting the NSA; adding fortune messages.
991 * Mail Methods:: Using alternative mail-composition methods.
995 * Mail Sending:: Commands to send the message.
996 * Header Editing:: Commands to move to header fields and edit them.
997 * Citing Mail:: Quoting a message you are replying to.
998 * Mail Misc:: Attachments, spell checking, etc.
1000 Reading Mail with Rmail
1002 * Rmail Basics:: Basic concepts of Rmail, and simple use.
1003 * Rmail Scrolling:: Scrolling through a message.
1004 * Rmail Motion:: Moving to another message.
1005 * Rmail Deletion:: Deleting and expunging messages.
1006 * Rmail Inbox:: How mail gets into the Rmail file.
1007 * Rmail Files:: Using multiple Rmail files.
1008 * Rmail Output:: Copying message out to files.
1009 * Rmail Labels:: Classifying messages by labeling them.
1010 * Rmail Attributes:: Certain standard labels, called attributes.
1011 * Rmail Reply:: Sending replies to messages you are viewing.
1012 * Rmail Summary:: Summaries show brief info on many messages.
1013 * Rmail Sorting:: Sorting messages in Rmail.
1014 * Rmail Display:: How Rmail displays a message; customization.
1015 * Rmail Coding:: How Rmail handles decoding character sets.
1016 * Rmail Editing:: Editing message text and headers in Rmail.
1017 * Rmail Digest:: Extracting the messages from a digest message.
1018 * Rmail Rot13:: Reading messages encoded in the rot13 code.
1019 * Movemail:: More details of fetching new mail.
1020 * Remote Mailboxes:: Retrieving mail from remote mailboxes.
1021 * Other Mailbox Formats:: Retrieving mail from local mailboxes in
1026 * Rmail Make Summary:: Making various sorts of summaries.
1027 * Rmail Summary Edit:: Manipulating messages from the summary.
1031 * Buffers of Gnus:: The group, summary, and article buffers.
1032 * Gnus Startup:: What you should know about starting Gnus.
1033 * Gnus Group Buffer:: A short description of Gnus group commands.
1034 * Gnus Summary Buffer:: A short description of Gnus summary commands.
1038 * DocView Navigation:: Navigating DocView buffers.
1039 * DocView Searching:: Searching inside documents.
1040 * DocView Slicing:: Specifying which part of a page is displayed.
1041 * DocView Conversion:: Influencing and triggering conversion.
1043 Running Shell Commands from Emacs
1045 * Single Shell:: How to run one shell command and return.
1046 * Interactive Shell:: Permanent shell taking input via Emacs.
1047 * Shell Mode:: Special Emacs commands used with permanent shell.
1048 * Shell Prompts:: Two ways to recognize shell prompts.
1049 * Shell History:: Repeating previous commands in a shell buffer.
1050 * Directory Tracking:: Keeping track when the subshell changes directory.
1051 * Shell Options:: Options for customizing Shell mode.
1052 * Terminal emulator:: An Emacs window as a terminal emulator.
1053 * Term Mode:: Special Emacs commands used in Term mode.
1054 * Remote Host:: Connecting to another computer.
1055 * Serial Terminal:: Connecting to a serial port.
1057 Shell Command History
1059 * Shell Ring:: Fetching commands from the history list.
1060 * Shell History Copying::Moving to a command and then copying it.
1061 * History References:: Expanding @samp{!}-style history references.
1063 Using Emacs as a Server
1065 * Invoking emacsclient:: Connecting to the Emacs server.
1066 * emacsclient Options:: Emacs client startup options.
1068 Printing Hard Copies
1070 * PostScript:: Printing buffers or regions as PostScript.
1071 * PostScript Variables:: Customizing the PostScript printing commands.
1072 * Printing Package:: An optional advanced printing interface.
1074 Hyperlinking and Navigation Features
1076 * Browse-URL:: Following URLs.
1077 * Goto Address mode:: Activating URLs.
1078 * FFAP:: Finding files etc. at point.
1082 * Package Menu:: Buffer for viewing and managing packages.
1083 * Package Installation:: Options for package installation.
1084 * Package Files:: Where packages are installed.
1088 * Easy Customization:: Convenient way to browse and change settings.
1089 * Variables:: Many Emacs commands examine Emacs variables
1090 to decide what to do; by setting variables,
1091 you can control their functioning.
1092 * Key Bindings:: The keymaps say what command each key runs.
1093 By changing them, you can "redefine" keys.
1094 * Init File:: How to write common customizations in the
1095 initialization file.
1097 Easy Customization Interface
1099 * Customization Groups:: How settings are classified.
1100 * Browsing Custom:: Browsing and searching for settings.
1101 * Changing a Variable:: How to edit an option's value and set the option.
1102 * Saving Customizations:: Saving customizations for future Emacs sessions.
1103 * Face Customization:: How to edit the attributes of a face.
1104 * Specific Customization:: Customizing specific settings or groups.
1105 * Custom Themes:: Collections of customization settings.
1106 * Creating Custom Themes:: How to create a new custom theme.
1110 * Examining:: Examining or setting one variable's value.
1111 * Hooks:: Hook variables let you specify programs for parts
1112 of Emacs to run on particular occasions.
1113 * Locals:: Per-buffer values of variables.
1114 * File Variables:: How files can specify variable values.
1115 * Directory Variables:: How variable values can be specified by directory.
1117 Local Variables in Files
1119 * Specifying File Variables:: Specifying file local variables.
1120 * Safe File Variables:: Making sure file local variables are safe.
1122 Customizing Key Bindings
1124 * Keymaps:: Generalities. The global keymap.
1125 * Prefix Keymaps:: Keymaps for prefix keys.
1126 * Local Keymaps:: Major and minor modes have their own keymaps.
1127 * Minibuffer Maps:: The minibuffer uses its own local keymaps.
1128 * Rebinding:: How to redefine one key's meaning conveniently.
1129 * Init Rebinding:: Rebinding keys with your initialization file.
1130 * Modifier Keys:: Using modifier keys in key bindings.
1131 * Function Keys:: Rebinding terminal function keys.
1132 * Named ASCII Chars:: Distinguishing @key{TAB} from @kbd{C-i}, and so on.
1133 * Mouse Buttons:: Rebinding mouse buttons in Emacs.
1134 * Disabling:: Disabling a command means confirmation is required
1135 before it can be executed. This is done to protect
1136 beginners from surprises.
1138 The Emacs Initialization File
1140 * Init Syntax:: Syntax of constants in Emacs Lisp.
1141 * Init Examples:: How to do some things with an init file.
1142 * Terminal Init:: Each terminal type can have an init file.
1143 * Find Init:: How Emacs finds the init file.
1144 * Init Non-ASCII:: Using non-@acronym{ASCII} characters in an init file.
1146 Dealing with Emacs Trouble
1148 * DEL Does Not Delete:: What to do if @key{DEL} doesn't delete.
1149 * Stuck Recursive:: `[...]' in mode line around the parentheses.
1150 * Screen Garbled:: Garbage on the screen.
1151 * Text Garbled:: Garbage in the text.
1152 * Memory Full:: How to cope when you run out of memory.
1153 * Crashing:: What Emacs does when it crashes.
1154 * After a Crash:: Recovering editing in an Emacs session that crashed.
1155 * Emergency Escape:: What to do if Emacs stops responding.
1159 * Known Problems:: How to read about known problems and bugs.
1160 * Bug Criteria:: Have you really found a bug?
1161 * Understanding Bug Reporting:: How to report a bug effectively.
1162 * Checklist:: Steps to follow for a good bug report.
1163 * Sending Patches:: How to send a patch for GNU Emacs.
1165 Command Line Arguments for Emacs Invocation
1167 * Action Arguments:: Arguments to visit files, load libraries,
1169 * Initial Options:: Arguments that take effect while starting Emacs.
1170 * Command Example:: Examples of using command line arguments.
1171 * Environment:: Environment variables that Emacs uses.
1172 * Display X:: Changing the default display and using remote login.
1173 * Font X:: Choosing a font for text, under X.
1174 * Colors X:: Choosing display colors.
1175 * Window Size X:: Start-up window size, under X.
1176 * Borders X:: Internal and external borders, under X.
1177 * Title X:: Specifying the initial frame's title.
1178 * Icons X:: Choosing what sort of icon to use, under X.
1179 * Misc X:: Other display options.
1181 Environment Variables
1183 * General Variables:: Environment variables that all versions of Emacs use.
1184 * Misc Variables:: Certain system-specific variables.
1185 * MS-Windows Registry:: An alternative to the environment on MS-Windows.
1187 X Options and Resources
1189 * Resources:: Using X resources with Emacs (in general).
1190 * Table of Resources:: Table of specific X resources that affect Emacs.
1191 * Lucid Resources:: X resources for Lucid menus.
1192 * LessTif Resources:: X resources for LessTif and Motif menus.
1193 * GTK resources:: Resources for GTK widgets.
1197 * GTK Resource Basics:: Basic usage of GTK+ resources.
1198 * GTK Widget Names:: How GTK+ widgets are named.
1199 * GTK Names in Emacs:: GTK widgets used by Emacs.
1200 * GTK styles:: What can be customized in a GTK widget.
1202 Emacs and Mac OS / GNUstep
1204 * Mac / GNUstep Basics:: Basic Emacs usage under GNUstep or Mac OS.
1205 * Mac / GNUstep Customization:: Customizations under GNUstep or Mac OS.
1206 * Mac / GNUstep Events:: How window system events are handled.
1207 * GNUstep Support:: Details on status of GNUstep support.
1209 Emacs and Microsoft Windows/MS-DOS
1211 * Windows Startup:: How to start Emacs on Windows.
1212 * Text and Binary:: Text files use CRLF to terminate lines.
1213 * Windows Files:: File-name conventions on Windows.
1214 * ls in Lisp:: Emulation of @code{ls} for Dired.
1215 * Windows HOME:: Where Emacs looks for your @file{.emacs} and
1217 * Windows Keyboard:: Windows-specific keyboard features.
1218 * Windows Mouse:: Windows-specific mouse features.
1219 * Windows Processes:: Running subprocesses on Windows.
1220 * Windows Printing:: How to specify the printer on MS-Windows.
1221 * Windows Fonts:: Specifying fonts on MS-Windows.
1222 * Windows Misc:: Miscellaneous Windows features.
1224 * MS-DOS:: Using Emacs on MS-DOS.
1228 * MS-DOS Keyboard:: Keyboard conventions on MS-DOS.
1229 * MS-DOS Mouse:: Mouse conventions on MS-DOS.
1230 * MS-DOS Display:: Fonts, frames and display size on MS-DOS.
1231 * MS-DOS File Names:: File name conventions on MS-DOS.
1232 * MS-DOS Printing:: Printing specifics on MS-DOS.
1233 * MS-DOS and MULE:: Support for internationalization on MS-DOS.
1234 * MS-DOS Processes:: Running subprocesses on MS-DOS.
1243 This manual documents the use and simple customization of the Emacs
1244 editor. Simple Emacs customizations do not require you to be a
1245 programmer, but if you are not interested in customizing, you can
1246 ignore the customization hints.
1248 This is primarily a reference manual, but can also be used as a
1249 primer. If you are new to Emacs, we recommend you start with
1250 the integrated, learn-by-doing tutorial, before reading the manual. To
1251 run the tutorial, start Emacs and type @kbd{C-h t}. The tutorial
1252 describes commands, tells you when to try them, and explains the
1253 results. The tutorial is available in several languages.
1255 On first reading, just skim chapters 1 and 2, which describe the
1256 notational conventions of the manual and the general appearance of the
1257 Emacs display screen. Note which questions are answered in these
1258 chapters, so you can refer back later. After reading chapter 4, you
1259 should practice the commands shown there. The next few chapters
1260 describe fundamental techniques and concepts that are used constantly.
1261 You need to understand them thoroughly, so experiment with them
1262 until you are fluent.
1264 Chapters 14 through 19 describe intermediate-level features that are
1265 useful for many kinds of editing. Chapter 20 and following chapters
1266 describe optional but useful features; read those chapters when you
1269 Read the Common Problems chapter if Emacs does not seem to be
1270 working properly. It explains how to cope with several common
1271 problems (@pxref{Lossage,, Dealing with Emacs Trouble}), as well as
1272 when and how to report Emacs bugs (@pxref{Bugs}).
1274 To find the documentation of a particular command, look in the index.
1275 Keys (character commands) and command names have separate indexes.
1276 There is also a glossary, with a cross reference for each term.
1278 This manual is available as a printed book and also as an Info file.
1279 The Info file is for reading from Emacs itself, or with the Info program.
1280 Info is the principal format for documentation in the GNU system.
1281 The Info file and the printed book contain substantially the same text
1282 and are generated from the same source files, which are also
1283 distributed with GNU Emacs.
1285 GNU Emacs is a member of the Emacs editor family. There are many
1286 Emacs editors, all sharing common principles of organization. For
1287 information on the underlying philosophy of Emacs and the lessons
1288 learned from its development, see @cite{Emacs, the Extensible,
1289 Customizable Self-Documenting Display Editor}, available from
1290 @url{ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-519A.pdf}.
1292 This version of the manual is mainly intended for use with GNU Emacs
1293 installed on GNU and Unix systems. GNU Emacs can also be used on
1294 MS-DOS, Microsoft Windows, and Macintosh systems. The Info file
1295 version of this manual contains some more information about using
1296 Emacs on those systems. Those systems use different file name syntax;
1297 in addition MS-DOS does not support all GNU Emacs features.
1298 @xref{Microsoft Windows}, for information about using Emacs on
1299 Windows. @xref{Mac OS / GNUstep}, for information about using Emacs
1300 on Macintosh (and GNUstep).
1304 @unnumbered Distribution
1306 GNU Emacs is @dfn{free software}; this means that everyone is free to
1307 use it and free to redistribute it under certain conditions. GNU Emacs
1308 is not in the public domain; it is copyrighted and there are
1309 restrictions on its distribution, but these restrictions are designed
1310 to permit everything that a good cooperating citizen would want to do.
1311 What is not allowed is to try to prevent others from further sharing
1312 any version of GNU Emacs that they might get from you. The precise
1313 conditions are found in the GNU General Public License that comes with
1314 Emacs and also appears in this manual@footnote{This manual is itself
1315 covered by the GNU Free Documentation License. This license is
1316 similar in spirit to the General Public License, but is more suitable
1317 for documentation. @xref{GNU Free Documentation License}.}.
1320 One way to get a copy of GNU Emacs is from someone else who has it.
1321 You need not ask for our permission to do so, or tell any one else;
1322 just copy it. If you have access to the Internet, you can get the
1323 latest distribution version of GNU Emacs by anonymous FTP; see
1324 @url{http://www.gnu.org/software/emacs} on our website for more
1327 You may also receive GNU Emacs when you buy a computer. Computer
1328 manufacturers are free to distribute copies on the same terms that apply to
1329 everyone else. These terms require them to give you the full sources,
1330 including whatever changes they may have made, and to permit you to
1331 redistribute the GNU Emacs received from them under the usual terms of the
1332 General Public License. In other words, the program must be free for you
1333 when you get it, not just free for the manufacturer.
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.
1339 For more information on how you can help, see
1340 @url{http://www.gnu.org/help/help.html}.
1342 We also sell hardcopy versions of this manual and @cite{An
1343 Introduction to Programming in Emacs Lisp}, by Robert J. Chassell.
1344 You can visit our online store at @url{http://shop.fsf.org/}.
1345 The income from sales goes to support the foundation's purpose: the
1346 development of new free software, and improvements to our existing
1347 programs including GNU Emacs.
1349 If you need to contact the Free Software Foundation, see
1350 @url{http://www.fsf.org/about/contact/}, or write to
1353 Free Software Foundation
1354 51 Franklin Street, Fifth Floor
1355 Boston, MA 02110-1301
1360 @node Acknowledgments
1361 @unnumberedsec Acknowledgments
1363 Contributors to GNU Emacs include Jari Aalto, Per Abrahamsen, Tomas
1364 Abrahamsson, Jay K. Adams, Alon Albert, Michael Albinus, Nagy
1365 Andras, Benjamin Andresen, Ralf Angeli, Dmitry Antipov, Joe Arceneaux, Emil Åström,
1366 Miles Bader, David Bakhash, Juanma Barranquero, Eli Barzilay, Thomas
1367 Baumann, Steven L. Baur, Jay Belanger, Alexander L. Belikoff,
1368 Thomas Bellman, Scott Bender, Boaz Ben-Zvi, Sergey Berezin, Karl
1369 Berry, Anna M. Bigatti, Ray Blaak, Martin Blais, Jim Blandy, Johan
1370 Bockgård, Jan Böcker, Joel Boehland, Lennart Borgman, Per Bothner,
1371 Terrence Brannon, Frank Bresz, Peter Breton, Emmanuel Briot, Kevin
1372 Broadey, Vincent Broman, Michael Brouwer, David M. Brown, Stefan Bruda,
1373 Georges Brun-Cottan, Joe Buehler, Scott Byer, Włodek Bzyl,
1374 Bill Carpenter, Per Cederqvist, Hans Chalupsky, Chris Chase, Bob
1375 Chassell, Andrew Choi, Chong Yidong, Sacha Chua, Stewart Clamen, James
1376 Clark, Mike Clarkson, Glynn Clements, Andrew Cohen, Daniel Colascione,
1377 Christoph Conrad, Ludovic Courtès, Andrew Csillag,
1378 Toby Cubitt, Baoqiu Cui, Doug Cutting, Mathias Dahl, Julien Danjou, Satyaki
1379 Das, Vivek Dasmohapatra, Dan Davison, Michael DeCorte, Gary Delp, Nachum
1380 Dershowitz, Dave Detlefs, Matthieu Devin, Christophe de Dinechin, Eri
1381 Ding, Jan Djärv, Lawrence R. Dodd, Carsten Dominik, Scott Draves,
1382 Benjamin Drieu, Viktor Dukhovni, Jacques Duthen, Dmitry Dzhus, John
1383 Eaton, Rolf Ebert, Carl Edman, David Edmondson, Paul Eggert, Stephen
1384 Eglen, Christian Egli, Torbjörn Einarsson, Tsugutomo Enami, David
1385 Engster, Hans Henrik Eriksen, Michael Ernst, Ata Etemadi, Frederick
1386 Farnbach, Oscar Figueiredo, Fred Fish, Steve Fisk, Karl Fogel, Gary
1387 Foster, Eric S. Fraga, Romain Francoise, Noah Friedman, Andreas
1388 Fuchs, Shigeru Fukaya, Hallvard Furuseth, Keith Gabryelski, Peter S.
1389 Galbraith, Kevin Gallagher, Fabián E. Gallina, Kevin Gallo, Juan León Lahoz García,
1390 Howard Gayle, Daniel German, Stephen Gildea, Julien Gilles, David
1391 Gillespie, Bob Glickstein, Deepak Goel, David De La Harpe Golden, Boris
1392 Goldowsky, David Goodger, Chris Gray, Kevin Greiner, Michelangelo Grigni, Odd
1393 Gripenstam, Kai Großjohann, Michael Gschwind, Bastien Guerry, Henry
1394 Guillaume, Doug Gwyn, Bruno Haible, Ken'ichi Handa, Lars Hansen, Chris
1395 Hanson, Jesper Harder, Alexandru Harsanyi, K. Shane Hartman, John
1396 Heidemann, Jon K. Hellan, Magnus Henoch, Markus Heritsch, Dirk
1397 Herrmann, Karl Heuer, Manabu Higashida, Konrad Hinsen, Anders Holst,
1398 Jeffrey C. Honig, Tassilo Horn, Kurt Hornik, Tom Houlder, Joakim
1399 Hove, Denis Howe, Lars Ingebrigtsen, Andrew Innes, Seiichiro Inoue,
1400 Philip Jackson, Martyn Jago, Pavel Janik, Paul Jarc, Ulf Jasper,
1401 Thorsten Jolitz, Michael K. Johnson, Kyle Jones, Terry Jones, Simon
1402 Josefsson, Alexandre Julliard, Arne Jørgensen, Tomoji Kagatani,
1403 Brewster Kahle, Tokuya Kameshima, Lute Kamstra, Ivan Kanis, David
1404 Kastrup, David Kaufman, Henry Kautz, Taichi Kawabata, Taro Kawagishi,
1405 Howard Kaye, Michael Kifer, Richard King, Peter Kleiweg, Karel
1406 Klíč, Shuhei Kobayashi, Pavel Kobyakov, Larry K. Kolodney, David
1407 M. Koppelman, Koseki Yoshinori, Robert Krawitz, Sebastian Kremer,
1408 Ryszard Kubiak, Igor Kuzmin, David Kågedal, Daniel LaLiberte, Karl
1409 Landstrom, Mario Lang, Aaron Larson, James R. Larus, Vinicius Jose
1410 Latorre, Werner Lemberg, Frederic Lepied, Peter Liljenberg, Christian
1411 Limpach, Lars Lindberg, Chris Lindblad, Anders Lindgren, Thomas Link,
1412 Juri Linkov, Francis Litterio, Sergey Litvinov, Emilio C. Lopes,
1413 Martin Lorentzon, Dave Love, Eric Ludlam, Károly Lőrentey, Sascha
1414 Lüdecke, Greg McGary, Roland McGrath, Michael McNamara, Alan Mackenzie,
1415 Christopher J. Madsen, Neil M. Mager, Ken Manheimer, Bill Mann,
1416 Brian Marick, Simon Marshall, Bengt Martensson, Charlie Martin,
1417 Yukihiro Matsumoto, Tomohiro Matsuyama, David Maus, Thomas May, Will Mengarini, David
1418 Megginson, Stefan Merten, Ben A. Mesander, Wayne Mesard, Brad
1419 Miller, Lawrence Mitchell, Richard Mlynarik, Gerd Moellmann, Stefan
1420 Monnier, Keith Moore, Jan Moringen, Morioka Tomohiko, Glenn Morris,
1421 Don Morrison, Diane Murray, Riccardo Murri, Sen Nagata, Erik Naggum,
1422 Gergely Nagy, Nobuyoshi Nakada, Thomas Neumann, Mike Newton, Thien-Thi Nguyen,
1423 Jurgen Nickelsen, Dan Nicolaescu, Hrvoje Niksic, Jeff Norden,
1424 Andrew Norman, Edward O'Connor, Kentaro Ohkouchi, Christian Ohler,
1425 Kenichi Okada, Alexandre Oliva, Bob Olson, Michael Olson, Takaaki Ota,
1426 Pieter E. J. Pareit, Ross Patterson, David Pearson, Juan Pechiar,
1427 Jeff Peck, Damon Anton Permezel, Tom Perrine, William M. Perry, Per
1428 Persson, Jens Petersen, Daniel Pfeiffer, Justus Piater, Richard L.
1429 Pieri, Fred Pierresteguy, François Pinard, Daniel Pittman, Christian
1430 Plaunt, Alexander Pohoyda, David Ponce, Francesco A. Potorti,
1431 Michael D. Prange, Mukesh Prasad, Ken Raeburn, Marko Rahamaa, Ashwin
1432 Ram, Eric S. Raymond, Paul Reilly, Edward M. Reingold, David
1433 Reitter, Alex Rezinsky, Rob Riepel, Lara Rios, Adrian Robert, Nick
1434 Roberts, Roland B. Roberts, John Robinson, Denis B. Roegel, Danny
1435 Roozendaal, Sebastian Rose, William Rosenblatt, Markus Rost, Guillermo
1436 J. Rozas, Martin Rudalics, Ivar Rummelhoff, Jason Rumney, Wolfgang
1437 Rupprecht, Benjamin Rutt, Kevin Ryde, James B. Salem, Masahiko Sato,
1438 Timo Savola, Jorgen Schaefer, Holger Schauer, William Schelter, Ralph
1439 Schleicher, Gregor Schmid, Michael Schmidt, Ronald S. Schnell,
1440 Philippe Schnoebelen, Jan Schormann, Alex Schroeder, Stefan Schoef,
1441 Rainer Schoepf, Raymond Scholz, Eric Schulte, Andreas Schwab, Randal
1442 Schwartz, Oliver Seidel, Manuel Serrano, Paul Sexton, Hovav Shacham,
1443 Stanislav Shalunov, Marc Shapiro, Richard Sharman, Olin Shivers, Tibor
1444 Šimko, Espen Skoglund, Rick Sladkey, Lynn Slater, Chris Smith,
1445 David Smith, Paul D. Smith, Wilson Snyder, William Sommerfeld, Simon
1446 South, Andre Spiegel, Michael Staats, Thomas Steffen, Ulf Stegemann,
1447 Reiner Steib, Sam Steingold, Ake Stenhoff, Peter Stephenson, Ken
1448 Stevens, Andy Stewart, Jonathan Stigelman, Martin Stjernholm, Kim F.
1449 Storm, Steve Strassmann, Christopher Suckling, Olaf Sylvester, Naoto
1450 Takahashi, Steven Tamm, Luc Teirlinck, Jean-Philippe Theberge, Jens
1451 T. Berger Thielemann, Spencer Thomas, Jim Thompson, Toru Tomabechi,
1452 David O'Toole, Markus Triska, Tom Tromey, Enami Tsugutomo, Eli
1453 Tziperman, Daiki Ueno, Masanobu Umeda, Rajesh Vaidheeswarran, Neil
1454 W. Van Dyke, Didier Verna, Joakim Verona, Ulrik Vieth, Geoffrey
1455 Voelker, Johan Vromans, Inge Wallin, John Paul Wallington, Colin
1456 Walters, Barry Warsaw, Christoph Wedler, Ilja Weis, Zhang Weize,
1457 Morten Welinder, Joseph Brian Wells, Rodney Whitby, John Wiegley,
1458 Sascha Wilde, Ed Wilkinson, Mike Williams, Roland Winkler, Bill
1459 Wohler, Steven A. Wood, Dale R. Worley, Francis J. Wright, Felix
1460 S. T. Wu, Tom Wurgler, Yamamoto Mitsuharu, Katsumi Yamaoka,
1461 Masatake Yamato, Jonathan Yavner, Ryan Yeske, Ilya Zakharevich, Milan
1462 Zamazal, Victor Zandy, Eli Zaretskii, Jamie Zawinski, Andrew Zhilin,
1463 Shenghuo Zhu, Piotr Zielinski, Ian T. Zimmermann, Reto Zimmermann,
1464 Neal Ziring, Teodor Zlatanov, and Detlev Zundel.
1468 @unnumbered Introduction
1470 You are reading about GNU Emacs, the GNU incarnation of the
1471 advanced, self-documenting, customizable, extensible editor Emacs.
1472 (The `G' in `GNU' is not silent.)
1474 We call Emacs @dfn{advanced} because it can do much more than simple
1475 insertion and deletion of text. It can control subprocesses, indent
1476 programs automatically, show multiple files at once, and more.
1477 Emacs editing commands operate in terms of characters, words, lines,
1478 sentences, paragraphs, and pages, as well as expressions and comments
1479 in various programming languages.
1481 @dfn{Self-documenting} means that at any time you can use special
1482 commands, known as @dfn{help commands}, to find out what your options
1483 are, or to find out what any command does, or to find all the
1484 commands that pertain to a given topic. @xref{Help}.
1486 @dfn{Customizable} means that you can easily alter the behavior of
1487 Emacs commands in simple ways. For instance, if you use a programming
1488 language in which comments start with @samp{<**} and end with
1489 @samp{**>}, you can tell the Emacs comment manipulation commands to
1490 use those strings (@pxref{Comments}). To take another example, you
1491 can rebind the basic cursor motion commands (up, down, left and right)
1492 to any keys on the keyboard that you find comfortable.
1493 @xref{Customization}.
1495 @dfn{Extensible} means that you can go beyond simple customization
1496 and create entirely new commands. New commands are simply programs
1497 written in the Lisp language, which are run by Emacs's own Lisp
1498 interpreter. Existing commands can even be redefined in the middle of
1499 an editing session, without having to restart Emacs. Most of the
1500 editing commands in Emacs are written in Lisp; the few exceptions
1501 could have been written in Lisp but use C instead for efficiency.
1502 Writing an extension is programming, but non-programmers can use it
1503 afterwards. @xref{Top, Emacs Lisp Intro, Preface, eintr, An
1504 Introduction to Programming in Emacs Lisp}, if you want to learn Emacs
1507 @include screen.texi
1508 @include commands.texi
1509 @include entering.texi
1515 @include killing.texi
1517 @include display.texi
1518 @include search.texi
1520 @include kmacro.texi
1521 @c Includes arevert-xtra.
1523 @include buffers.texi
1524 @include windows.texi
1525 @include frames.texi
1528 @include indent.texi
1530 @c Includes fortran-xtra.
1531 @include programs.texi
1532 @include building.texi
1533 @c Includes vc1-xtra, emerge-xtra.
1534 @include maintaining.texi
1535 @include abbrevs.texi
1536 @c Includes dired-xtra.
1538 @c Includes cal-xtra.
1539 @include calendar.texi
1540 @include sending.texi
1542 @c Includes picture-xtra.texi
1544 @include package.texi
1545 @include custom.texi
1546 @include trouble.texi
1549 @appendix GNU GENERAL PUBLIC LICENSE
1552 @node GNU Free Documentation License
1553 @appendix GNU Free Documentation License
1554 @include doclicense.texi
1556 @include cmdargs.texi
1557 @include xresources.texi
1561 @c Includes msdog-xtra.
1564 @include glossary.texi
1569 @c The Option Index is produced only in the on-line version,
1570 @c because the index entries related to command-line options
1571 @c tend to point to the same pages and all begin with a dash.
1574 @unnumbered Key (Character) Index
1579 @unnumbered Command-Line Options Index
1584 @unnumbered Command and Function Index
1587 @node Variable Index
1588 @unnumbered Variable Index
1592 @unnumbered Concept Index