1 \input texinfo @c -*-texinfo-*-
4 @settitle GNU Emacs Lisp Reference Manual
7 @c Versino of the manual.
12 * Elisp: (elisp). The Emacs Lisp Reference Manual.
16 @setchapternewpage odd
24 @c We use the "type index" to index new functions and variables.
25 @c @syncodeindex tp fn
28 This Info file contains edition @value{VERSION} of the GNU Emacs Lisp
29 Reference Manual, corresponding to Emacs version 21.3.
30 @c Please REMEMBER to update edition number in *four* places in this file
31 @c and also in *one* place in intro.texi and *one* in README.
33 Published by the Free Software Foundation
34 59 Temple Place, Suite 330
35 Boston, MA 02111-1307 USA
37 Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999,@*
38 2000, 2002 Free Software Foundation, Inc.
40 Permission is granted to copy, distribute and/or modify this document
41 under the terms of the GNU Free Documentation License, Version 1.1 or
42 any later version published by the Free Software Foundation; with the
43 Invariant Sections being ``GNU General Public License'', with the Front-Cover texts being
44 ``A GNU Manual'', and with the Back-Cover Texts as in (a) below. A copy
45 of the license is included in the section entitled ``GNU Free
46 Documentation License''.
48 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
49 this GNU Manual, like GNU software. Copies published by the Free
50 Software Foundation raise funds for GNU development.''
54 @title GNU Emacs Lisp Reference Manual
55 @subtitle For Emacs Version 21
56 @c The edition number appears in several places in this file
57 @c and also in the file intro.texi.
58 @subtitle Revision @value{VERSION}, January 2002
60 @author by Bil Lewis, Dan LaLiberte, Richard Stallman
61 @author and the GNU Manual Group
63 @vskip 0pt plus 1filll
64 Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,@*
65 1999, 2000, 2002 Free Software Foundation, Inc.
68 Edition @value{VERSION} @*
69 Revised for Emacs Version 21.3,@*
75 Published by the Free Software Foundation @*
76 59 Temple Place, Suite 330@*
77 Boston, MA 02111-1307 USA
79 Permission is granted to copy, distribute and/or modify this document
80 under the terms of the GNU Free Documentation License, Version 1.1 or
81 any later version published by the Free Software Foundation; with the
82 Invariant Sections being ``Copying'', with the Front-Cover texts being
83 ``A GNU Manual'', and with the Back-Cover Texts as in (a) below. A copy
84 of the license is included in the section entitled ``GNU Free
85 Documentation License''.
87 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
88 this GNU Manual, like GNU software. Copies published by the Free
89 Software Foundation raise funds for GNU development.''
91 Cover art by Etienne Suvasa.
95 @node Top, Introduction, (dir), (dir)
98 This Info file contains edition @value{VERSION} of the GNU Emacs Lisp
99 Reference Manual, corresponding to GNU Emacs version 21.3.
103 * Introduction:: Introduction and conventions used.
104 * Standards: Coding Conventions. Coding conventions for Emacs Lisp.
106 * Lisp Data Types:: Data types of objects in Emacs Lisp.
107 * Numbers:: Numbers and arithmetic functions.
108 * Strings and Characters:: Strings, and functions that work on them.
109 * Lists:: Lists, cons cells, and related functions.
110 * Sequences Arrays Vectors:: Lists, strings and vectors are called sequences.
111 Certain functions act on any kind of sequence.
112 The description of vectors is here as well.
113 * Hash Tables:: Very fast lookup-tables.
114 * Symbols:: Symbols represent names, uniquely.
116 * Evaluation:: How Lisp expressions are evaluated.
117 * Control Structures:: Conditionals, loops, nonlocal exits.
118 * Variables:: Using symbols in programs to stand for values.
119 * Functions:: A function is a Lisp program
120 that can be invoked from other functions.
121 * Macros:: Macros are a way to extend the Lisp language.
122 * Customization:: Writing customization declarations.
124 * Loading:: Reading files of Lisp code into Lisp.
125 * Byte Compilation:: Compilation makes programs run faster.
126 * Advising Functions:: Adding to the definition of a function.
127 * Debugging:: Tools and tips for debugging Lisp programs.
129 * Read and Print:: Converting Lisp objects to text and back.
130 * Minibuffers:: Using the minibuffer to read input.
131 * Command Loop:: How the editor command loop works,
132 and how you can call its subroutines.
133 * Keymaps:: Defining the bindings from keys to commands.
134 * Modes:: Defining major and minor modes.
135 * Documentation:: Writing and using documentation strings.
137 * Files:: Accessing files.
138 * Backups and Auto-Saving:: Controlling how backups and auto-save
140 * Buffers:: Creating and using buffer objects.
141 * Windows:: Manipulating windows and displaying buffers.
142 * Frames:: Making multiple X windows.
143 * Positions:: Buffer positions and motion functions.
144 * Markers:: Markers represent positions and update
145 automatically when the text is changed.
147 * Text:: Examining and changing text in buffers.
148 * Non-ASCII Characters:: Non-ASCII text in buffers and strings.
149 * Searching and Matching:: Searching buffers for strings or regexps.
150 * Syntax Tables:: The syntax table controls word and list parsing.
151 * Abbrevs:: How Abbrev mode works, and its data structures.
153 * Processes:: Running and communicating with subprocesses.
154 * Display:: Features for controlling the screen display.
155 * Calendar:: Customizing the calendar and diary.
156 * System Interface:: Getting the user id, system type, environment
157 variables, and other such things.
161 * Antinews:: Info for users downgrading to Emacs 20.
162 * GNU Free Documentation License:: The license for this documentation
163 * GPL:: Conditions for copying and changing GNU Emacs.
164 * Tips:: Advice and coding conventions for Emacs Lisp.
165 * GNU Emacs Internals:: Building and dumping Emacs;
166 internal data structures.
167 * Standard Errors:: List of all error symbols.
168 * Standard Buffer-Local Variables::
169 List of variables buffer-local in all buffers.
170 * Standard Keymaps:: List of standard keymaps.
171 * Standard Hooks:: List of standard hook variables.
173 * Index:: Index including concepts, functions, variables,
176 * New Symbols:: New functions and variables in Emacs 21.
178 --- The Detailed Node Listing ---
180 Here are other nodes that are inferiors of those already listed,
181 mentioned here so you can get to them in one step:
185 * Caveats:: Flaws and a request for help.
186 * Lisp History:: Emacs Lisp is descended from Maclisp.
187 * Conventions:: How the manual is formatted.
188 * Acknowledgements:: The authors, editors, and sponsors of this manual.
192 * Some Terms:: Explanation of terms we use in this manual.
193 * nil and t:: How the symbols @code{nil} and @code{t} are used.
194 * Evaluation Notation:: The format we use for examples of evaluation.
195 * Printing Notation:: The format we use for examples that print output.
196 * Error Messages:: The format we use for examples of errors.
197 * Buffer Text Notation:: The format we use for buffer contents in examples.
198 * Format of Descriptions:: Notation for describing functions, variables, etc.
202 * Coding Conventions:: Conventions for clean and robust programs.
203 * Compilation Tips:: Making compiled code run fast.
204 * Documentation Tips:: Writing readable documentation strings.
205 * Comment Tips:: Conventions for writing comments.
206 * Library Headers:: Standard headers for library packages.
208 Format of Descriptions
210 * A Sample Function Description::
211 * A Sample Variable Description::
215 * Printed Representation:: How Lisp objects are represented as text.
216 * Comments:: Comments and their formatting conventions.
217 * Programming Types:: Types found in all Lisp systems.
218 * Editing Types:: Types specific to Emacs.
219 * Type Predicates:: Tests related to types.
220 * Equality Predicates:: Tests of equality between any two objects.
224 * Integer Type:: Numbers without fractional parts.
225 * Floating Point Type:: Numbers with fractional parts and with a large range.
226 * Character Type:: The representation of letters, numbers and
228 * Sequence Type:: Both lists and arrays are classified as sequences.
229 * Cons Cell Type:: Cons cells, and lists (which are made from cons cells).
230 * Array Type:: Arrays include strings and vectors.
231 * String Type:: An (efficient) array of characters.
232 * Vector Type:: One-dimensional arrays.
233 * Symbol Type:: A multi-use object that refers to a function,
234 variable, property list, or itself.
235 * Function Type:: A piece of executable code you can call from elsewhere.
236 * Macro Type:: A method of expanding an expression into another
237 expression, more fundamental but less pretty.
238 * Primitive Function Type:: A function written in C, callable from Lisp.
239 * Byte-Code Type:: A function written in Lisp, then compiled.
240 * Autoload Type:: A type used for automatically loading seldom-used
245 * Dotted Pair Notation:: An alternative syntax for lists.
246 * Association List Type:: A specially constructed list.
250 * Buffer Type:: The basic object of editing.
251 * Window Type:: What makes buffers visible.
252 * Window Configuration Type::Save what the screen looks like.
253 * Marker Type:: A position in a buffer.
254 * Process Type:: A process running on the underlying OS.
255 * Stream Type:: Receive or send characters.
256 * Keymap Type:: What function a keystroke invokes.
257 * Overlay Type:: How an overlay is represented.
261 * Integer Basics:: Representation and range of integers.
262 * Float Basics:: Representation and range of floating point.
263 * Predicates on Numbers:: Testing for numbers.
264 * Comparison of Numbers:: Equality and inequality predicates.
265 * Arithmetic Operations:: How to add, subtract, multiply and divide.
266 * Bitwise Operations:: Logical and, or, not, shifting.
267 * Numeric Conversions:: Converting float to integer and vice versa.
268 * Math Functions:: Trig, exponential and logarithmic functions.
269 * Random Numbers:: Obtaining random integers, predictable or not.
271 Strings and Characters
273 * String Basics:: Basic properties of strings and characters.
274 * Predicates for Strings:: Testing whether an object is a string or char.
275 * Creating Strings:: Functions to allocate new strings.
276 * Text Comparison:: Comparing characters or strings.
277 * String Conversion:: Converting characters or strings and vice versa.
278 * Formatting Strings:: @code{format}: Emacs's analogue of @code{printf}.
279 * Case Conversion:: Case conversion functions.
283 * Cons Cells:: How lists are made out of cons cells.
284 * Lists as Boxes:: Graphical notation to explain lists.
285 * List-related Predicates:: Is this object a list? Comparing two lists.
286 * List Elements:: Extracting the pieces of a list.
287 * Building Lists:: Creating list structure.
288 * Modifying Lists:: Storing new pieces into an existing list.
289 * Sets And Lists:: A list can represent a finite mathematical set.
290 * Association Lists:: A list can represent a finite relation or mapping.
292 Modifying Existing List Structure
294 * Setcar:: Replacing an element in a list.
295 * Setcdr:: Replacing part of the list backbone.
296 This can be used to remove or add elements.
297 * Rearrangement:: Reordering the elements in a list; combining lists.
299 Sequences, Arrays, and Vectors
301 * Sequence Functions:: Functions that accept any kind of sequence.
302 * Arrays:: Characteristics of arrays in Emacs Lisp.
303 * Array Functions:: Functions specifically for arrays.
304 * Vectors:: Functions specifically for vectors.
308 * Symbol Components:: Symbols have names, values, function definitions
310 * Definitions:: A definition says how a symbol will be used.
311 * Creating Symbols:: How symbols are kept unique.
312 * Property Lists:: Each symbol has a property list
313 for recording miscellaneous information.
317 * Intro Eval:: Evaluation in the scheme of things.
318 * Eval:: How to invoke the Lisp interpreter explicitly.
319 * Forms:: How various sorts of objects are evaluated.
320 * Quoting:: Avoiding evaluation (to put constants in
325 * Self-Evaluating Forms:: Forms that evaluate to themselves.
326 * Symbol Forms:: Symbols evaluate as variables.
327 * Classifying Lists:: How to distinguish various sorts of list forms.
328 * Function Forms:: Forms that call functions.
329 * Macro Forms:: Forms that call macros.
330 * Special Forms:: ``Special forms'' are idiosyncratic primitives,
331 most of them extremely important.
332 * Autoloading:: Functions set up to load files
333 containing their real definitions.
337 * Sequencing:: Evaluation in textual order.
338 * Conditionals:: @code{if}, @code{cond}.
339 * Combining Conditions:: @code{and}, @code{or}, @code{not}.
340 * Iteration:: @code{while} loops.
341 * Nonlocal Exits:: Jumping out of a sequence.
345 * Catch and Throw:: Nonlocal exits for the program's own purposes.
346 * Examples of Catch:: Showing how such nonlocal exits can be written.
347 * Errors:: How errors are signaled and handled.
348 * Cleanups:: Arranging to run a cleanup form if an
353 * Signaling Errors:: How to report an error.
354 * Processing of Errors:: What Emacs does when you report an error.
355 * Handling Errors:: How you can trap errors and continue execution.
356 * Error Symbols:: How errors are classified for trapping them.
360 * Global Variables:: Variable values that exist permanently, everywhere.
361 * Constant Variables:: Certain "variables" have values that never change.
362 * Local Variables:: Variable values that exist only temporarily.
363 * Void Variables:: Symbols that lack values.
364 * Defining Variables:: A definition says a symbol is used as a variable.
365 * Accessing Variables:: Examining values of variables whose names
366 are known only at run time.
367 * Setting Variables:: Storing new values in variables.
368 * Variable Scoping:: How Lisp chooses among local and global values.
369 * Buffer-Local Variables:: Variable values in effect only in one buffer.
371 Scoping Rules for Variable Bindings
373 * Scope:: Scope means where in the program a value
374 is visible. Comparison with other languages.
375 * Extent:: Extent means how long in time a value exists.
376 * Impl of Scope:: Two ways to implement dynamic scoping.
377 * Using Scoping:: How to use dynamic scoping carefully and
380 Buffer-Local Variables
382 * Intro to Buffer-Local:: Introduction and concepts.
383 * Creating Buffer-Local:: Creating and destroying buffer-local bindings.
384 * Default Value:: The default value is seen in buffers
385 that don't have their own buffer-local values.
389 * What Is a Function:: Lisp functions vs primitives; terminology.
390 * Lambda Expressions:: How functions are expressed as Lisp objects.
391 * Function Names:: A symbol can serve as the name of a function.
392 * Defining Functions:: Lisp expressions for defining functions.
393 * Calling Functions:: How to use an existing function.
394 * Mapping Functions:: Applying a function to each element of a list, etc.
395 * Anonymous Functions:: Lambda-expressions are functions with no names.
396 * Function Cells:: Accessing or setting the function definition
398 * Related Topics:: Cross-references to specific Lisp primitives
399 that have a special bearing on how
404 * Lambda Components:: The parts of a lambda expression.
405 * Simple Lambda:: A simple example.
406 * Argument List:: Details and special features of argument lists.
407 * Function Documentation:: How to put documentation in a function.
411 * Simple Macro:: A basic example.
412 * Expansion:: How, when and why macros are expanded.
413 * Compiling Macros:: How macros are expanded by the compiler.
414 * Defining Macros:: How to write a macro definition.
415 * Backquote:: Easier construction of list structure.
416 * Problems with Macros:: Don't evaluate the macro arguments too many times.
417 Don't hide the user's variables.
421 * How Programs Do Loading:: The @code{load} function and others.
422 * Autoload:: Setting up a function to autoload.
423 * Named Features:: Loading a library if it isn't already loaded.
424 * Repeated Loading:: Precautions about loading a file twice.
428 * Compilation Functions:: Byte compilation functions.
429 * Disassembly:: Disassembling byte-code; how to read byte-code.
433 * Simple Advice:: A simple example to explain the basics of advice.
434 * Defining Advice:: Detailed description of @code{defadvice}.
435 * Computed Advice:: ...is to @code{defadvice} as @code{fset} is to @code{defun}.
436 * Activation of Advice:: Advice doesn't do anything until you activate it.
437 * Enabling Advice:: You can enable or disable each piece of advice.
438 * Preactivation:: Preactivation is a way of speeding up the
439 loading of compiled advice.
440 * Argument Access in Advice:: How advice can access the function's arguments.
441 * Advising Primitives:: Accessing arguments when advising a primitive.
442 * Combined Definition:: How advice is implemented.
444 Debugging Lisp Programs
446 * Debugger:: How the Emacs Lisp debugger is implemented.
447 * Syntax Errors:: How to find syntax errors.
448 * Compilation Errors:: How to find errors that show up in
450 * Edebug:: A source-level Emacs Lisp debugger.
454 * Error Debugging:: Entering the debugger when an error happens.
455 * Function Debugging:: Entering it when a certain function is called.
456 * Explicit Debug:: Entering it at a certain point in the program.
457 * Using Debugger:: What the debugger does; what you see while in it.
458 * Debugger Commands:: Commands used while in the debugger.
459 * Invoking the Debugger:: How to call the function @code{debug}.
460 * Internals of Debugger:: Subroutines of the debugger, and global variables.
462 Debugging Invalid Lisp Syntax
464 * Excess Open:: How to find a spurious open paren or missing close.
465 * Excess Close:: How to find a spurious close paren or missing open.
467 Reading and Printing Lisp Objects
469 * Streams Intro:: Overview of streams, reading and printing.
470 * Input Streams:: Various data types that can be used as
472 * Input Functions:: Functions to read Lisp objects from text.
473 * Output Streams:: Various data types that can be used as
475 * Output Functions:: Functions to print Lisp objects as text.
479 * Intro to Minibuffers:: Basic information about minibuffers.
480 * Text from Minibuffer:: How to read a straight text string.
481 * Object from Minibuffer:: How to read a Lisp object or expression.
482 * Completion:: How to invoke and customize completion.
483 * Yes-or-No Queries:: Asking a question with a simple answer.
484 * Minibuffer Misc:: Various customization hooks and variables.
488 * Basic Completion:: Low-level functions for completing strings.
489 (These are too low level to use the minibuffer.)
490 * Minibuffer Completion:: Invoking the minibuffer with completion.
491 * Completion Commands:: Minibuffer commands that do completion.
492 * High-Level Completion:: Convenient special cases of completion
493 (reading buffer name, file name, etc.)
494 * Reading File Names:: Using completion to read file names.
495 * Programmed Completion:: Finding the completions for a given file name.
499 * Command Overview:: How the command loop reads commands.
500 * Defining Commands:: Specifying how a function should read arguments.
501 * Interactive Call:: Calling a command, so that it will read arguments.
502 * Command Loop Info:: Variables set by the command loop for you to examine.
503 * Input Events:: What input looks like when you read it.
504 * Reading Input:: How to read input events from the keyboard or mouse.
505 * Waiting:: Waiting for user input or elapsed time.
506 * Quitting:: How @kbd{C-g} works. How to catch or defer quitting.
507 * Prefix Command Arguments:: How the commands to set prefix args work.
508 * Recursive Editing:: Entering a recursive edit,
509 and why you usually shouldn't.
510 * Disabling Commands:: How the command loop handles disabled commands.
511 * Command History:: How the command history is set up, and how accessed.
512 * Keyboard Macros:: How keyboard macros are implemented.
516 * Using Interactive:: General rules for @code{interactive}.
517 * Interactive Codes:: The standard letter-codes for reading arguments
519 * Interactive Examples:: Examples of how to read interactive arguments.
523 * Keymap Terminology:: Definitions of terms pertaining to keymaps.
524 * Format of Keymaps:: What a keymap looks like as a Lisp object.
525 * Creating Keymaps:: Functions to create and copy keymaps.
526 * Inheritance and Keymaps:: How one keymap can inherit the bindings
528 * Prefix Keys:: Defining a key with a keymap as its definition.
529 * Menu Keymaps:: A keymap can define a menu for X
530 or for use from the terminal.
531 * Active Keymaps:: Each buffer has a local keymap
532 to override the standard (global) bindings.
533 Each minor mode can also override them.
534 * Key Lookup:: How extracting elements from keymaps works.
535 * Functions for Key Lookup:: How to request key lookup.
536 * Changing Key Bindings:: Redefining a key in a keymap.
537 * Key Binding Commands:: Interactive interfaces for redefining keys.
538 * Scanning Keymaps:: Looking through all keymaps, for printing help.
540 Major and Minor Modes
542 * Major Modes:: Defining major modes.
543 * Minor Modes:: Defining minor modes.
544 * Mode Line Format:: Customizing the text that appears in the mode line.
545 * Hooks:: How to use hooks; how to write code that
550 * Major Mode Conventions:: Coding conventions for keymaps, etc.
551 * Example Major Modes:: Text mode and Lisp modes.
552 * Auto Major Mode:: How Emacs chooses the major mode automatically.
553 * Mode Help:: Finding out how to use a mode.
557 * Minor Mode Conventions:: Tips for writing a minor mode.
558 * Keymaps and Minor Modes:: How a minor mode can have its own keymap.
562 * Mode Line Data:: The data structure that controls the mode line.
563 * Mode Line Variables:: Variables used in that data structure.
564 * %-Constructs:: Putting information into a mode line.
568 * Documentation Basics:: Good style for doc strings.
569 Where to put them. How Emacs stores them.
570 * Accessing Documentation:: How Lisp programs can access doc strings.
571 * Keys in Documentation:: Substituting current key bindings.
572 * Describing Characters:: Making printable descriptions of
573 non-printing characters and key sequences.
574 * Help Functions:: Subroutines used by Emacs help facilities.
578 * Visiting Files:: Reading files into Emacs buffers for editing.
579 * Saving Buffers:: Writing changed buffers back into files.
580 * Reading from Files:: Reading files into other buffers.
581 * Writing to Files:: Writing new files from parts of buffers.
582 * File Locks:: Locking and unlocking files, to prevent
583 simultaneous editing by two people.
584 * Information about Files:: Testing existence, accessibility, size of files.
585 * Contents of Directories:: Getting a list of the files in a directory.
586 * Changing Files:: Renaming files, changing protection, etc.
587 * File Names:: Decomposing and expanding file names.
591 * Visiting Functions:: The usual interface functions for visiting.
592 * Subroutines of Visiting:: Lower-level subroutines that they use.
594 Information about Files
596 * Testing Accessibility:: Is a given file readable? Writable?
597 * Kinds of Files:: Is it a directory? A link?
598 * File Attributes:: How large is it? Any other names? Etc.
602 * File Name Components:: The directory part of a file name, and the rest.
603 * Directory Names:: A directory's name as a directory
604 is different from its name as a file.
605 * Relative File Names:: Some file names are relative to a
607 * File Name Expansion:: Converting relative file names to absolute ones.
608 * Unique File Names:: Generating names for temporary files.
609 * File Name Completion:: Finding the completions for a given file name.
611 Backups and Auto-Saving
613 * Backup Files:: How backup files are made; how their names
615 * Auto-Saving:: How auto-save files are made; how their
617 * Reverting:: @code{revert-buffer}, and how to customize
622 * Making Backups:: How Emacs makes backup files, and when.
623 * Rename or Copy:: Two alternatives: renaming the old file
625 * Numbered Backups:: Keeping multiple backups for each source file.
626 * Backup Names:: How backup file names are computed; customization.
630 * Buffer Basics:: What is a buffer?
631 * Buffer Names:: Accessing and changing buffer names.
632 * Buffer File Name:: The buffer file name indicates which file
634 * Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved.
635 * Modification Time:: Determining whether the visited file was changed
636 ``behind Emacs's back''.
637 * Read Only Buffers:: Modifying text is not allowed in a
639 * The Buffer List:: How to look at all the existing buffers.
640 * Creating Buffers:: Functions that create buffers.
641 * Killing Buffers:: Buffers exist until explicitly killed.
642 * Current Buffer:: Designating a buffer as current
643 so primitives will access its contents.
647 * Basic Windows:: Basic information on using windows.
648 * Splitting Windows:: Splitting one window into two windows.
649 * Deleting Windows:: Deleting a window gives its space to other windows.
650 * Selecting Windows:: The selected window is the one that you edit in.
651 * Cyclic Window Ordering:: Moving around the existing windows.
652 * Buffers and Windows:: Each window displays the contents of a buffer.
653 * Displaying Buffers:: Higher-lever functions for displaying a buffer
654 and choosing a window for it.
655 * Window Point:: Each window has its own location of point.
656 * Window Start:: The display-start position controls which text
657 is on-screen in the window.
658 * Vertical Scrolling:: Moving text up and down in the window.
659 * Horizontal Scrolling:: Moving text sideways on the window.
660 * Size of Window:: Accessing the size of a window.
661 * Resizing Windows:: Changing the size of a window.
662 * Window Configurations:: Saving and restoring the state of the screen.
666 * Creating Frames:: Creating additional frames.
667 * Multiple Displays:: Creating frames on other X displays.
668 * Frame Parameters:: Controlling frame size, position, font, etc.
669 * Frame Titles:: Automatic updating of frame titles.
670 * Deleting Frames:: Frames last until explicitly deleted.
671 * Finding All Frames:: How to examine all existing frames.
672 * Frames and Windows:: A frame contains windows;
673 display of text always works through windows.
674 * Minibuffers and Frames:: How a frame finds the minibuffer to use.
675 * Input Focus:: Specifying the selected frame.
676 * Visibility of Frames:: Frames may be visible or invisible, or icons.
677 * Raising and Lowering:: Raising a frame makes it hide other X windows;
678 lowering it puts it underneath the others.
679 * Frame Configurations:: Saving the state of all frames.
680 * Mouse Tracking:: Getting events that say when the mouse moves.
681 * Mouse Position:: Asking where the mouse is, or moving it.
682 * Pop-Up Menus:: Displaying a menu for the user to select from.
683 * Dialog Boxes:: Displaying a box to ask yes or no.
684 * Pointer Shapes:: Specifying the shape of the mouse pointer.
685 * Window System Selections::Transferring text to and from other windows.
686 * Color Names:: Getting the definitions of color names.
687 * Resources:: Getting resource values from the server.
688 * Display Feature Testing:: Determining the features of a terminal.
692 * Point:: The special position where editing takes place.
693 * Motion:: Changing point.
694 * Excursions:: Temporary motion and buffer changes.
695 * Narrowing:: Restricting editing to a portion of the buffer.
699 * Character Motion:: Moving in terms of characters.
700 * Word Motion:: Moving in terms of words.
701 * Buffer End Motion:: Moving to the beginning or end of the buffer.
702 * Text Lines:: Moving in terms of lines of text.
703 * Screen Lines:: Moving in terms of lines as displayed.
704 * List Motion:: Moving by parsing lists and sexps.
705 * Skipping Characters:: Skipping characters belonging to a certain set.
709 * Overview of Markers:: The components of a marker, and how it relocates.
710 * Predicates on Markers:: Testing whether an object is a marker.
711 * Creating Markers:: Making empty markers or markers at certain places.
712 * Information from Markers:: Finding the marker's buffer or character
714 * Moving Markers:: Moving the marker to a new buffer or position.
715 * The Mark:: How ``the mark'' is implemented with a marker.
716 * The Region:: How to access ``the region''.
720 * Near Point:: Examining text in the vicinity of point.
721 * Buffer Contents:: Examining text in a general fashion.
722 * Insertion:: Adding new text to a buffer.
723 * Commands for Insertion:: User-level commands to insert text.
724 * Deletion:: Removing text from a buffer.
725 * User-Level Deletion:: User-level commands to delete text.
726 * The Kill Ring:: Where removed text sometimes is saved for
728 * Undo:: Undoing changes to the text of a buffer.
729 * Auto Filling:: How auto-fill mode is implemented to break lines.
730 * Filling:: Functions for explicit filling.
731 * Margins:: How to specify margins for filling commands.
732 * Sorting:: Functions for sorting parts of the buffer.
733 * Indentation:: Functions to insert or adjust indentation.
734 * Columns:: Computing horizontal positions, and using them.
735 * Case Changes:: Case conversion of parts of the buffer.
736 * Text Properties:: Assigning Lisp property lists to text characters.
737 * Substitution:: Replacing a given character wherever it appears.
738 * Transposition:: Swapping two portions of a buffer.
739 * Registers:: How registers are implemented. Accessing
740 the text or position stored in a register.
741 * Change Hooks:: Supplying functions to be run when text is changed.
745 * Kill Ring Concepts:: What text looks like in the kill ring.
746 * Kill Functions:: Functions that kill text.
747 * Yank Commands:: Commands that access the kill ring.
748 * Low-Level Kill Ring:: Functions and variables for kill ring access.
749 * Internals of Kill Ring:: Variables that hold kill-ring data.
753 * Primitive Indent:: Functions used to count and insert indentation.
754 * Mode-Specific Indent:: Customize indentation for different modes.
755 * Region Indent:: Indent all the lines in a region.
756 * Relative Indent:: Indent the current line based on previous lines.
757 * Indent Tabs:: Adjustable, typewriter-like tab stops.
758 * Motion by Indent:: Move to first non-blank character.
762 * Examining Properties:: Looking at the properties of one character.
763 * Changing Properties:: Setting the properties of a range of text.
764 * Property Search:: Searching for where a property changes value.
765 * Special Properties:: Particular properties with special meanings.
766 * Format Properties:: Properties for representing formatting of text.
767 * Sticky Properties:: How inserted text gets properties from
769 * Saving Properties:: Saving text properties in files, and reading
771 * Lazy Properties:: Computing text properties in a lazy fashion
772 only when text is examined.
773 * Clickable Text:: Using text properties to make regions of text
774 do something when you click on them.
775 * Fields:: The @code{field} property defines
776 fields within the buffer.
777 * Not Intervals:: Why text properties do not use
778 Lisp-visible text intervals.
782 * Text Representations:: Unibyte and multibyte representations
783 * Converting Representations:: Converting unibyte to multibyte and vice versa.
784 * Selecting a Representation:: Treating a byte sequence as unibyte or multi.
785 * Character Codes:: How unibyte and multibyte relate to
786 codes of individual characters.
787 * Character Sets:: The space of possible characters codes
788 is divided into various character sets.
789 * Chars and Bytes:: More information about multibyte encodings.
790 * Splitting Characters:: Converting a character to its byte sequence.
791 * Scanning Charsets:: Which character sets are used in a buffer?
792 * Translation of Characters:: Translation tables are used for conversion.
793 * Coding Systems:: Coding systems are conversions for saving files.
794 * Input Methods:: Input methods allow users to enter various
795 non-ASCII characters without special keyboards.
796 * Locales:: Interacting with the POSIX locale.
798 Searching and Matching
800 * String Search:: Search for an exact match.
801 * Regular Expressions:: Describing classes of strings.
802 * Regexp Search:: Searching for a match for a regexp.
803 * Match Data:: Finding out which part of the text matched
804 various parts of a regexp, after regexp search.
805 * Saving Match Data:: Saving and restoring this information.
806 * Standard Regexps:: Useful regexps for finding sentences, pages,...
807 * Searching and Case:: Case-independent or case-significant searching.
811 * Syntax of Regexps:: Rules for writing regular expressions.
812 * Regexp Example:: Illustrates regular expression syntax.
816 * Syntax Descriptors:: How characters are classified.
817 * Syntax Table Functions:: How to create, examine and alter syntax tables.
818 * Parsing Expressions:: Parsing balanced expressions
819 using the syntax table.
820 * Standard Syntax Tables:: Syntax tables used by various major modes.
821 * Syntax Table Internals:: How syntax table information is stored.
825 * Syntax Class Table:: Table of syntax classes.
826 * Syntax Flags:: Additional flags each character can have.
828 Abbrevs And Abbrev Expansion
830 * Abbrev Mode:: Setting up Emacs for abbreviation.
831 * Tables: Abbrev Tables. Creating and working with abbrev tables.
832 * Defining Abbrevs:: Specifying abbreviations and their expansions.
833 * Files: Abbrev Files. Saving abbrevs in files.
834 * Expansion: Abbrev Expansion. Controlling expansion; expansion subroutines.
835 * Standard Abbrev Tables:: Abbrev tables used by various major modes.
839 * Subprocess Creation:: Functions that start subprocesses.
840 * Synchronous Processes:: Details of using synchronous subprocesses.
841 * Asynchronous Processes:: Starting up an asynchronous subprocess.
842 * Deleting Processes:: Eliminating an asynchronous subprocess.
843 * Process Information:: Accessing run-status and other attributes.
844 * Input to Processes:: Sending input to an asynchronous subprocess.
845 * Signals to Processes:: Stopping, continuing or interrupting
846 an asynchronous subprocess.
847 * Output from Processes:: Collecting output from an asynchronous subprocess.
848 * Sentinels:: Sentinels run when process run-status changes.
849 * Network:: Opening network connections.
851 Receiving Output from Processes
853 * Process Buffers:: If no filter, output is put in a buffer.
854 * Filter Functions:: Filter functions accept output from the process.
855 * Accepting Output:: How to wait until process output arrives.
857 Operating System Interface
859 * Starting Up:: Customizing Emacs start-up processing.
860 * Getting Out:: How exiting works (permanent or temporary).
861 * System Environment:: Distinguish the name and kind of system.
862 * Terminal Input:: Recording terminal input for debugging.
863 * Terminal Output:: Recording terminal output for debugging.
864 * Flow Control:: How to turn output flow control on or off.
865 * Batch Mode:: Running Emacs without terminal interaction.
869 * Startup Summary:: Sequence of actions Emacs performs at start-up.
870 * Init File:: Details on reading the init file (@file{.emacs}).
871 * Terminal-Specific:: How the terminal-specific Lisp file is read.
872 * Command-Line Arguments:: How command line arguments are processed,
873 and how you can customize them.
877 * Killing Emacs:: Exiting Emacs irreversibly.
878 * Suspending Emacs:: Exiting Emacs reversibly.
882 * Refresh Screen:: Clearing the screen and redrawing everything on it.
883 * Truncation:: Folding or wrapping long text lines.
884 * The Echo Area:: Where messages are displayed.
885 * Selective Display:: Hiding part of the buffer text.
886 * Overlay Arrow:: Display of an arrow to indicate position.
887 * Temporary Displays:: Displays that go away automatically.
888 * Waiting:: Forcing display update and waiting for user.
889 * Blinking:: How Emacs shows the matching open parenthesis.
890 * Usual Display:: How control characters are displayed.
891 * Beeping:: Audible signal to the user.
892 * Window Systems:: Which window system is being used.
896 * Building Emacs:: How to preload Lisp libraries into Emacs.
897 * Pure Storage:: A kludge to make preloaded Lisp functions sharable.
898 * Garbage Collection:: Reclaiming space for Lisp objects no longer used.
899 * Object Internals:: Data formats of buffers, windows, processes.
900 * Writing Emacs Primitives:: Writing C code for Emacs.
904 * Buffer Internals:: Components of a buffer structure.
905 * Window Internals:: Components of a window structure.
906 * Process Internals:: Components of a process structure.
910 @include objects.texi
911 @include numbers.texi
912 @include strings.texi
915 @include sequences.texi
917 @include symbols.texi
920 @include control.texi
921 @include variables.texi
922 @include functions.texi
925 @include customize.texi
926 @include loading.texi
927 @include compile.texi
930 @include debugging.texi
931 @include streams.texi
932 @include minibuf.texi
933 @include commands.texi
935 @include keymaps.texi
940 @include backups.texi
941 @include buffers.texi
942 @include windows.texi
945 @include positions.texi
946 @include markers.texi
948 @include nonascii.texi
950 @include searching.texi
952 @include abbrevs.texi
953 @include processes.texi
955 @include display.texi
956 @include calendar.texi
959 @c MOVE to Emacs Manual: include misc-modes.texi
963 @c REMOVE this: include non-hacker.texi
966 @include doclicense.texi
969 @include internals.texi
977 @node New Symbols, , Index, Top
978 @unnumbered New Symbols Since the Previous Edition
982 @c Print the tables of contents
990 These words prevent "local variables" above from confusing Emacs.