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