Merge from emacs-23; up to 2010-06-11T14:39:54Z!cyd@stupidchicken.com.
[bpt/emacs.git] / doc / emacs / emacs.texi
CommitLineData
5baee236 1\input texinfo @c -*- coding: iso-latin-1 -*-
8cf51b2c 2
92f9b43f 3@setfilename ../../info/emacs
8cf51b2c
GM
4@settitle GNU Emacs Manual
5
6@c The edition number appears in several places in this file
7@set EDITION Sixteenth
f7a31f11 8@include emacsver.texi
8cf51b2c
GM
9
10@copying
11This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},@*
12updated for Emacs version @value{EMACSVER}.
13
73b0cd50 14Copyright @copyright{} 1985-1987, 1993-2011 Free Software Foundation, Inc.
8cf51b2c
GM
15
16@quotation
17Permission is granted to copy, distribute and/or modify this document
4b121911 18under the terms of the GNU Free Documentation License, Version 1.3 or
8cf51b2c
GM
19any later version published by the Free Software Foundation; with the
20Invariant Sections being ``The GNU Manifesto,'' ``Distribution'' and
21``GNU GENERAL PUBLIC LICENSE,'' with the Front-Cover texts being ``A GNU
22Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the
23license is included in the section entitled ``GNU Free Documentation
24License.''
25
8e65d46c
GM
26(a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
27modify this GNU manual. Buying copies from the FSF supports it in
8cf51b2c
GM
28developing GNU and promoting software freedom.''
29@end quotation
30@end copying
31
63a329f8 32@documentencoding ISO-8859-1
6446548e 33
8cf51b2c
GM
34@dircategory Emacs
35@direntry
8838673e 36* Emacs: (emacs). The extensible self-documenting text editor.
8cf51b2c
GM
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.
ae742cb5 42@c @smallbook
8cf51b2c
GM
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
8cf51b2c
GM
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
81Published by the Free Software Foundation @*
8251 Franklin Street, Fifth Floor @*
83Boston, MA 02110-1301 USA @*
84ISBN 1-882114-86-8
85
86@sp 2
87Cover 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
100Emacs is the extensible, customizable, self-documenting real-time
101display editor. This Info file describes how to edit with Emacs and
102some of how to customize it; it corresponds to GNU Emacs version
103@value{EMACSVER}.
104
105@ifinfo
753ad1de
GM
106To learn more about the Info documentation system, type @kbd{h},
107to visit a programmed instruction sequence for the Info commands.
8cf51b2c
GM
108@end ifinfo
109
110For information on extending Emacs, see @ref{Top, Emacs Lisp,, elisp, The
111Emacs Lisp Reference Manual}.
753ad1de
GM
112
113@insertcopying
8cf51b2c
GM
114@end ifnottex
115
116@ignore
117These subcategories have been deleted for simplicity
118and to avoid conflicts.
119Completion
120Backup Files
121Auto-Saving: Protection Against Disasters
370fded4 122Tags
8cf51b2c
GM
123Text Mode
124Outline Mode
125@TeX{} Mode
126Formatted Text
127Shell Command History
128
129The ones for Dired and Rmail have had the items turned into :: items
130to avoid conflicts.
131Also Running Shell Commands from Emacs
132and Sending Mail and Registers and Minibuffer.
133@end ignore
134
135@menu
8838673e
GM
136* Distrib:: How to get the latest Emacs distribution.
137* Intro:: An introduction to Emacs concepts.
753ad1de 138@c Note that in the printed manual, the glossary and indices come last.
8838673e 139* Glossary:: Terms used in this manual.
8cf51b2c
GM
140
141Indexes (each index contains a large menu)
8838673e 142* Key Index:: An item for each standard Emacs key sequence.
8cf51b2c
GM
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
753ad1de
GM
148* Acknowledgments:: Major contributors to GNU Emacs.
149
8cf51b2c 150Important General Concepts
8838673e
GM
151* Screen:: How to interpret what you see on the screen.
152* User Input:: Kinds of input events (characters, buttons,
8cf51b2c 153 function keys).
8838673e 154* Keys:: Key sequences: what you type to request one
8cf51b2c 155 editing action.
8838673e 156* Commands:: Named functions run by key sequences to do editing.
8cf51b2c 157* Entering Emacs:: Starting Emacs from the shell.
8838673e 158* Exiting:: Stopping or killing Emacs.
8cf51b2c
GM
159
160Fundamental Editing Commands
8838673e
GM
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.
8cf51b2c
GM
165
166Important Text-Changing Commands
8838673e
GM
167* Mark:: The mark: how to delimit a ``region'' of text.
168* Killing:: Killing (cutting) text.
169* Yanking:: Recovering killed text. Moving text. (Pasting.)
8cf51b2c 170* Accumulating Text:: Other ways of copying text.
8838673e 171* Rectangles:: Operating on the text inside a rectangle on the screen.
753ad1de
GM
172* CUA Bindings:: Using @kbd{C-x}, @kbd{C-c}, @kbd{C-v} for copy
173 and paste, with enhanced rectangle support.
8838673e
GM
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:: A keyboard macro records a sequence of
179 keystrokes to be replayed with a single command.
8cf51b2c
GM
180
181Major Structures of Emacs
8838673e
GM
182* Files:: All about handling files.
183* Buffers:: Multiple buffers; editing several files at once.
184* Windows:: Viewing two pieces of text at once.
185* Frames:: Running the same Emacs session in multiple X windows.
753ad1de 186* International:: Using non-@acronym{ASCII} character sets.
8cf51b2c
GM
187
188Advanced Features
8838673e
GM
189* Major Modes:: Text mode vs. Lisp mode vs. C mode...
190* Indentation:: Editing the white space at the beginnings of lines.
191* Text:: Commands and modes for editing English.
192* Programs:: Commands and modes for editing programs.
193* Building:: Compiling, running and debugging programs.
8cf51b2c 194* Maintaining:: Features for maintaining large programs.
8838673e
GM
195* Abbrevs:: How to define text abbreviations to reduce
196 the number of characters you must type.
753ad1de 197@c AFAICS, the tex stuff generates its own index and does not use this one.
8cf51b2c
GM
198@ifnottex
199* Picture Mode:: Editing pictures made up of characters using
200 the quarter-plane screen model.
201@end ifnottex
202* Sending Mail:: Sending mail in Emacs.
8838673e
GM
203* Rmail:: Reading mail in Emacs.
204* Dired:: You can ``edit'' a directory to manage files in it.
8cf51b2c 205* Calendar/Diary:: The calendar and diary facilities.
753ad1de 206* Document View:: Viewing PDF, PS and DVI files.
8838673e
GM
207* Gnus:: How to read netnews with Emacs.
208* Shell:: Executing shell commands from Emacs.
8cf51b2c 209* Emacs Server:: Using Emacs as an editing server for @code{mail}, etc.
8838673e
GM
210* Printing:: Printing hardcopies of buffers or regions.
211* Sorting:: Sorting lines, paragraphs or pages within Emacs.
212* Narrowing:: Restricting display and editing to a portion
213 of the buffer.
214* Two-Column:: Splitting apart columns to edit them
215 in side-by-side windows.
8cf51b2c
GM
216* Editing Binary Files::Using Hexl mode to edit binary files.
217* Saving Emacs Sessions:: Saving Emacs state from one session to the next.
218* Recursive Edit:: A command can allow you to do editing
8838673e
GM
219 "within the command". This is called a
220 "recursive editing level".
221* Emulation:: Emulating some other editors with Emacs.
8cf51b2c
GM
222* Hyperlinking:: Following links in buffers.
223* Dissociated Press:: Dissociating text for fun.
8838673e 224* Amusements:: Various games and hacks.
8cf51b2c 225* Customization:: Modifying the behavior of Emacs.
8cf51b2c
GM
226
227Recovery from Problems
8838673e
GM
228* Quitting:: Quitting and aborting.
229* Lossage:: What to do if Emacs is hung or malfunctioning.
230* Bugs:: How and when to report a bug.
8cf51b2c 231* Contributing:: How to contribute improvements to Emacs.
8838673e 232* Service:: How to get help for your own Emacs needs.
8cf51b2c 233
753ad1de 234Appendices
8838673e
GM
235* Copying:: The GNU General Public License gives you permission
236 to redistribute GNU Emacs on certain terms;
237 it also explains that there is no warranty.
753ad1de
GM
238* GNU Free Documentation License:: The license for this documentation.
239* Emacs Invocation:: Hairy startup options.
240* X Resources:: X resources for customizing Emacs.
8838673e 241* Antinews:: Information about Emacs version 22.
753ad1de
GM
242* Mac OS / GNUstep:: Using Emacs under Mac OS and GNUstep.
243* Microsoft Windows:: Using Emacs on Microsoft Windows and MS-DOS.
8838673e 244* Manifesto:: What's GNU? Gnu's Not Unix!
753ad1de 245
8cf51b2c
GM
246@c Do NOT modify the following 3 lines! They must have this form to
247@c be correctly identified by `texinfo-multiple-files-update'. In
248@c particular, the detailed menu header line MUST be identical to the
249@c value of `texinfo-master-menu-header'. See texnfo-upd.el.
250
251@detailmenu
252 --- The Detailed Node Listing ---
253 ---------------------------------
254
255Here are some other nodes which are really inferiors of the ones
256already listed, mentioned here so you can get to them in one step:
257
258The Organization of the Screen
259
8838673e 260* Point:: The place in the text where editing commands operate.
8cf51b2c 261* Echo Area:: Short messages appear at the bottom of the screen.
8838673e 262* Mode Line:: Interpreting the mode line.
8cf51b2c
GM
263* Menu Bar:: How to use the menu bar.
264
265Basic Editing Commands
266
267* Inserting Text:: Inserting text by simply typing it.
753ad1de
GM
268* Moving Point:: Moving the cursor to the place where you want to
269 change something.
8838673e
GM
270* Erasing:: Deleting and killing text.
271* Basic Undo:: Undoing recent changes in the text.
8cf51b2c
GM
272* Basic Files:: Visiting, creating, and saving files.
273* Basic Help:: Asking what a character does.
8838673e 274* Blank Lines:: Making and deleting blank lines.
753ad1de 275* Continuation Lines:: How Emacs displays lines too wide for the screen.
8cf51b2c 276* Position Info:: What page, line, row, or column is point on?
8838673e 277* Arguments:: Numeric arguments for repeating a command N times.
753ad1de 278* Repeating:: Repeating the previous command quickly.
8cf51b2c
GM
279
280The Minibuffer
281
282* Minibuffer File:: Entering file names with the minibuffer.
283* Minibuffer Edit:: How to edit in the minibuffer.
8838673e
GM
284* Completion:: An abbreviation facility for minibuffer input.
285* Minibuffer History:: Reusing recent minibuffer arguments.
286* Repetition:: Re-executing commands that used the minibuffer.
8d15c8db 287* Passwords:: Entering passwords in the echo area.
8cf51b2c
GM
288
289Completion
290
753ad1de
GM
291* Completion Example:: Examples of using completion.
292* Completion Commands:: A list of completion commands.
293* Strict Completion:: Different types of completion.
294* Completion Options:: Options for completion.
8cf51b2c
GM
295
296Help
297
8838673e
GM
298* Help Summary:: Brief list of all Help commands.
299* Key Help:: Asking what a key does in Emacs.
300* Name Help:: Asking about a command, variable or function name.
301* Apropos:: Asking what pertains to a given topic.
8cf51b2c 302* Help Mode:: Special features of Help mode and Help buffers.
8838673e 303* Library Keywords:: Finding Lisp libraries by keywords (topics).
8cf51b2c 304* Language Help:: Help relating to international language support.
8838673e 305* Misc Help:: Other help commands.
8cf51b2c 306* Help Files:: Commands to display pre-written help files.
753ad1de 307* Help Echo:: Help on active text and tooltips (`balloon help').
8cf51b2c
GM
308
309The Mark and the Region
310
8838673e
GM
311* Setting Mark:: Commands to set the mark.
312* Marking Objects:: Commands to put region around textual units.
313* Using Region:: Summary of ways to operate on contents of the region.
314* Mark Ring:: Previous mark positions saved so you can go back there.
02105f6b
CY
315* Global Mark Ring:: Previous mark positions in various buffers.
316* Shift Selection:: Using shifted cursor motion keys.
8838673e 317* Persistent Mark:: Keeping the mark active all the time.
8cf51b2c
GM
318
319Killing and Moving Text
320
8838673e
GM
321* Deletion:: Commands for deleting small amounts of text and
322 blank areas.
323* Killing by Lines:: How to kill entire lines of text at one time.
8cf51b2c 324* Other Kill Commands:: Commands to kill large regions of text and
8838673e 325 syntactic units such as words and sentences.
91ed7ea8 326* Kill Options:: Options that affect killing.
8cf51b2c
GM
327
328Yanking
329
8838673e
GM
330* Kill Ring:: Where killed text is stored. Basic yanking.
331* Appending Kills:: Several kills in a row all yank together.
332* Earlier Kills:: Yanking something killed some time ago.
8cf51b2c
GM
333
334Registers
335
8838673e
GM
336* RegPos:: Saving positions in registers.
337* RegText:: Saving text in registers.
338* RegRect:: Saving rectangles in registers.
8cf51b2c
GM
339* RegConfig:: Saving window configurations in registers.
340* RegNumbers:: Numbers in registers.
8838673e 341* RegFiles:: File names in registers.
8cf51b2c
GM
342* Bookmarks:: Bookmarks are like registers, but persistent.
343
344Controlling the Display
345
8838673e 346* Scrolling:: Commands to move text up and down in a window.
8cf51b2c
GM
347* Auto Scrolling:: Redisplay scrolls text automatically when needed.
348* Horizontal Scrolling:: Moving text left and right in a window.
349* Follow Mode:: Follow mode lets two windows scroll as one.
8838673e 350* Faces:: How to change the display style using faces.
8cf51b2c 351* Standard Faces:: Emacs' predefined faces.
fa9f971a 352* Temporary Face Changes:: Commands to temporarily modify the default text face
8cf51b2c
GM
353* Font Lock:: Minor mode for syntactic highlighting using faces.
354* Highlight Interactively:: Tell Emacs what text to highlight.
355* Fringes:: Enabling or disabling window fringes.
356* Displaying Boundaries:: Displaying top and bottom of the buffer.
357* Useless Whitespace:: Showing possibly-spurious trailing whitespace.
358* Selective Display:: Hiding lines with lots of indentation.
359* Optional Mode Line:: Optional mode line display features.
360* Text Display:: How text characters are normally displayed.
361* Cursor Display:: Features for displaying the cursor.
362* Line Truncation:: Truncating lines to fit the screen width instead
363 of continuing them to multiple screen lines.
4c2e2be9 364* Visual Line Mode:: Word wrap and screen line-based editing.
8cf51b2c
GM
365* Display Custom:: Information on variables for customizing display.
366
367Searching and Replacement
368
8838673e 369* Incremental Search:: Search happens as you type the string.
8cf51b2c 370* Nonincremental Search:: Specify entire string and then search.
8838673e
GM
371* Word Search:: Search for sequence of words.
372* Regexp Search:: Search for match for a regexp.
373* Regexps:: Syntax of regular expressions.
8cf51b2c
GM
374* Regexp Backslash:: Regular expression constructs starting with `\'.
375* Regexp Example:: A complex regular expression explained.
8838673e
GM
376* Search Case:: To ignore case while searching, or not.
377* Replace:: Search, and replace some or all matches.
8cf51b2c
GM
378* Other Repeating Search:: Operating on all matches for some regexp.
379
380Incremental Search
381
382* Basic Isearch:: Basic incremental search commands.
383* Repeat Isearch:: Searching for the same string again.
384* Error in Isearch:: When your string is not found.
385* Special Isearch:: Special input in incremental search.
8cf51b2c
GM
386* Isearch Yank:: Commands that grab text into the search string
387 or else edit the search string.
8cf51b2c 388* Isearch Scroll:: Scrolling during an incremental search.
321e63fc 389* Isearch Minibuffer:: Incremental search of the minibuffer history.
8cf51b2c
GM
390* Slow Isearch:: Incremental search features for slow terminals.
391
392Replacement Commands
393
394* Unconditional Replace:: Replacing all matches for a string.
8838673e 395* Regexp Replace:: Replacing all matches for a regexp.
8cf51b2c 396* Replacement and Case:: How replacements preserve case of letters.
8838673e 397* Query Replace:: How to use querying.
8cf51b2c
GM
398
399Commands for Fixing Typos
400
753ad1de 401* Undo:: The Undo commands.
8838673e 402* Transpose:: Exchanging two characters, words, lines, lists...
8cf51b2c 403* Fixing Case:: Correcting case of last word entered.
8838673e 404* Spelling:: Apply spelling checker to a word, or a whole file.
8cf51b2c
GM
405
406Keyboard Macros
407
408* Basic Keyboard Macro:: Defining and running keyboard macros.
409* Keyboard Macro Ring:: Where previous keyboard macros are saved.
410* Keyboard Macro Counter:: Inserting incrementing numbers in macros.
411* Keyboard Macro Query:: Making keyboard macros do different things each time.
412* Save Keyboard Macro:: Giving keyboard macros names; saving them in files.
413* Edit Keyboard Macro:: Editing keyboard macros.
414* Keyboard Macro Step-Edit:: Interactively executing and editing a keyboard
415 macro.
416
417File Handling
418
419* File Names:: How to type and edit file-name arguments.
420* Visiting:: Visiting a file prepares Emacs to edit the file.
421* Saving:: Saving makes your changes permanent.
422* Reverting:: Reverting cancels all the changes not saved.
423* Autorevert:: Auto Reverting non-file buffers.
424* Auto Save:: Auto Save periodically protects against loss of data.
425* File Aliases:: Handling multiple names for one file.
8cf51b2c
GM
426* Directories:: Creating, deleting, and listing file directories.
427* Comparing Files:: Finding where two files differ.
753ad1de 428* Diff Mode:: Mode for editing file differences.
8cf51b2c
GM
429* Misc File Ops:: Other things you can do on files.
430* Compressed Files:: Accessing compressed files.
431* File Archives:: Operating on tar, zip, jar etc. archive files.
432* Remote Files:: Accessing files on other sites.
433* Quoted File Names:: Quoting special characters in file names.
434* File Name Cache:: Completion against a list of files you often use.
435* File Conveniences:: Convenience Features for Finding Files.
436* Filesets:: Handling sets of files.
437
438Saving Files
439
440* Save Commands:: Commands for saving files.
441* Backup:: How Emacs saves the old version of your file.
442* Customize Save:: Customizing the saving of files.
443* Interlocking:: How Emacs protects against simultaneous editing
444 of one file by two users.
445* File Shadowing:: Copying files to "shadows" automatically.
446* Time Stamps:: Emacs can update time stamps on saved files.
447
448Backup Files
449
8838673e
GM
450* Backup Names:: How backup files are named.
451* Backup Deletion:: Emacs deletes excess numbered backups.
452* Backup Copying:: Backups can be made by copying or renaming.
753ad1de
GM
453
454Auto Reverting Non-File Buffers
455
456* Auto Reverting the Buffer Menu:: Auto Revert of the Buffer Menu.
457* Auto Reverting Dired:: Auto Revert of Dired buffers.
458* Supporting additional buffers:: How to add more Auto Revert support.
8cf51b2c
GM
459
460Auto-Saving: Protection Against Disasters
461
753ad1de
GM
462* Auto Save Files:: The file where auto-saved changes are
463 actually made until you save the file.
464* Auto Save Control:: Controlling when and how often to auto-save.
8838673e 465* Recover:: Recovering text from auto-save files.
8cf51b2c 466
8cf51b2c
GM
467Using Multiple Buffers
468
469* Select Buffer:: Creating a new buffer or reselecting an old one.
470* List Buffers:: Getting a list of buffers that exist.
8838673e
GM
471* Misc Buffer:: Renaming; changing read-onlyness; copying text.
472* Kill Buffer:: Killing buffers you no longer need.
8cf51b2c 473* Several Buffers:: How to go through the list of all buffers
8838673e 474 and operate variously on several of them.
8cf51b2c
GM
475* Indirect Buffers:: An indirect buffer shares the text of another buffer.
476* Buffer Convenience:: Convenience and customization features for
477 buffer handling.
478
753ad1de
GM
479Convenience Features and Customization of Buffer Handling
480
481* Uniquify:: Making buffer names unique with directory parts.
482* Iswitchb:: Switching between buffers with substrings.
483* Buffer Menus:: Configurable buffer menu.
484
8cf51b2c
GM
485Multiple Windows
486
487* Basic Window:: Introduction to Emacs windows.
488* Split Window:: New windows are made by splitting existing windows.
489* Other Window:: Moving to another window or doing something to it.
490* Pop Up Window:: Finding a file or buffer in another window.
491* Force Same Window:: Forcing certain buffers to appear in the selected
492 window rather than in another window.
493* Change Window:: Deleting windows and changing their sizes.
494* Window Convenience:: Convenience functions for window handling.
495
496Frames and Graphical Displays
497
498* Cut and Paste:: Mouse commands for cut and paste.
499* Mouse References:: Using the mouse to select an item from a list.
500* Menu Mouse Clicks:: Mouse clicks that bring up menus.
501* Mode Line Mouse:: Mouse clicks on the mode line.
502* Creating Frames:: Creating additional Emacs frames with various contents.
503* Frame Commands:: Iconifying, deleting, and switching frames.
d68eb23c 504* Fonts:: Changing the frame font.
8cf51b2c
GM
505* Speedbar:: How to make and use a speedbar frame.
506* Multiple Displays:: How one Emacs job can talk to several displays.
507* Special Buffer Frames:: You can make certain buffers have their own frames.
508* Frame Parameters:: Changing the colors and other modes of frames.
8838673e 509* Scroll Bars:: How to enable and disable scroll bars; how to use them.
8cf51b2c
GM
510* Wheeled Mice:: Using mouse wheels for scrolling.
511* Drag and Drop:: Using drag and drop to open files and insert text.
8838673e 512* Menu Bars:: Enabling and disabling the menu bar.
8cf51b2c
GM
513* Tool Bars:: Enabling and disabling the tool bar.
514* Dialog Boxes:: Controlling use of dialog boxes.
753ad1de 515* Tooltips:: Displaying information at the current mouse position.
8cf51b2c
GM
516* Mouse Avoidance:: Moving the mouse pointer out of the way.
517* Non-Window Terminals:: Multiple frames on terminals that show only one.
518* Text-Only Mouse:: Using the mouse in text-only terminals.
519
753ad1de
GM
520Killing and Yanking on Graphical Displays
521
522* Mouse Commands:: Moving, cutting, and pasting, with the mouse.
523* Word and Line Mouse:: Mouse commands for selecting whole words or lines.
524* Cut/Paste Other App:: Transfering text between Emacs and other apps.
525* Secondary Selection:: Cutting without altering point and mark.
526* Clipboard:: Using the clipboard for selections.
527
8cf51b2c
GM
528International Character Set Support
529
530* International Chars:: Basic concepts of multibyte characters.
531* Enabling Multibyte:: Controlling whether to use multibyte characters.
532* Language Environments:: Setting things up for the language you use.
533* Input Methods:: Entering text characters not on your keyboard.
534* Select Input Method:: Specifying your choice of input methods.
8cf51b2c
GM
535* Coding Systems:: Character set conversion when you read and
536 write files, and so on.
537* Recognize Coding:: How Emacs figures out which conversion to use.
538* Specify Coding:: Specifying a file's coding system explicitly.
539* Output Coding:: Choosing coding systems for output.
540* Text Coding:: Choosing conversion to use for file text.
541* Communication Coding:: Coding systems for interprocess communication.
542* File Name Coding:: Coding systems for file @emph{names}.
543* Terminal Coding:: Specifying coding systems for converting
544 terminal input and output.
545* Fontsets:: Fontsets are collections of fonts
546 that cover the whole spectrum of characters.
547* Defining Fontsets:: Defining a new fontset.
753ad1de 548* Modifying Fontsets:: Modifying an existing fontset.
8cf51b2c
GM
549* Undisplayable Characters::When characters don't display.
550* Unibyte Mode:: You can pick one European character set
551 to use without multibyte characters.
552* Charsets:: How Emacs groups its internal character codes.
553
554Major Modes
555
556* Choosing Modes:: How major modes are specified or chosen.
557
558Indentation
559
560* Indentation Commands:: Various commands and techniques for indentation.
8838673e
GM
561* Tab Stops:: You can set arbitrary "tab stops" and then
562 indent to the next tab stop when you want to.
563* Just Spaces:: You can request indentation using just spaces.
8cf51b2c
GM
564
565Commands for Human Languages
566
8838673e
GM
567* Words:: Moving over and killing words.
568* Sentences:: Moving over and killing sentences.
569* Paragraphs:: Moving over paragraphs.
570* Pages:: Moving over pages.
571* Filling:: Filling or justifying text.
572* Case:: Changing the case of text.
573* Text Mode:: The major modes for editing text files.
8cf51b2c 574* Outline Mode:: Editing outlines.
8838673e 575* TeX Mode:: Editing input to the formatter TeX.
f67c5dd0 576* HTML Mode:: Editing HTML and SGML files.
8838673e 577* Nroff Mode:: Editing input to the formatter nroff.
8cf51b2c
GM
578* Formatted Text:: Editing formatted text directly in WYSIWYG fashion.
579* Text Based Tables:: Editing text-based tables in WYSIWYG fashion.
580
581Filling Text
582
8838673e 583* Auto Fill:: Auto Fill mode breaks long lines automatically.
8cf51b2c 584* Fill Commands:: Commands to refill paragraphs and center lines.
8838673e 585* Fill Prefix:: Filling paragraphs that are indented
8cf51b2c
GM
586 or in a comment, etc.
587* Adaptive Fill:: How Emacs can determine the fill prefix automatically.
753ad1de 588* Refill:: Keeping paragraphs filled.
8cf51b2c
GM
589* Longlines:: Editing text with very long lines.
590
591Outline Mode
592
753ad1de 593* Outline Format:: What the text of an outline looks like.
8838673e 594* Outline Motion:: Special commands for moving through
753ad1de
GM
595 outlines.
596* Outline Visibility:: Commands to control what is visible.
597* Outline Views:: Outlines and multiple views.
598* Foldout:: Folding means zooming in on outlines.
8cf51b2c
GM
599
600@TeX{} Mode
601
753ad1de
GM
602* TeX Editing:: Special commands for editing in TeX mode.
603* LaTeX Editing:: Additional commands for LaTeX input files.
604* TeX Print:: Commands for printing part of a file with TeX.
605* TeX Misc:: Customization of TeX mode, and related features.
8cf51b2c
GM
606
607Editing Formatted Text
608
609* Requesting Formatted Text:: Entering and exiting Enriched mode.
610* Hard and Soft Newlines:: There are two different kinds of newlines.
611* Editing Format Info:: How to edit text properties.
753ad1de
GM
612* Format Faces:: Bold, italic, underline, etc.
613* Format Colors:: Changing the color of text.
614* Format Indentation:: Changing the left and right margins.
615* Format Justification:: Centering, setting text flush with the
8cf51b2c 616 left or right margin, etc.
753ad1de 617* Format Properties:: The "special" text properties submenu.
8cf51b2c
GM
618* Forcing Enriched Mode:: How to force use of Enriched mode.
619
753ad1de
GM
620@c The automatic texinfo menu update inserts some duplicate items here
621@c (faces, colors, indentation, justification, properties), because
622@c they are listed in two menus. But we already have them above, no
623@c need to list them twice.
624
8cf51b2c
GM
625Editing Text-based Tables
626
627* Table Definition:: What is a text based table.
628* Table Creation:: How to create a table.
629* Table Recognition:: How to activate and deactivate tables.
630* Cell Commands:: Cell-oriented commands in a table.
631* Cell Justification:: Justifying cell contents.
632* Row Commands:: Manipulating rows of table cell.
633* Column Commands:: Manipulating columns of table cell.
634* Fixed Width Mode:: Fixing cell width.
635* Table Conversion:: Converting between plain text and tables.
636* Measuring Tables:: Analyzing table dimension.
637* Table Misc:: Table miscellany.
638
639Editing Programs
640
641* Program Modes:: Major modes for editing programs.
642* Defuns:: Commands to operate on major top-level parts
643 of a program.
644* Program Indent:: Adjusting indentation to show the nesting.
645* Parentheses:: Commands that operate on parentheses.
8838673e 646* Comments:: Inserting, killing, and aligning comments.
8cf51b2c
GM
647* Documentation:: Getting documentation of functions you plan to call.
648* Hideshow:: Displaying blocks selectively.
649* Symbol Completion:: Completion on symbol names of your program or language.
650* Glasses:: Making identifiersLikeThis more readable.
a42dbee1 651* Semantic:: Suite of editing tools based on source code parsing.
8cf51b2c
GM
652* Misc for Programs:: Other Emacs features useful for editing programs.
653* C Modes:: Special commands of C, C++, Objective-C,
654 Java, and Pike modes.
655* Asm Mode:: Asm mode and its special features.
656* Fortran:: Fortran mode and its special features.
657
658Top-Level Definitions, or Defuns
659
660* Left Margin Paren:: An open-paren or similar opening delimiter
661 starts a defun if it is at the left margin.
662* Moving by Defuns:: Commands to move over or mark a major definition.
663* Imenu:: Making buffer indexes as menus.
664* Which Function:: Which Function mode shows which function you are in.
665
666Indentation for Programs
667
8838673e 668* Basic Indent:: Indenting a single line.
8cf51b2c 669* Multi-line Indent:: Commands to reindent many lines at once.
8838673e
GM
670* Lisp Indent:: Specifying how each Lisp function should be indented.
671* C Indent:: Extra features for indenting C and related modes.
672* Custom C Indent:: Controlling indentation style for C and related modes.
8cf51b2c
GM
673
674Commands for Editing with Parentheses
675
676* Expressions:: Expressions with balanced parentheses.
677* Moving by Parens:: Commands for moving up, down and across
678 in the structure of parentheses.
8838673e 679* Matching:: Insertion of a close-delimiter flashes matching open.
8cf51b2c
GM
680
681Manipulating Comments
682
683* Comment Commands:: Inserting, killing, and aligning comments.
684* Multi-Line Comments:: Commands for adding and editing multi-line comments.
685* Options for Comments::Customizing the comment features.
686
687Documentation Lookup
688
689* Info Lookup:: Looking up library functions and commands
690 in Info files.
691* Man Page:: Looking up man pages of library functions and commands.
692* Lisp Doc:: Looking up Emacs Lisp functions, etc.
693
694C and Related Modes
695
696* Motion in C:: Commands to move by C statements, etc.
697* Electric C:: Colon and other chars can automatically reindent.
698* Hungry Delete:: A more powerful DEL command.
699* Other C Commands:: Filling comments, viewing expansion of macros,
700 and other neat features.
701
753ad1de
GM
702Fortran Mode
703
8838673e
GM
704* Fortran Motion:: Moving point by statements or subprograms.
705* Fortran Indent:: Indentation commands for Fortran.
706* Fortran Comments:: Inserting and aligning comments.
707* Fortran Autofill:: Auto fill support for Fortran.
708* Fortran Columns:: Measuring columns for valid Fortran.
709* Fortran Abbrev:: Built-in abbrevs for Fortran keywords.
753ad1de
GM
710
711Fortran Indentation
712
713* ForIndent Commands:: Commands for indenting and filling Fortran.
714* ForIndent Cont:: How continuation lines indent.
715* ForIndent Num:: How line numbers auto-indent.
716* ForIndent Conv:: Conventions you must obey to avoid trouble.
717* ForIndent Vars:: Variables controlling Fortran indent style.
718
8cf51b2c
GM
719Compiling and Testing Programs
720
8838673e
GM
721* Compilation:: Compiling programs in languages other
722 than Lisp (C, Pascal, etc.).
8cf51b2c
GM
723* Compilation Mode:: The mode for visiting compiler errors.
724* Compilation Shell:: Customizing your shell properly
725 for use in the compilation buffer.
726* Grep Searching:: Searching with grep.
727* Flymake:: Finding syntax errors on the fly.
8838673e
GM
728* Debuggers:: Running symbolic debuggers for non-Lisp programs.
729* Executing Lisp:: Various modes for editing Lisp programs,
730 with different facilities for running
731 the Lisp programs.
8cf51b2c 732* Lisp Libraries:: Creating Lisp programs to run in Emacs.
8838673e 733* Lisp Eval:: Executing a single Lisp expression in Emacs.
8cf51b2c 734* Lisp Interaction:: Executing Lisp in an Emacs buffer.
8838673e 735* External Lisp:: Communicating through Emacs with a separate Lisp.
8cf51b2c
GM
736
737Running Debuggers Under Emacs
738
8838673e
GM
739* Starting GUD:: How to start a debugger subprocess.
740* Debugger Operation:: Connection between the debugger and source buffers.
741* Commands of GUD:: Key bindings for common commands.
742* GUD Customization:: Defining your own commands for GUD.
8cf51b2c
GM
743* GDB Graphical Interface:: An enhanced mode that uses GDB features to
744 implement a graphical debugging environment through
745 Emacs.
746
753ad1de
GM
747GDB Graphical Interface
748
22ef1944 749* GDB User Interface Layout:: Control the number of displayed buffers.
691cf4a0
NR
750* Source Buffers:: Use the mouse in the fringe/margin to
751 control your program.
752* Breakpoints Buffer:: A breakpoint control panel.
753* Threads Buffer:: Displays your threads.
754* Stack Buffer:: Select a frame from the call stack.
22ef1944 755* Other GDB Buffers:: Input/output, locals, registers,
691cf4a0
NR
756 assembler, threads and memory buffers.
757* Watch Expressions:: Monitor variable values in the speedbar.
758* Multithreaded Debugging:: Debugging programs with several threads.
753ad1de 759
8cf51b2c
GM
760Maintaining Large Programs
761
753ad1de 762* Version Control:: Using version control systems.
8838673e
GM
763* Change Log:: Maintaining a change history for your program.
764* Tags:: Go directly to any function in your program in one
765 command. Tags remembers which file it is in.
a42dbee1 766* EDE:: An integrated development environment for Emacs.
8cf51b2c
GM
767* Emerge:: A convenient way of merging two versions of a program.
768
1963ba49
CY
769Version Control
770
771* Introduction to VC:: How version control works in general.
772* VC Mode Line:: How the mode line shows version control status.
773* Basic VC Editing:: How to edit a file under version control.
1aaae3f3 774* Log Buffer:: Features available in log entry buffers.
753ad1de 775* Old Revisions:: Examining and comparing old versions.
1963ba49 776* Secondary VC Commands:: The commands used a little less frequently.
753ad1de 777* VC Directory Mode:: Listing files managed by version control.
1963ba49
CY
778* Branches:: Multiple lines of development.
779* Remote Repositories:: Efficient access to remote CVS servers.
753ad1de 780* Revision Tags:: Symbolic names for revisions.
1963ba49
CY
781* Miscellaneous VC:: Various other commands and features of VC.
782* Customizing VC:: Variables that change VC's behavior.
753ad1de
GM
783
784Introduction to Version Control
785
786* Why Version Control?:: Understanding the problems it addresses.
787* Version Control Systems:: Supported version control back-end systems.
788* VCS Concepts:: Words and concepts related to version control.
1aaae3f3
CY
789* VCS Merging:: How file conflicts are handled.
790* VCS Changesets:: Changesets in version control.
791* VCS Repositories:: Where version control repositories are stored.
753ad1de
GM
792* Types of Log File:: The VCS log in contrast to the ChangeLog.
793
794Basic Editing under Version Control
795
796* VC With A Merging VCS:: Without locking: default mode for CVS.
797* VC With A Locking VCS:: RCS in its default mode, SCCS, and optionally CVS.
798* Advanced C-x v v:: Advanced features available with a prefix argument.
753ad1de
GM
799
800The Secondary Commands of VC
801
802* Registering:: Putting a file under version control.
c0c035fa 803* VC Change Log:: Viewing the VC Change Log.
753ad1de
GM
804* VC Undo:: Canceling changes before or after check-in.
805
806VC Directory Mode
807
808* VC Directory Buffer:: What the buffer looks like and means.
809* VC Directory Commands:: Commands to use in a VC directory buffer.
810
811Multiple Branches of a File
812
813* Switching Branches:: How to get to another existing branch.
814* Creating Branches:: How to start a new branch.
815* Merging:: Transferring changes between branches.
816* Multi-User Branching:: Multiple users working at multiple branches
817 in parallel.
818
819Remote Repositories
820
821* Version Backups:: Keeping local copies of repository versions.
822* Local Version Control:: Using another version system for local editing.
823
824Revision Tags
825
826* Making Revision Tags:: The tag facilities.
827* Revision Tag Caveats:: Things to be careful of when using tags.
828
829Miscellaneous Commands and Features of VC
830
831* Change Logs and VC:: Generating a change log file from log entries.
832* Renaming and VC:: A command to rename both the source and master
833 file correctly.
834* Version Headers:: Inserting version control headers into working files.
835
836Customizing VC
837
838* General VC Options:: Options that apply to multiple back ends.
839* RCS and SCCS:: Options for RCS and SCCS.
840* CVS Options:: Options for CVS.
841
842Change Logs
843
844* Change Log Commands:: Commands for editing change log files.
845* Format of ChangeLog:: What the change log file looks like.
1963ba49 846
8cf51b2c
GM
847Tags Tables
848
8838673e
GM
849* Tag Syntax:: Tag syntax for various types of code and text files.
850* Create Tags Table:: Creating a tags table with @code{etags}.
8cf51b2c 851* Etags Regexps:: Create arbitrary tags using regular expressions.
8838673e
GM
852* Select Tags Table:: How to visit a tags table.
853* Find Tag:: Commands to find the definition of a specific tag.
854* Tags Search:: Using a tags table for searching and replacing.
855* List Tags:: Listing and finding tags defined in a file.
8cf51b2c 856
753ad1de
GM
857Merging Files with Emerge
858
8838673e
GM
859* Overview of Emerge:: How to start Emerge. Basic concepts.
860* Submodes of Emerge:: Fast mode vs. Edit mode.
861 Skip Prefers mode and Auto Advance mode.
862* State of Difference:: You do the merge by specifying state A or B
863 for each difference.
864* Merge Commands:: Commands for selecting a difference,
865 changing states of differences, etc.
866* Exiting Emerge:: What to do when you've finished the merge.
867* Combining in Emerge:: How to keep both alternatives for a difference.
753ad1de
GM
868* Fine Points of Emerge:: Miscellaneous issues.
869
8cf51b2c
GM
870Abbrevs
871
872* Abbrev Concepts:: Fundamentals of defined abbrevs.
873* Defining Abbrevs:: Defining an abbrev, so it will expand when typed.
874* Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
875* Editing Abbrevs:: Viewing or editing the entire list of defined abbrevs.
876* Saving Abbrevs:: Saving the entire list of abbrevs for another session.
877* Dynamic Abbrevs:: Abbreviations for words already in the buffer.
878* Dabbrev Customization:: What is a word, for dynamic abbrevs. Case handling.
879
880@ifnottex
881Editing Pictures
882
883* Basic Picture:: Basic concepts and simple commands of Picture Mode.
884* Insert in Picture:: Controlling direction of cursor motion
885 after "self-inserting" characters.
886* Tabs in Picture:: Various features for tab stops and indentation.
887* Rectangles in Picture:: Clearing and superimposing rectangles.
888@end ifnottex
889
890Sending Mail
891
8838673e 892* Mail Format:: Format of the mail being composed.
753ad1de 893* Mail Headers:: Details of some standard mail header fields.
8cf51b2c 894* Mail Aliases:: Abbreviating and grouping mail addresses.
8838673e 895* Mail Commands:: Special commands for editing mail being composed.
e73c2434 896* Mail Signature:: Adding a signature to every message.
753ad1de 897* Mail Amusements:: Distracting the NSA; adding fortune messages.
8cf51b2c
GM
898* Mail Methods:: Using alternative mail-composition methods.
899
e73c2434 900Mail Commands
753ad1de
GM
901
902* Mail Sending:: Commands to send the message.
903* Header Editing:: Commands to move to header fields and edit them.
e73c2434
CY
904* Citing Mail:: Quoting a message you are replying to.
905* Mail Misc:: Attachments, spell checking, etc.
753ad1de 906
8cf51b2c
GM
907Reading Mail with Rmail
908
909* Rmail Basics:: Basic concepts of Rmail, and simple use.
910* Rmail Scrolling:: Scrolling through a message.
911* Rmail Motion:: Moving to another message.
912* Rmail Deletion:: Deleting and expunging messages.
913* Rmail Inbox:: How mail gets into the Rmail file.
914* Rmail Files:: Using multiple Rmail files.
915* Rmail Output:: Copying message out to files.
916* Rmail Labels:: Classifying messages by labeling them.
917* Rmail Attributes:: Certain standard labels, called attributes.
918* Rmail Reply:: Sending replies to messages you are viewing.
919* Rmail Summary:: Summaries show brief info on many messages.
920* Rmail Sorting:: Sorting messages in Rmail.
921* Rmail Display:: How Rmail displays a message; customization.
922* Rmail Coding:: How Rmail handles decoding character sets.
923* Rmail Editing:: Editing message text and headers in Rmail.
924* Rmail Digest:: Extracting the messages from a digest message.
8cf51b2c
GM
925* Rmail Rot13:: Reading messages encoded in the rot13 code.
926* Movemail:: More details of fetching new mail.
753ad1de
GM
927* Remote Mailboxes:: Retrieving mail from remote mailboxes.
928* Other Mailbox Formats:: Retrieving mail from local mailboxes in
929 various formats.
930
931Summaries
932
8838673e
GM
933* Rmail Make Summary:: Making various sorts of summaries.
934* Rmail Summary Edit:: Manipulating messages from the summary.
8cf51b2c
GM
935
936Dired, the Directory Editor
937
8838673e 938* Dired Enter:: How to invoke Dired.
753ad1de 939* Dired Navigation:: Special motion commands in the Dired buffer.
8cf51b2c
GM
940* Dired Deletion:: Deleting files with Dired.
941* Flagging Many Files:: Flagging files based on their names.
942* Dired Visiting:: Other file operations through Dired.
8838673e
GM
943* Marks vs Flags:: Flagging for deletion vs marking.
944* Operating on Files:: How to copy, rename, print, compress, etc.
945 either one file or several files.
8cf51b2c
GM
946* Shell Commands in Dired:: Running a shell command on the marked files.
947* Transforming File Names:: Using patterns to rename multiple files.
8838673e 948* Comparison in Dired:: Running `diff' by way of Dired.
8cf51b2c
GM
949* Subdirectories in Dired:: Adding subdirectories to the Dired buffer.
950* Subdir Switches:: Subdirectory switches in Dired.
8838673e 951* Subdirectory Motion:: Moving across subdirectories, and up and down.
8cf51b2c
GM
952* Hiding Subdirectories:: Making subdirectories visible or invisible.
953* Dired Updating:: Discarding lines for files of no interest.
8838673e 954* Dired and Find:: Using `find' to choose the files for Dired.
8cf51b2c 955* Wdired:: Operating on files by editing the Dired buffer.
753ad1de 956* Image-Dired:: Viewing image thumbnails in Dired.
8cf51b2c
GM
957* Misc Dired Features:: Various other features.
958
959The Calendar and the Diary
960
961* Calendar Motion:: Moving through the calendar; selecting a date.
962* Scroll Calendar:: Bringing earlier or later months onto the screen.
963* Counting Days:: How many days are there between two dates?
964* General Calendar:: Exiting or recomputing the calendar.
965* Writing Calendar Files:: Writing calendars to files of various formats.
966* Holidays:: Displaying dates of holidays.
967* Sunrise/Sunset:: Displaying local times of sunrise and sunset.
968* Lunar Phases:: Displaying phases of the moon.
969* Other Calendars:: Converting dates to other calendar systems.
970* Diary:: Displaying events from your diary.
8838673e 971* Appointments:: Reminders when it's time to do something.
8cf51b2c
GM
972* Importing Diary:: Converting diary events to/from other formats.
973* Daylight Saving:: How to specify when daylight saving time is active.
974* Time Intervals:: Keeping track of time intervals.
975* Advanced Calendar/Diary Usage:: Advanced Calendar/Diary customization.
976
977Movement in the Calendar
978
979* Calendar Unit Motion:: Moving by days, weeks, months, and years.
980* Move to Beginning or End:: Moving to start/end of weeks, months, and years.
8838673e
GM
981* Specified Dates:: Moving to the current date or another
982 specific date.
8cf51b2c
GM
983
984Conversion To and From Other Calendars
985
8838673e
GM
986* Calendar Systems:: The calendars Emacs understands
987 (aside from Gregorian).
988* To Other Calendar:: Converting the selected date to various calendars.
989* From Other Calendar:: Moving to a date specified in another calendar.
990* Mayan Calendar:: Moving to a date specified in a Mayan calendar.
8cf51b2c
GM
991
992The Diary
993
994* Displaying the Diary:: Viewing diary entries and associated calendar dates.
995* Format of Diary File:: Entering events in your diary.
8838673e
GM
996* Date Formats:: Various ways you can specify dates.
997* Adding to Diary:: Commands to create diary entries.
8cf51b2c
GM
998* Special Diary Entries:: Anniversaries, blocks of dates, cyclic entries, etc.
999
753ad1de
GM
1000Customizing the Calendar and Diary
1001
1002* Calendar Customizing:: Calendar layout and hooks.
1003* Holiday Customizing:: Defining your own holidays.
1004* Date Display Format:: Changing the format.
1005* Time Display Format:: Changing the format.
1006* Diary Customizing:: Defaults you can set.
1007* Non-Gregorian Diary:: Diary entries based on other calendars.
806642d4
GM
1008* Diary Display:: A choice of ways to display the diary.
1009* Fancy Diary Display:: Sorting diary entries, using included diary files.
1010* Sexp Diary Entries:: More flexible diary entries.
753ad1de
GM
1011
1012Document Viewing
3f6db393 1013
8838673e
GM
1014* Navigation:: Navigation inside DocView buffers.
1015* Searching:: Searching inside documents.
1016* Slicing:: Specifying which part of pages should be displayed.
1017* Conversion:: Influencing and triggering conversion.
3f6db393 1018
8cf51b2c
GM
1019Gnus
1020
8838673e
GM
1021* Buffers of Gnus:: The group, summary, and article buffers.
1022* Gnus Startup:: What you should know about starting Gnus.
1023* Summary of Gnus:: A short description of the basic Gnus commands.
8cf51b2c
GM
1024
1025Running Shell Commands from Emacs
1026
8838673e
GM
1027* Single Shell:: How to run one shell command and return.
1028* Interactive Shell:: Permanent shell taking input via Emacs.
1029* Shell Mode:: Special Emacs commands used with permanent shell.
8cf51b2c
GM
1030* Shell Prompts:: Two ways to recognize shell prompts.
1031* Shell History:: Repeating previous commands in a shell buffer.
1032* Directory Tracking:: Keeping track when the subshell changes directory.
1033* Shell Options:: Options for customizing Shell mode.
1034* Terminal emulator:: An Emacs window as a terminal emulator.
1035* Term Mode:: Special Emacs commands used in Term mode.
1036* Paging in Term:: Paging in the terminal emulator.
8838673e 1037* Remote Host:: Connecting to another computer.
37e5d54a 1038* Serial Terminal:: Connecting to a serial port.
8cf51b2c 1039
753ad1de
GM
1040Shell Command History
1041
1042* Shell Ring:: Fetching commands from the history list.
1043* Shell History Copying::Moving to a command and then copying it.
1044* History References:: Expanding @samp{!}-style history references.
1045
8cf51b2c
GM
1046Using Emacs as a Server
1047
e670e599
CY
1048* Invoking emacsclient:: Connecting to the Emacs server.
1049* emacsclient Options:: Emacs client startup options.
8cf51b2c
GM
1050
1051Printing Hard Copies
1052
8838673e 1053* PostScript:: Printing buffers or regions as PostScript.
8cf51b2c
GM
1054* PostScript Variables:: Customizing the PostScript printing commands.
1055* Printing Package:: An optional advanced printing interface.
1056
1057Hyperlinking and Navigation Features
1058
1059* Browse-URL:: Following URLs.
60d8d164 1060* Goto Address mode:: Activating URLs.
8cf51b2c
GM
1061* FFAP:: Finding files etc. at point.
1062
1063Customization
1064
8838673e
GM
1065* Minor Modes:: Each minor mode is a feature you can turn on
1066 independently of any others.
753ad1de 1067* Easy Customization:: Convenient way to browse and change settings.
8838673e
GM
1068* Variables:: Many Emacs commands examine Emacs variables
1069 to decide what to do; by setting variables,
1070 you can control their functioning.
1071* Key Bindings:: The keymaps say what command each key runs.
1072 By changing them, you can "redefine keys".
1073* Syntax:: The syntax table controls how words and
1074 expressions are parsed.
1075* Init File:: How to write common customizations in the
1076 @file{.emacs} file.
8cf51b2c 1077
753ad1de
GM
1078Easy Customization Interface
1079
1080* Customization Groups:: How settings are classified in a structure.
1081* Browsing Custom:: Browsing and searching for settings.
1082* Changing a Variable:: How to edit an option's value and set the option.
1083* Saving Customizations:: Specifying the file for saving customizations.
1084* Face Customization:: How to edit the attributes of a face.
1085* Specific Customization:: Making a customization buffer for specific
1086 variables, faces, or groups.
1087* Custom Themes:: How to define collections of customized options
1088 that can be loaded and unloaded together.
1089
8cf51b2c
GM
1090Variables
1091
8838673e
GM
1092* Examining:: Examining or setting one variable's value.
1093* Hooks:: Hook variables let you specify programs for parts
1094 of Emacs to run on particular occasions.
1095* Locals:: Per-buffer values of variables.
8cf51b2c 1096* File Variables:: How files can specify variable values.
753ad1de
GM
1097* Directory Variables:: How variable values can be specified by directory.
1098
1099Local Variables in Files
1100
1101* Specifying File Variables:: Specifying file local variables.
1102* Safe File Variables:: Making sure file local variables are safe.
8cf51b2c
GM
1103
1104Customizing Key Bindings
1105
1106* Keymaps:: Generalities. The global keymap.
1107* Prefix Keymaps:: Keymaps for prefix keys.
1108* Local Keymaps:: Major and minor modes have their own keymaps.
1109* Minibuffer Maps:: The minibuffer uses its own local keymaps.
1110* Rebinding:: How to redefine one key's meaning conveniently.
1111* Init Rebinding:: Rebinding keys with your init file, @file{.emacs}.
f049d162 1112* Modifier Keys:: Using modifier keys in key bindings.
8cf51b2c
GM
1113* Function Keys:: Rebinding terminal function keys.
1114* Named ASCII Chars:: Distinguishing @key{TAB} from @kbd{C-i}, and so on.
1115* Mouse Buttons:: Rebinding mouse buttons in Emacs.
1116* Disabling:: Disabling a command means confirmation is required
1117 before it can be executed. This is done to protect
1118 beginners from surprises.
1119
1120The Init File, @file{~/.emacs}
1121
8838673e 1122* Init Syntax:: Syntax of constants in Emacs Lisp.
8cf51b2c
GM
1123* Init Examples:: How to do some things with an init file.
1124* Terminal Init:: Each terminal type can have an init file.
8838673e 1125* Find Init:: How Emacs finds the init file.
8cf51b2c
GM
1126* Init Non-ASCII:: Using non-@acronym{ASCII} characters in an init file.
1127
1128Dealing with Emacs Trouble
1129
1130* DEL Does Not Delete:: What to do if @key{DEL} doesn't delete.
1131* Stuck Recursive:: `[...]' in mode line around the parentheses.
1132* Screen Garbled:: Garbage on the screen.
1133* Text Garbled:: Garbage in the text.
1134* Memory Full:: How to cope when you run out of memory.
1135* After a Crash:: Recovering editing in an Emacs session that crashed.
1136* Emergency Escape:: Emergency escape---
1137 What to do if Emacs stops responding.
1138* Total Frustration:: When you are at your wits' end.
1139
1140Reporting Bugs
1141
63e1eaa1 1142* Known Problems:: How to read about known problems and bugs.
8cf51b2c 1143* Bug Criteria:: Have you really found a bug?
8838673e
GM
1144* Understanding Bug Reporting:: How to report a bug effectively.
1145* Checklist:: Steps to follow for a good bug report.
1146* Sending Patches:: How to send a patch for GNU Emacs.
8cf51b2c
GM
1147
1148Command Line Arguments for Emacs Invocation
1149
8838673e
GM
1150* Action Arguments:: Arguments to visit files, load libraries,
1151 and call functions.
8cf51b2c
GM
1152* Initial Options:: Arguments that take effect while starting Emacs.
1153* Command Example:: Examples of using command line arguments.
8838673e 1154* Resume Arguments:: Specifying arguments when you resume a running Emacs.
8cf51b2c
GM
1155* Environment:: Environment variables that Emacs uses.
1156* Display X:: Changing the default display and using remote login.
8838673e
GM
1157* Font X:: Choosing a font for text, under X.
1158* Colors:: Choosing display colors.
8cf51b2c 1159* Window Size X:: Start-up window size, under X.
8838673e 1160* Borders X:: Internal and external borders, under X.
8cf51b2c
GM
1161* Title X:: Specifying the initial frame's title.
1162* Icons X:: Choosing what sort of icon to use, under X.
1163* Misc X:: Other display options.
1164
1165Environment Variables
1166
8838673e
GM
1167* General Variables:: Environment variables that all versions of Emacs use.
1168* Misc Variables:: Certain system-specific variables.
8cf51b2c
GM
1169* MS-Windows Registry:: An alternative to the environment on MS-Windows.
1170
1171X Options and Resources
1172
1173* Resources:: Using X resources with Emacs (in general).
1174* Table of Resources:: Table of specific X resources that affect Emacs.
1175* Face Resources:: X resources for customizing faces.
1176* Lucid Resources:: X resources for Lucid menus.
1177* LessTif Resources:: X resources for LessTif and Motif menus.
1178* GTK resources:: Resources for GTK widgets.
1179
753ad1de
GM
1180GTK resources
1181
1182* GTK widget names:: How widgets in GTK are named in general.
1183* GTK Names in Emacs:: GTK widget names in Emacs.
1184* GTK styles:: What can be customized in a GTK widget.
1185
e93bc142 1186Emacs and Mac OS / GNUstep
8cf51b2c 1187
753ad1de
GM
1188* Mac / GNUstep Basics:: Basic Emacs usage under GNUstep or Mac OS.
1189* Mac / GNUstep Customization:: Customizations under GNUstep or Mac OS.
1190* Mac / GNUstep Events:: How window system events are handled.
1191* GNUstep Support:: Details on status of GNUstep support.
8cf51b2c
GM
1192
1193Emacs and Microsoft Windows/MS-DOS
1194
62d72a4a 1195* Windows Startup:: How to start Emacs on Windows.
8cf51b2c
GM
1196* Text and Binary:: Text files use CRLF to terminate lines.
1197* Windows Files:: File-name conventions on Windows.
1198* ls in Lisp:: Emulation of @code{ls} for Dired.
1199* Windows HOME:: Where Emacs looks for your @file{.emacs}.
1200* Windows Keyboard:: Windows-specific keyboard features.
1201* Windows Mouse:: Windows-specific mouse features.
1202* Windows Processes:: Running subprocesses on Windows.
1203* Windows Printing:: How to specify the printer on MS-Windows.
753ad1de 1204* Windows Fonts:: Specifying fonts on MS-Windows.
8cf51b2c
GM
1205* Windows Misc:: Miscellaneous Windows features.
1206* MS-DOS:: Using Emacs on MS-DOS (otherwise known as @dfn{MS-DOG}).
753ad1de
GM
1207
1208Emacs and MS-DOS
1209
1210* MS-DOS Keyboard:: Keyboard conventions on MS-DOS.
1211* MS-DOS Mouse:: Mouse conventions on MS-DOS.
1212* MS-DOS Display:: Fonts, frames and display size on MS-DOS.
1213* MS-DOS File Names:: File name conventions on MS-DOS.
1214* MS-DOS Printing:: Printing specifics on MS-DOS.
1215* MS-DOS and MULE:: Support for internationalization on MS-DOS.
1216* MS-DOS Processes:: Running subprocesses on MS-DOS.
1217
8cf51b2c
GM
1218@end detailmenu
1219@end menu
1220
1221@iftex
1222@unnumbered Preface
1223
1224 This manual documents the use and simple customization of the Emacs
1225editor. Simple Emacs customizations do not require you to be a
1226programmer, but if you are not interested in customizing, you can
1227ignore the customization hints.
1228
1229 This is primarily a reference manual, but can also be used as a
1230primer. If you are new to Emacs, we recommend you start with
753ad1de 1231the integrated, learn-by-doing tutorial, before reading the manual. To
8cf51b2c
GM
1232run the tutorial, start Emacs and type @kbd{C-h t}. The tutorial
1233describes commands, tells you when to try them, and explains the
1234results.
1235
1236 On first reading, just skim chapters 1 and 2, which describe the
1237notational conventions of the manual and the general appearance of the
1238Emacs display screen. Note which questions are answered in these
1239chapters, so you can refer back later. After reading chapter 4, you
1240should practice the commands shown there. The next few chapters
1241describe fundamental techniques and concepts that are used constantly.
1242You need to understand them thoroughly, so experiment with them
1243until you are fluent.
1244
1245 Chapters 14 through 19 describe intermediate-level features that are
1246useful for many kinds of editing. Chapter 20 and following chapters
1247describe optional but useful features; read those chapters when you
1248need them.
1249
753ad1de
GM
1250 Read the Common Problems chapter if Emacs does not seem to be
1251working properly. It explains how to cope with several common
1252problems (@pxref{Lossage}), as well as when and how to report Emacs
1253bugs (@pxref{Bugs}).
8cf51b2c
GM
1254
1255 To find the documentation of a particular command, look in the index.
1256Keys (character commands) and command names have separate indexes.
1257There is also a glossary, with a cross reference for each term.
1258
1259 This manual is available as a printed book and also as an Info file.
753ad1de
GM
1260The Info file is for use with the Info program, which is the principal
1261means of accessing on-line documentation in the GNU system. Both the
1262Emacs Info file and an Info reader are included with GNU Emacs. The
1263Info file and the printed book contain substantially the same text and
1264are generated from the same source files, which are also distributed
1265with GNU Emacs.
8cf51b2c
GM
1266
1267 GNU Emacs is a member of the Emacs editor family. There are many
1268Emacs editors, all sharing common principles of organization. For
1269information on the underlying philosophy of Emacs and the lessons
1270learned from its development, see @cite{Emacs, the Extensible,
1271Customizable Self-Documenting Display Editor}, available from
1272@url{ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-519A.pdf}.
1273
1274This edition of the manual is intended for use with GNU Emacs
7c2fb837 1275installed on GNU and Unix systems. GNU Emacs can also be used on
8cf51b2c 1276MS-DOS (also called MS-DOG), Microsoft Windows, and Macintosh systems.
7c2fb837
DN
1277Those systems use different file name syntax; in addition
1278MS-DOS does not support all GNU Emacs features. @xref{Microsoft
8cf51b2c 1279Windows}, for information about using Emacs on Windows.
6b5a97b2 1280@xref{Mac OS / GNUstep}, for information about using Emacs on
753ad1de 1281Macintosh (and GNUstep).
8cf51b2c
GM
1282@end iftex
1283
1284@node Distrib, Intro, Top, Top
1285@unnumbered Distribution
1286
1287GNU Emacs is @dfn{free software}; this means that everyone is free to
1288use it and free to redistribute it on certain conditions. GNU Emacs
1289is not in the public domain; it is copyrighted and there are
1290restrictions on its distribution, but these restrictions are designed
1291to permit everything that a good cooperating citizen would want to do.
1292What is not allowed is to try to prevent others from further sharing
1293any version of GNU Emacs that they might get from you. The precise
1294conditions are found in the GNU General Public License that comes with
1295Emacs and also appears in this manual@footnote{This manual is itself
f43a822c
KB
1296covered by the GNU Free Documentation License (see the reverse title
1297page in the printed manual or view the full source for online formats
1298to see the precise conditions). This license is similar in spirit to
1299the General Public License, but is more suitable for documentation.
1300@xref{GNU Free Documentation License}.}. @xref{Copying}.
8cf51b2c
GM
1301
1302One way to get a copy of GNU Emacs is from someone else who has it.
1303You need not ask for our permission to do so, or tell any one else;
1304just copy it. If you have access to the Internet, you can get the
1305latest distribution version of GNU Emacs by anonymous FTP; see
1306@url{http://www.gnu.org/software/emacs} on our website for more
1307information.
1308
1309You may also receive GNU Emacs when you buy a computer. Computer
1310manufacturers are free to distribute copies on the same terms that apply to
1311everyone else. These terms require them to give you the full sources,
1312including whatever changes they may have made, and to permit you to
1313redistribute the GNU Emacs received from them under the usual terms of the
1314General Public License. In other words, the program must be free for you
1315when you get it, not just free for the manufacturer.
1316
753ad1de 1317@c FIXME no longer true?
8cf51b2c
GM
1318You can also order copies of GNU Emacs from the Free Software
1319Foundation. This is a convenient and reliable way to get a copy; it is
1320also a good way to help fund our work. We also sell hardcopy versions
1321of this manual and @cite{An Introduction to Programming in Emacs Lisp},
753ad1de
GM
1322by Robert J. Chassell. You can visit our online store at
1323@url{http://shop.fsf.org/}. For further information,
8cf51b2c
GM
1324write to
1325
1326@display
1327Free Software Foundation
132851 Franklin Street, Fifth Floor
1329Boston, MA 02110-1301
1330USA
1331@end display
1332
753ad1de
GM
1333The income from sales goes to support the foundation's purpose: the
1334development of new free software, and improvements to our existing
1335programs including GNU Emacs.
8cf51b2c 1336
753ad1de 1337@c FIXME you can't order a CD any more.
8cf51b2c
GM
1338If you find GNU Emacs useful, please @strong{send a donation} to the
1339Free Software Foundation to support our work. Donations to the Free
1340Software Foundation are tax deductible in the US. If you use GNU Emacs
1341at your workplace, please suggest that the company make a donation. If
1342company policy is unsympathetic to the idea of donating to charity, you
1343might instead suggest ordering a CD-ROM from the Foundation
1344occasionally, or subscribing to periodic updates.
1345
1346@iftex
1347@node Acknowledgments, Intro, Distrib, Top
1348@unnumberedsec Acknowledgments
1349
1350Contributors to GNU Emacs include Jari Aalto, Per Abrahamsen, Tomas
8353da9c
GM
1351Abrahamsson, Jay K.@: Adams, Michael Albinus, Nagy Andras, Ralf Angeli,
1352Joe Arceneaux, Miles Bader, David Bakhash, Juanma Barranquero, Eli
276bbe96
GM
1353Barzilay, Thomas Baumann, Steven L.@: Baur, Jay Belanger, Alexander L.@:
1354Belikoff, Boaz Ben-Zvi, Karl Berry, Anna M.@: Bigatti, Ray Blaak, Jim
5baee236 1355