1 \input texinfo @c -*-texinfo-*-
2 @c This file is used for printing the GNU Emacs Lisp Reference Manual
3 @c in two volumes. It is a modified version of elisp.texi.
4 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001,
5 @c 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
8 @settitle GNU Emacs Lisp Reference Manual: Volume 1
11 @c See two-volume-cross-refs.txt.
13 \message{Formatting for two volume edition...Volume 1...}
15 % Read special toc file, set up in two-volume.make.
16 \gdef\tocreadfilename{elisp1-toc-ready.toc}
18 % Don't make outlines, they're not needed and \readdatafile can't pay
19 % attention to the special definition above.
20 \global\let\pdfmakeoutlines=\relax
22 % Start volume 1 chapter numbering at 1; this must be listed as chapno0.
26 @c Version of the manual and of Emacs.
27 @c Please remember to update the edition number in README as well.
33 * Elisp: (elisp). The Emacs Lisp Reference Manual.
36 @c in general, keep the following line commented out, unless doing a
37 @c copy of this manual that will be published. the manual should go
38 @c onto the distribution in the full, 8.5 x 11" size.
45 @c per rms and peterb, use 10pt fonts for the main text, mostly to
46 @c save on paper cost.
47 @c Do this inside @tex for now, so current makeinfo does not complain.
52 \global\let\urlcolor=\Black % don't print links in grayscale
53 \global\let\linkcolor=\Black
55 \global\hbadness=6666 % don't worry about not-too-underfull boxes
63 @c We use the "type index" to index new functions and variables.
64 @c @syncodeindex tp fn
67 This is edition @value{VERSION} of the GNU Emacs Lisp Reference Manual,@*
68 corresponding to Emacs version @value{EMACSVER}.
70 Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,
71 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
75 Permission is granted to copy, distribute and/or modify this document
76 under the terms of the GNU Free Documentation License, Version 1.2 or
77 any later version published by the Free Software Foundation; with the
78 Invariant Sections being ``GNU General Public License,'' with the
79 Front-Cover texts being ``A GNU Manual,'' and with the Back-Cover
80 Texts as in (a) below. A copy of the license is included in the
81 section entitled ``GNU Free Documentation License.''
83 (a) The FSF's Back-Cover Text is: ``You are free to copy and modify
84 this GNU Manual. Buying copies from GNU Press supports the FSF in
85 developing GNU and promoting software freedom.''
90 @title GNU Emacs Lisp Reference Manual
92 @subtitle For Emacs Version @value{EMACSVER}
93 @subtitle Revision @value{VERSION}, June 2007
95 @author by Bil Lewis, Dan LaLiberte, Richard Stallman
96 @author and the GNU Manual Group
98 @vskip 0pt plus 1filll
103 Published by the Free Software Foundation @*
104 51 Franklin St, Fifth Floor @*
105 Boston, MA 02110-1301 @*
110 Cover art by Etienne Suvasa.
114 @c Print the tables of contents
120 @node Top, Introduction, (dir), (dir)
123 This Info file contains edition @value{VERSION} of the GNU Emacs Lisp
124 Reference Manual, corresponding to GNU Emacs version @value{EMACSVER}.
128 * Introduction:: Introduction and conventions used.
130 * Lisp Data Types:: Data types of objects in Emacs Lisp.
131 * Numbers:: Numbers and arithmetic functions.
132 * Strings and Characters:: Strings, and functions that work on them.
133 * Lists:: Lists, cons cells, and related functions.
134 * Sequences Arrays Vectors:: Lists, strings and vectors are called sequences.
135 Certain functions act on any kind of sequence.
136 The description of vectors is here as well.
137 * Hash Tables:: Very fast lookup-tables.
138 * Symbols:: Symbols represent names, uniquely.
140 * Evaluation:: How Lisp expressions are evaluated.
141 * Control Structures:: Conditionals, loops, nonlocal exits.
142 * Variables:: Using symbols in programs to stand for values.
143 * Functions:: A function is a Lisp program
144 that can be invoked from other functions.
145 * Macros:: Macros are a way to extend the Lisp language.
146 * Customization:: Writing customization declarations.
148 * Loading:: Reading files of Lisp code into Lisp.
149 * Byte Compilation:: Compilation makes programs run faster.
150 * Advising Functions:: Adding to the definition of a function.
151 * Debugging:: Tools and tips for debugging Lisp programs.
153 * Read and Print:: Converting Lisp objects to text and back.
154 * Minibuffers:: Using the minibuffer to read input.
155 * Command Loop:: How the editor command loop works,
156 and how you can call its subroutines.
157 * Keymaps:: Defining the bindings from keys to commands.
158 * Modes:: Defining major and minor modes.
159 * Documentation:: Writing and using documentation strings.
161 * Files:: Accessing files.
162 * Backups and Auto-Saving:: Controlling how backups and auto-save
164 * Buffers:: Creating and using buffer objects.
165 * Windows:: Manipulating windows and displaying buffers.
166 * Frames:: Making multiple system-level windows.
167 * Positions:: Buffer positions and motion functions.
168 * Markers:: Markers represent positions and update
169 automatically when the text is changed.
171 * Text:: Examining and changing text in buffers.
172 * Non-ASCII Characters:: Non-ASCII text in buffers and strings.
173 * Searching and Matching:: Searching buffers for strings or regexps.
174 * Syntax Tables:: The syntax table controls word and list parsing.
175 * Abbrevs:: How Abbrev mode works, and its data structures.
177 * Processes:: Running and communicating with subprocesses.
178 * Display:: Features for controlling the screen display.
179 * System Interface:: Getting the user id, system type, environment
180 variables, and other such things.
184 * Antinews:: Info for users downgrading to Emacs 21.
185 * GNU Free Documentation License:: The license for this documentation
186 * GPL:: Conditions for copying and changing GNU Emacs.
187 * Tips:: Advice and coding conventions for Emacs Lisp.
188 * GNU Emacs Internals:: Building and dumping Emacs;
189 internal data structures.
190 * Standard Errors:: List of all error symbols.
191 * Standard Buffer-Local Variables::
192 List of variables buffer-local in all buffers.
193 * Standard Keymaps:: List of standard keymaps.
194 * Standard Hooks:: List of standard hook variables.
196 * Index:: Index including concepts, functions, variables,
200 * New Symbols:: New functions and variables in Emacs @value{EMACSVER}.
203 @c Do NOT modify the following 3 lines! They must have this form to
204 @c be correctly identified by `texinfo-multiple-files-update'. In
205 @c particular, the detailed menu header line MUST be identical to the
206 @c value of `texinfo-master-menu-header'. See texnfo-upd.el.
209 --- The Detailed Node Listing ---
210 ---------------------------------
212 Here are other nodes that are inferiors of those already listed,
213 mentioned here so you can get to them in one step:
217 * Caveats:: Flaws and a request for help.
218 * Lisp History:: Emacs Lisp is descended from Maclisp.
219 * Conventions:: How the manual is formatted.
220 * Version Info:: Which Emacs version is running?
221 * Acknowledgements:: The authors, editors, and sponsors of this manual.
225 * Some Terms:: Explanation of terms we use in this manual.
226 * nil and t:: How the symbols @code{nil} and @code{t} are used.
227 * Evaluation Notation:: The format we use for examples of evaluation.
228 * Printing Notation:: The format we use for examples that print output.
229 * Error Messages:: The format we use for examples of errors.
230 * Buffer Text Notation:: The format we use for buffer contents in examples.
231 * Format of Descriptions:: Notation for describing functions, variables, etc.
233 Format of Descriptions
235 * A Sample Function Description:: A description of an imaginary
236 function, @code{foo}.
237 * A Sample Variable Description:: A description of an imaginary
238 variable, @code{electric-future-map}.
242 * Printed Representation:: How Lisp objects are represented as text.
243 * Comments:: Comments and their formatting conventions.
244 * Programming Types:: Types found in all Lisp systems.
245 * Editing Types:: Types specific to Emacs.
246 * Circular Objects:: Read syntax for circular structure.
247 * Type Predicates:: Tests related to types.
248 * Equality Predicates:: Tests of equality between any two objects.
252 * Integer Type:: Numbers without fractional parts.
253 * Floating Point Type:: Numbers with fractional parts and with a large range.
254 * Character Type:: The representation of letters, numbers and
256 * Symbol Type:: A multi-use object that refers to a function,
257 variable, property list, or itself.
258 * Sequence Type:: Both lists and arrays are classified as sequences.
259 * Cons Cell Type:: Cons cells, and lists (which are made from cons cells).
260 * Array Type:: Arrays include strings and vectors.
261 * String Type:: An (efficient) array of characters.
262 * Vector Type:: One-dimensional arrays.
263 * Char-Table Type:: One-dimensional sparse arrays indexed by characters.
264 * Bool-Vector Type:: One-dimensional arrays of @code{t} or @code{nil}.
265 * Hash Table Type:: Super-fast lookup tables.
266 * Function Type:: A piece of executable code you can call from elsewhere.
267 * Macro Type:: A method of expanding an expression into another
268 expression, more fundamental but less pretty.
269 * Primitive Function Type:: A function written in C, callable from Lisp.
270 * Byte-Code Type:: A function written in Lisp, then compiled.
271 * Autoload Type:: A type used for automatically loading seldom-used
276 * Basic Char Syntax:: Syntax for regular characters.
277 * General Escape Syntax:: How to specify characters by their codes.
278 * Ctl-Char Syntax:: Syntax for control characters.
279 * Meta-Char Syntax:: Syntax for meta-characters.
280 * Other Char Bits:: Syntax for hyper-, super-, and alt-characters.
282 Cons Cell and List Types
284 * Box Diagrams:: Drawing pictures of lists.
285 * Dotted Pair Notation:: An alternative syntax for lists.
286 * Association List Type:: A specially constructed list.
290 * Syntax for Strings:: How to specify Lisp strings.
291 * Non-ASCII in Strings:: International characters in strings.
292 * Nonprinting Characters:: Literal unprintable characters in strings.
293 * Text Props and Strings:: Strings with text properties.
297 * Buffer Type:: The basic object of editing.
298 * Marker Type:: A position in a buffer.
299 * Window Type:: What makes buffers visible.
300 * Frame Type:: Windows subdivide frames.
301 * Window Configuration Type:: Recording the way a frame is subdivided.
302 * Frame Configuration Type:: Recording the status of all frames.
303 * Process Type:: A process running on the underlying OS.
304 * Stream Type:: Receive or send characters.
305 * Keymap Type:: What function a keystroke invokes.
306 * Overlay Type:: How an overlay is represented.
310 * Integer Basics:: Representation and range of integers.
311 * Float Basics:: Representation and range of floating point.
312 * Predicates on Numbers:: Testing for numbers.
313 * Comparison of Numbers:: Equality and inequality predicates.
314 * Numeric Conversions:: Converting float to integer and vice versa.
315 * Arithmetic Operations:: How to add, subtract, multiply and divide.
316 * Rounding Operations:: Explicitly rounding floating point numbers.
317 * Bitwise Operations:: Logical and, or, not, shifting.
318 * Math Functions:: Trig, exponential and logarithmic functions.
319 * Random Numbers:: Obtaining random integers, predictable or not.
321 Strings and Characters
323 * String Basics:: Basic properties of strings and characters.
324 * Predicates for Strings:: Testing whether an object is a string or char.
325 * Creating Strings:: Functions to allocate new strings.
326 * Modifying Strings:: Altering the contents of an existing string.
327 * Text Comparison:: Comparing characters or strings.
328 * String Conversion:: Converting characters to strings and vice versa.
329 * Formatting Strings:: @code{format}: Emacs's analogue of @code{printf}.
330 * Case Conversion:: Case conversion functions.
331 * Case Tables:: Customizing case conversion.
335 * Cons Cells:: How lists are made out of cons cells.
336 * List-related Predicates:: Is this object a list? Comparing two lists.
337 * List Elements:: Extracting the pieces of a list.
338 * Building Lists:: Creating list structure.
339 * List Variables:: Modifying lists stored in variables.
340 * Modifying Lists:: Storing new pieces into an existing list.
341 * Sets And Lists:: A list can represent a finite mathematical set.
342 * Association Lists:: A list can represent a finite relation or mapping.
343 * Rings:: Managing a fixed-size ring of objects.
345 Modifying Existing List Structure
347 * Setcar:: Replacing an element in a list.
348 * Setcdr:: Replacing part of the list backbone.
349 This can be used to remove or add elements.
350 * Rearrangement:: Reordering the elements in a list; combining lists.
352 Sequences, Arrays, and Vectors
354 * Sequence Functions:: Functions that accept any kind of sequence.
355 * Arrays:: Characteristics of arrays in Emacs Lisp.
356 * Array Functions:: Functions specifically for arrays.
357 * Vectors:: Special characteristics of Emacs Lisp vectors.
358 * Vector Functions:: Functions specifically for vectors.
359 * Char-Tables:: How to work with char-tables.
360 * Bool-Vectors:: How to work with bool-vectors.
364 * Creating Hash:: Functions to create hash tables.
365 * Hash Access:: Reading and writing the hash table contents.
366 * Defining Hash:: Defining new comparison methods
367 * Other Hash:: Miscellaneous.
371 * Symbol Components:: Symbols have names, values, function definitions
373 * Definitions:: A definition says how a symbol will be used.
374 * Creating Symbols:: How symbols are kept unique.
375 * Property Lists:: Each symbol has a property list
376 for recording miscellaneous information.
380 * Plists and Alists:: Comparison of the advantages of property
381 lists and association lists.
382 * Symbol Plists:: Functions to access symbols' property lists.
383 * Other Plists:: Accessing property lists stored elsewhere.
387 * Intro Eval:: Evaluation in the scheme of things.
388 * Forms:: How various sorts of objects are evaluated.
389 * Quoting:: Avoiding evaluation (to put constants in
391 * Eval:: How to invoke the Lisp interpreter explicitly.
395 * Self-Evaluating Forms:: Forms that evaluate to themselves.
396 * Symbol Forms:: Symbols evaluate as variables.
397 * Classifying Lists:: How to distinguish various sorts of list forms.
398 * Function Indirection:: When a symbol appears as the car of a list,
399 we find the real function via the symbol.
400 * Function Forms:: Forms that call functions.
401 * Macro Forms:: Forms that call macros.
402 * Special Forms:: "Special forms" are idiosyncratic primitives,
403 most of them extremely important.
404 * Autoloading:: Functions set up to load files
405 containing their real definitions.
409 * Sequencing:: Evaluation in textual order.
410 * Conditionals:: @code{if}, @code{cond}, @code{when}, @code{unless}.
411 * Combining Conditions:: @code{and}, @code{or}, @code{not}.
412 * Iteration:: @code{while} loops.
413 * Nonlocal Exits:: Jumping out of a sequence.
417 * Catch and Throw:: Nonlocal exits for the program's own purposes.
418 * Examples of Catch:: Showing how such nonlocal exits can be written.
419 * Errors:: How errors are signaled and handled.
420 * Cleanups:: Arranging to run a cleanup form if an
425 * Signaling Errors:: How to report an error.
426 * Processing of Errors:: What Emacs does when you report an error.
427 * Handling Errors:: How you can trap errors and continue execution.
428 * Error Symbols:: How errors are classified for trapping them.
429 * Standard Errors:: List of all error symbols.
433 * Global Variables:: Variable values that exist permanently, everywhere.
434 * Constant Variables:: Certain "variables" have values that never change.
435 * Local Variables:: Variable values that exist only temporarily.
436 * Void Variables:: Symbols that lack values.
437 * Defining Variables:: A definition says a symbol is used as a variable.
438 * Tips for Defining:: Things you should think about when you
440 * Accessing Variables:: Examining values of variables whose names
441 are known only at run time.
442 * Setting Variables:: Storing new values in variables.
443 * Variable Scoping:: How Lisp chooses among local and global values.
444 * Buffer-Local Variables:: Variable values in effect only in one buffer.
445 * Frame-Local Variables:: Variable values in effect only in one frame.
446 * Future Local Variables:: New kinds of local values we might add some day.
447 * File Local Variables:: Handling local variable lists in files.
448 * Variable Aliases:: Variables that are aliases for other variables.
449 * Variables with Restricted Values:: Non-constant variables whose value can
450 @emph{not} be an arbitrary Lisp object.
451 * Standard Buffer-Local Variables::
452 List of variables buffer-local in all buffers.
454 Scoping Rules for Variable Bindings
456 * Scope:: Scope means where in the program a value
457 is visible. Comparison with other languages.
458 * Extent:: Extent means how long in time a value exists.
459 * Impl of Scope:: Two ways to implement dynamic scoping.
460 * Using Scoping:: How to use dynamic scoping carefully and
463 Buffer-Local Variables
465 * Intro to Buffer-Local:: Introduction and concepts.
466 * Creating Buffer-Local:: Creating and destroying buffer-local bindings.
467 * Default Value:: The default value is seen in buffers
468 that don't have their own buffer-local values.
472 * What Is a Function:: Lisp functions vs primitives; terminology.
473 * Lambda Expressions:: How functions are expressed as Lisp objects.
474 * Function Names:: A symbol can serve as the name of a function.
475 * Defining Functions:: Lisp expressions for defining functions.
476 * Calling Functions:: How to use an existing function.
477 * Mapping Functions:: Applying a function to each element of a list, etc.
478 * Anonymous Functions:: Lambda-expressions are functions with no names.
479 * Function Cells:: Accessing or setting the function definition
481 * Obsolete Functions:: Declaring functions obsolete.
482 * Inline Functions:: Defining functions that the compiler will open code.
483 * Function Safety:: Determining whether a function is safe to call.
484 * Related Topics:: Cross-references to specific Lisp primitives
485 that have a special bearing on how
490 * Lambda Components:: The parts of a lambda expression.
491 * Simple Lambda:: A simple example.
492 * Argument List:: Details and special features of argument lists.
493 * Function Documentation:: How to put documentation in a function.
497 * Simple Macro:: A basic example.
498 * Expansion:: How, when and why macros are expanded.
499 * Compiling Macros:: How macros are expanded by the compiler.
500 * Defining Macros:: How to write a macro definition.
501 * Backquote:: Easier construction of list structure.
502 * Problems with Macros:: Don't evaluate the macro arguments too many times.
503 Don't hide the user's variables.
504 * Indenting Macros:: Specifying how to indent macro calls.
506 Common Problems Using Macros
508 * Wrong Time:: Do the work in the expansion, not in the macro.
509 * Argument Evaluation:: The expansion should evaluate each macro arg once.
510 * Surprising Local Vars:: Local variable bindings in the expansion
511 require special care.
512 * Eval During Expansion:: Don't evaluate them; put them in the expansion.
513 * Repeated Expansion:: Avoid depending on how many times expansion is done.
515 Writing Customization Definitions
517 * Common Keywords:: Common keyword arguments for all kinds of
518 customization declarations.
519 * Group Definitions:: Writing customization group definitions.
520 * Variable Definitions:: Declaring user options.
521 * Customization Types:: Specifying the type of a user option.
525 * Simple Types:: Simple customization types: sexp, integer, number,
526 string, file, directory, alist.
527 * Composite Types:: Build new types from other types or data.
528 * Splicing into Lists:: Splice elements into list with @code{:inline}.
529 * Type Keywords:: Keyword-argument pairs in a customization type.
530 * Defining New Types:: Give your type a name.
534 * How Programs Do Loading:: The @code{load} function and others.
535 * Load Suffixes:: Details about the suffixes that @code{load} tries.
536 * Library Search:: Finding a library to load.
537 * Loading Non-ASCII:: Non-@acronym{ASCII} characters in Emacs Lisp files.
538 * Autoload:: Setting up a function to autoload.
539 * Repeated Loading:: Precautions about loading a file twice.
540 * Named Features:: Loading a library if it isn't already loaded.
541 * Where Defined:: Finding which file defined a certain symbol.
542 * Unloading:: How to "unload" a library that was loaded.
543 * Hooks for Loading:: Providing code to be run when
544 particular libraries are loaded.
548 * Speed of Byte-Code:: An example of speedup from byte compilation.
549 * Compilation Functions:: Byte compilation functions.
550 * Docs and Compilation:: Dynamic loading of documentation strings.
551 * Dynamic Loading:: Dynamic loading of individual functions.
552 * Eval During Compile:: Code to be evaluated when you compile.
553 * Compiler Errors:: Handling compiler error messages.
554 * Byte-Code Objects:: The data type used for byte-compiled functions.
555 * Disassembly:: Disassembling byte-code; how to read byte-code.
557 Advising Emacs Lisp Functions
559 * Simple Advice:: A simple example to explain the basics of advice.
560 * Defining Advice:: Detailed description of @code{defadvice}.
561 * Around-Advice:: Wrapping advice around a function's definition.
562 * Computed Advice:: ...is to @code{defadvice} as @code{fset} is to @code{defun}.
563 * Activation of Advice:: Advice doesn't do anything until you activate it.
564 * Enabling Advice:: You can enable or disable each piece of advice.
565 * Preactivation:: Preactivation is a way of speeding up the
566 loading of compiled advice.
567 * Argument Access in Advice:: How advice can access the function's arguments.
568 * Advising Primitives:: Accessing arguments when advising a primitive.
569 * Combined Definition:: How advice is implemented.
571 Debugging Lisp Programs
573 * Debugger:: How the Emacs Lisp debugger is implemented.
574 * Edebug:: A source-level Emacs Lisp debugger.
575 * Syntax Errors:: How to find syntax errors.
576 * Test Coverage:: Ensuring you have tested all branches in your code.
577 * Compilation Errors:: How to find errors that show up in
582 * Error Debugging:: Entering the debugger when an error happens.
583 * Infinite Loops:: Stopping and debugging a program that doesn't exit.
584 * Function Debugging:: Entering it when a certain function is called.
585 * Explicit Debug:: Entering it at a certain point in the program.
586 * Using Debugger:: What the debugger does; what you see while in it.
587 * Debugger Commands:: Commands used while in the debugger.
588 * Invoking the Debugger:: How to call the function @code{debug}.
589 * Internals of Debugger:: Subroutines of the debugger, and global variables.
593 * Using Edebug:: Introduction to use of Edebug.
594 * Instrumenting:: You must instrument your code
595 in order to debug it with Edebug.
596 * Edebug Execution Modes:: Execution modes, stopping more or less often.
597 * Jumping:: Commands to jump to a specified place.
598 * Edebug Misc:: Miscellaneous commands.
599 * Breaks:: Setting breakpoints to make the program stop.
600 * Trapping Errors:: Trapping errors with Edebug.
601 * Edebug Views:: Views inside and outside of Edebug.
602 * Edebug Eval:: Evaluating expressions within Edebug.
603 * Eval List:: Expressions whose values are displayed
604 each time you enter Edebug.
605 * Printing in Edebug:: Customization of printing.
606 * Trace Buffer:: How to produce trace output in a buffer.
607 * Coverage Testing:: How to test evaluation coverage.
608 * The Outside Context:: Data that Edebug saves and restores.
609 * Edebug and Macros:: Specifying how to handle macro calls.
610 * Edebug Options:: Option variables for customizing Edebug.
612 Debugging Invalid Lisp Syntax
614 * Excess Open:: How to find a spurious open paren or missing close.
615 * Excess Close:: How to find a spurious close paren or missing open.
617 Reading and Printing Lisp Objects
619 * Streams Intro:: Overview of streams, reading and printing.
620 * Input Streams:: Various data types that can be used as
622 * Input Functions:: Functions to read Lisp objects from text.
623 * Output Streams:: Various data types that can be used as
625 * Output Functions:: Functions to print Lisp objects as text.
626 * Output Variables:: Variables that control what the printing
631 * Intro to Minibuffers:: Basic information about minibuffers.
632 * Text from Minibuffer:: How to read a straight text string.
633 * Object from Minibuffer:: How to read a Lisp object or expression.
634 * Minibuffer History:: Recording previous minibuffer inputs
635 so the user can reuse them.
636 * Initial Input:: Specifying initial contents for the minibuffer.
637 * Completion:: How to invoke and customize completion.
638 * Yes-or-No Queries:: Asking a question with a simple answer.
639 * Multiple Queries:: Asking a series of similar questions.
640 * Reading a Password:: Reading a password from the terminal.
641 * Minibuffer Commands:: Commands used as key bindings in minibuffers.
642 * Minibuffer Contents:: How such commands access the minibuffer text.
643 * Minibuffer Windows:: Operating on the special minibuffer windows.
644 * Recursive Mini:: Whether recursive entry to minibuffer is allowed.
645 * Minibuffer Misc:: Various customization hooks and variables.
649 * Basic Completion:: Low-level functions for completing strings.
650 (These are too low level to use the minibuffer.)
651 * Minibuffer Completion:: Invoking the minibuffer with completion.
652 * Completion Commands:: Minibuffer commands that do completion.
653 * High-Level Completion:: Convenient special cases of completion
654 (reading buffer name, file name, etc.)
655 * Reading File Names:: Using completion to read file names.
656 * Programmed Completion:: Finding the completions for a given file name.
660 * Command Overview:: How the command loop reads commands.
661 * Defining Commands:: Specifying how a function should read arguments.
662 * Interactive Call:: Calling a command, so that it will read arguments.
663 * Command Loop Info:: Variables set by the command loop for you to examine.
664 * Adjusting Point:: Adjustment of point after a command.
665 * Input Events:: What input looks like when you read it.
666 * Reading Input:: How to read input events from the keyboard or mouse.
667 * Special Events:: Events processed immediately and individually.
668 * Waiting:: Waiting for user input or elapsed time.
669 * Quitting:: How @kbd{C-g} works. How to catch or defer quitting.
670 * Prefix Command Arguments:: How the commands to set prefix args work.
671 * Recursive Editing:: Entering a recursive edit,
672 and why you usually shouldn't.
673 * Disabling Commands:: How the command loop handles disabled commands.
674 * Command History:: How the command history is set up, and how accessed.
675 * Keyboard Macros:: How keyboard macros are implemented.
679 * Using Interactive:: General rules for @code{interactive}.
680 * Interactive Codes:: The standard letter-codes for reading arguments
682 * Interactive Examples:: Examples of how to read interactive arguments.
686 * Keyboard Events:: Ordinary characters--keys with symbols on them.
687 * Function Keys:: Function keys--keys with names, not symbols.
688 * Mouse Events:: Overview of mouse events.
689 * Click Events:: Pushing and releasing a mouse button.
690 * Drag Events:: Moving the mouse before releasing the button.
691 * Button-Down Events:: A button was pushed and not yet released.
692 * Repeat Events:: Double and triple click (or drag, or down).
693 * Motion Events:: Just moving the mouse, not pushing a button.
694 * Focus Events:: Moving the mouse between frames.
695 * Misc Events:: Other events the system can generate.
696 * Event Examples:: Examples of the lists for mouse events.
697 * Classifying Events:: Finding the modifier keys in an event symbol.
698 * Accessing Events:: Functions to extract info from events.
699 * Strings of Events:: Special considerations for putting
700 keyboard character events in a string.
704 * Key Sequence Input:: How to read one key sequence.
705 * Reading One Event:: How to read just one event.
706 * Event Mod:: How Emacs modifies events as they are read.
707 * Invoking the Input Method:: How reading an event uses the input method.
708 * Quoted Character Input:: Asking the user to specify a character.
709 * Event Input Misc:: How to reread or throw away input events.
713 * Key Sequences:: Key sequences as Lisp objects.
714 * Keymap Basics:: Basic concepts of keymaps.
715 * Format of Keymaps:: What a keymap looks like as a Lisp object.
716 * Creating Keymaps:: Functions to create and copy keymaps.
717 * Inheritance and Keymaps:: How one keymap can inherit the bindings
719 * Prefix Keys:: Defining a key with a keymap as its definition.
720 * Active Keymaps:: How Emacs searches the active keymaps
722 * Searching Keymaps:: A pseudo-Lisp summary of searching active maps.
723 * Controlling Active Maps:: Each buffer has a local keymap
724 to override the standard (global) bindings.
725 A minor mode can also override them.
726 * Key Lookup:: How extracting elements from keymaps works.
727 * Functions for Key Lookup:: How to request key lookup.
728 * Changing Key Bindings:: Redefining a key in a keymap.
729 * Remapping Commands:: A keymap can translate one command to another.
730 * Translation Keymaps:: Keymaps for translating sequences of events.
731 * Key Binding Commands:: Interactive interfaces for redefining keys.
732 * Scanning Keymaps:: Looking through all keymaps, for printing help.
733 * Menu Keymaps:: A keymap can define a menu for X
734 or for use from the terminal.
735 * Standard Keymaps:: List of standard keymaps.
737 Major and Minor Modes
739 * Hooks:: How to use hooks; how to write code that
741 * Major Modes:: Defining major modes.
742 * Minor Modes:: Defining minor modes.
743 * Mode Line Format:: Customizing the text that appears in the mode line.
744 * Imenu:: How a mode can provide a menu
745 of definitions in the buffer.
746 * Font Lock Mode:: How modes can highlight text according to syntax.
747 * Desktop Save Mode:: How modes can have buffer state saved between
752 * Defining Menus:: How to make a keymap that defines a menu.
753 * Mouse Menus:: How users actuate the menu with the mouse.
754 * Keyboard Menus:: How users actuate the menu with the keyboard.
755 * Menu Example:: Making a simple menu.
756 * Menu Bar:: How to customize the menu bar.
757 * Tool Bar:: A tool bar is a row of images.
758 * Modifying Menus:: How to add new items to a menu.
762 * Simple Menu Items:: A simple kind of menu key binding,
763 limited in capabilities.
764 * Extended Menu Items:: More powerful menu item definitions
765 let you specify keywords to enable
767 * Menu Separators:: Drawing a horizontal line through a menu.
768 * Alias Menu Items:: Using command aliases in menu items.
770 Major and Minor Modes
772 * Hooks:: How to use hooks; how to write code that provides hooks.
773 * Major Modes:: Defining major modes.
774 * Minor Modes:: Defining minor modes.
775 * Mode Line Format:: Customizing the text that appears in the mode line.
776 * Imenu:: How a mode can provide a menu
777 of definitions in the buffer.
778 * Font Lock Mode:: How modes can highlight text according to syntax.
779 * Desktop Save Mode:: How modes can have buffer state saved between
784 * Major Mode Basics::
785 * Major Mode Conventions:: Coding conventions for keymaps, etc.
786 * Example Major Modes:: Text mode and Lisp modes.
787 * Auto Major Mode:: How Emacs chooses the major mode automatically.
788 * Mode Help:: Finding out how to use a mode.
789 * Derived Modes:: Defining a new major mode based on another major
791 * Generic Modes:: Defining a simple major mode that supports
792 comment syntax and Font Lock mode.
793 * Mode Hooks:: Hooks run at the end of major mode functions.
797 * Minor Mode Conventions:: Tips for writing a minor mode.
798 * Keymaps and Minor Modes:: How a minor mode can have its own keymap.
799 * Defining Minor Modes:: A convenient facility for defining minor modes.
804 * Mode Line Data:: The data structure that controls the mode line.
805 * Mode Line Variables:: Variables used in that data structure.
806 * %-Constructs:: Putting information into a mode line.
807 * Properties in Mode:: Using text properties in the mode line.
808 * Header Lines:: Like a mode line, but at the top.
809 * Emulating Mode Line:: Formatting text as the mode line would.
813 * Font Lock Basics:: Overview of customizing Font Lock.
814 * Search-based Fontification:: Fontification based on regexps.
815 * Customizing Keywords:: Customizing search-based fontification.
816 * Other Font Lock Variables:: Additional customization facilities.
817 * Levels of Font Lock:: Each mode can define alternative levels
818 so that the user can select more or less.
819 * Precalculated Fontification:: How Lisp programs that produce the buffer
820 contents can also specify how to fontify it.
821 * Faces for Font Lock:: Special faces specifically for Font Lock.
822 * Syntactic Font Lock:: Fontification based on syntax tables.
823 * Setting Syntax Properties:: Defining character syntax based on context
824 using the Font Lock mechanism.
825 * Multiline Font Lock:: How to coerce Font Lock into properly
826 highlighting multiline constructs.
828 Multiline Font Lock Constructs
830 * Font Lock Multiline:: Marking multiline chunks with a text property
831 * Region to Fontify:: Controlling which region gets refontified
832 after a buffer change.
836 * Documentation Basics:: Good style for doc strings.
837 Where to put them. How Emacs stores them.
838 * Accessing Documentation:: How Lisp programs can access doc strings.
839 * Keys in Documentation:: Substituting current key bindings.
840 * Describing Characters:: Making printable descriptions of
841 non-printing characters and key sequences.
842 * Help Functions:: Subroutines used by Emacs help facilities.
846 * Visiting Files:: Reading files into Emacs buffers for editing.
847 * Saving Buffers:: Writing changed buffers back into files.
848 * Reading from Files:: Reading files into other buffers.
849 * Writing to Files:: Writing new files from parts of buffers.
850 * File Locks:: Locking and unlocking files, to prevent
851 simultaneous editing by two people.
852 * Information about Files:: Testing existence, accessibility, size of files.
853 * Changing Files:: Renaming files, changing protection, etc.
854 * File Names:: Decomposing and expanding file names.
855 * Contents of Directories:: Getting a list of the files in a directory.
856 * Create/Delete Dirs:: Creating and Deleting Directories.
857 * Magic File Names:: Defining "magic" special handling
858 for certain file names.
859 * Format Conversion:: Conversion to and from various file formats.
863 * Visiting Functions:: The usual interface functions for visiting.
864 * Subroutines of Visiting:: Lower-level subroutines that they use.
866 Information about Files
868 * Testing Accessibility:: Is a given file readable? Writable?
869 * Kinds of Files:: Is it a directory? A symbolic link?
870 * Truenames:: Eliminating symbolic links from a file name.
871 * File Attributes:: How large is it? Any other names? Etc.
872 * Locating Files:: How to find a file in standard places.
876 * File Name Components:: The directory part of a file name, and the rest.
877 * Relative File Names:: Some file names are relative to a
879 * Directory Names:: A directory's name as a directory
880 is different from its name as a file.
881 * File Name Expansion:: Converting relative file names to absolute ones.
882 * Unique File Names:: Generating names for temporary files.
883 * File Name Completion:: Finding the completions for a given file name.
884 * Standard File Names:: If your package uses a fixed file name,
885 how to handle various operating systems simply.
887 Backups and Auto-Saving
889 * Backup Files:: How backup files are made; how their names
891 * Auto-Saving:: How auto-save files are made; how their
893 * Reverting:: @code{revert-buffer}, and how to customize
898 * Making Backups:: How Emacs makes backup files, and when.
899 * Rename or Copy:: Two alternatives: renaming the old file
901 * Numbered Backups:: Keeping multiple backups for each source file.
902 * Backup Names:: How backup file names are computed; customization.
906 * Buffer Basics:: What is a buffer?
907 * Current Buffer:: Designating a buffer as current
908 so primitives will access its contents.
909 * Buffer Names:: Accessing and changing buffer names.
910 * Buffer File Name:: The buffer file name indicates which file
912 * Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved.
913 * Modification Time:: Determining whether the visited file was changed
914 ``behind Emacs's back''.
915 * Read Only Buffers:: Modifying text is not allowed in a
917 * The Buffer List:: How to look at all the existing buffers.
918 * Creating Buffers:: Functions that create buffers.
919 * Killing Buffers:: Buffers exist until explicitly killed.
920 * Indirect Buffers:: An indirect buffer shares text with some
922 * Buffer Gap:: The gap in the buffer.
926 * Basic Windows:: Basic information on using windows.
927 * Splitting Windows:: Splitting one window into two windows.
928 * Deleting Windows:: Deleting a window gives its space to other windows.
929 * Selecting Windows:: The selected window is the one that you edit in.
930 * Cyclic Window Ordering:: Moving around the existing windows.
931 * Buffers and Windows:: Each window displays the contents of a buffer.
932 * Displaying Buffers:: Higher-level functions for displaying a buffer
933 and choosing a window for it.
934 * Choosing Window:: How to choose a window for displaying a buffer.
935 * Window Point:: Each window has its own location of point.
936 * Window Start:: The display-start position controls which text
937 is on-screen in the window.
938 * Textual Scrolling:: Moving text up and down through the window.
939 * Vertical Scrolling:: Moving the contents up and down on the window.
940 * Horizontal Scrolling:: Moving the contents sideways on the window.
941 * Size of Window:: Accessing the size of a window.
942 * Resizing Windows:: Changing the size of a window.
943 * Coordinates and Windows:: Converting coordinates to windows.
944 * Window Tree:: The layout and sizes of all windows in a frame.
945 * Window Configurations:: Saving and restoring the state of the screen.
946 * Window Hooks:: Hooks for scrolling, window size changes,
947 redisplay going past a certain point,
948 or window configuration changes.
952 * Creating Frames:: Creating additional frames.
953 * Multiple Displays:: Creating frames on other displays.
954 * Frame Parameters:: Controlling frame size, position, font, etc.
955 * Frame Titles:: Automatic updating of frame titles.
956 * Deleting Frames:: Frames last until explicitly deleted.
957 * Finding All Frames:: How to examine all existing frames.
958 * Frames and Windows:: A frame contains windows;
959 display of text always works through windows.
960 * Minibuffers and Frames:: How a frame finds the minibuffer to use.
961 * Input Focus:: Specifying the selected frame.
962 * Visibility of Frames:: Frames may be visible or invisible, or icons.
963 * Raising and Lowering:: Raising a frame makes it hide other windows;
964 lowering it puts it underneath the others.
965 * Frame Configurations:: Saving the state of all frames.
966 * Mouse Tracking:: Getting events that say when the mouse moves.
967 * Mouse Position:: Asking where the mouse is, or moving it.
968 * Pop-Up Menus:: Displaying a menu for the user to select from.
969 * Dialog Boxes:: Displaying a box to ask yes or no.
970 * Pointer Shape:: Specifying the shape of the mouse pointer.
971 * Window System Selections::Transferring text to and from other windows.
972 * Drag and Drop:: Internals of Drag-and-Drop implementation.
973 * Color Names:: Getting the definitions of color names.
974 * Text Terminal Colors:: Defining colors for text-only terminals.
975 * Resources:: Getting resource values from the server.
976 * Display Feature Testing:: Determining the features of a terminal.
980 * Parameter Access:: How to change a frame's parameters.
981 * Initial Parameters:: Specifying frame parameters when you make a frame.
982 * Window Frame Parameters:: List of frame parameters for window systems.
983 * Size and Position:: Changing the size and position of a frame.
984 * Geometry:: Parsing geometry specifications.
986 Window Frame Parameters
988 * Basic Parameters:: Parameters that are fundamental.
989 * Position Parameters:: The position of the frame on the screen.
990 * Size Parameters:: Frame's size.
991 * Layout Parameters:: Size of parts of the frame, and
992 enabling or disabling some parts.
993 * Buffer Parameters:: Which buffers have been or should be shown.
994 * Management Parameters:: Communicating with the window manager.
995 * Cursor Parameters:: Controlling the cursor appearance.
996 * Color Parameters:: Colors of various parts of the frame.
1000 * Point:: The special position where editing takes place.
1001 * Motion:: Changing point.
1002 * Excursions:: Temporary motion and buffer changes.
1003 * Narrowing:: Restricting editing to a portion of the buffer.
1007 * Character Motion:: Moving in terms of characters.
1008 * Word Motion:: Moving in terms of words.
1009 * Buffer End Motion:: Moving to the beginning or end of the buffer.
1010 * Text Lines:: Moving in terms of lines of text.
1011 * Screen Lines:: Moving in terms of lines as displayed.
1012 * List Motion:: Moving by parsing lists and sexps.
1013 * Skipping Characters:: Skipping characters belonging to a certain set.
1017 * Overview of Markers:: The components of a marker, and how it relocates.
1018 * Predicates on Markers:: Testing whether an object is a marker.
1019 * Creating Markers:: Making empty markers or markers at certain places.
1020 * Information from Markers::Finding the marker's buffer or character
1022 * Marker Insertion Types:: Two ways a marker can relocate when you
1023 insert where it points.
1024 * Moving Markers:: Moving the marker to a new buffer or position.
1025 * The Mark:: How "the mark" is implemented with a marker.
1026 * The Region:: How to access "the region".
1030 * Near Point:: Examining text in the vicinity of point.
1031 * Buffer Contents:: Examining text in a general fashion.
1032 * Comparing Text:: Comparing substrings of buffers.
1033 * Insertion:: Adding new text to a buffer.
1034 * Commands for Insertion:: User-level commands to insert text.
1035 * Deletion:: Removing text from a buffer.
1036 * User-Level Deletion:: User-level commands to delete text.
1037 * The Kill Ring:: Where removed text sometimes is saved for
1039 * Undo:: Undoing changes to the text of a buffer.
1040 * Maintaining Undo:: How to enable and disable undo information.
1041 How to control how much information is kept.
1042 * Filling:: Functions for explicit filling.
1043 * Margins:: How to specify margins for filling commands.
1044 * Adaptive Fill:: Adaptive Fill mode chooses a fill prefix
1046 * Auto Filling:: How auto-fill mode is implemented to break lines.
1047 * Sorting:: Functions for sorting parts of the buffer.
1048 * Columns:: Computing horizontal positions, and using them.
1049 * Indentation:: Functions to insert or adjust indentation.
1050 * Case Changes:: Case conversion of parts of the buffer.
1051 * Text Properties:: Assigning Lisp property lists to text characters.
1052 * Substitution:: Replacing a given character wherever it appears.
1053 * Transposition:: Swapping two portions of a buffer.
1054 * Registers:: How registers are implemented. Accessing
1055 the text or position stored in a register.
1056 * Base 64:: Conversion to or from base 64 encoding.
1057 * MD5 Checksum:: Compute the MD5 "message digest"/"checksum".
1058 * Atomic Changes:: Installing several buffer changes "atomically".
1059 * Change Hooks:: Supplying functions to be run when text is changed.
1063 * Kill Ring Concepts:: What text looks like in the kill ring.
1064 * Kill Functions:: Functions that kill text.
1065 * Yanking:: How yanking is done.
1066 * Yank Commands:: Commands that access the kill ring.
1067 * Low-Level Kill Ring:: Functions and variables for kill ring access.
1068 * Internals of Kill Ring:: Variables that hold kill-ring data.
1072 * Primitive Indent:: Functions used to count and insert indentation.
1073 * Mode-Specific Indent:: Customize indentation for different modes.
1074 * Region Indent:: Indent all the lines in a region.
1075 * Relative Indent:: Indent the current line based on previous lines.
1076 * Indent Tabs:: Adjustable, typewriter-like tab stops.
1077 * Motion by Indent:: Move to first non-blank character.
1081 * Examining Properties:: Looking at the properties of one character.
1082 * Changing Properties:: Setting the properties of a range of text.
1083 * Property Search:: Searching for where a property changes value.
1084 * Special Properties:: Particular properties with special meanings.
1085 * Format Properties:: Properties for representing formatting of text.
1086 * Sticky Properties:: How inserted text gets properties from
1088 * Saving Properties:: Saving text properties in files, and reading
1090 * Lazy Properties:: Computing text properties in a lazy fashion
1091 only when text is examined.
1092 * Clickable Text:: Using text properties to make regions of text
1093 do something when you click on them.
1094 * Links and Mouse-1:: How to make @key{Mouse-1} follow a link.
1095 * Fields:: The @code{field} property defines
1096 fields within the buffer.
1097 * Not Intervals:: Why text properties do not use
1098 Lisp-visible text intervals.
1100 Non-ASCII Characters
1102 * Text Representations:: Unibyte and multibyte representations
1103 * Converting Representations:: Converting unibyte to multibyte and vice versa.
1104 * Selecting a Representation:: Treating a byte sequence as unibyte or multi.
1105 * Character Codes:: How unibyte and multibyte relate to
1106 codes of individual characters.
1107 * Character Sets:: The space of possible character codes
1108 is divided into various character sets.
1109 * Chars and Bytes:: More information about multibyte encodings.
1110 * Splitting Characters:: Converting a character to its byte sequence.
1111 * Scanning Charsets:: Which character sets are used in a buffer?
1112 * Translation of Characters:: Translation tables are used for conversion.
1113 * Coding Systems:: Coding systems are conversions for saving files.
1114 * Input Methods:: Input methods allow users to enter various
1115 non-ASCII characters without special keyboards.
1116 * Locales:: Interacting with the POSIX locale.
1120 * Coding System Basics:: Basic concepts.
1121 * Encoding and I/O:: How file I/O functions handle coding systems.
1122 * Lisp and Coding Systems:: Functions to operate on coding system names.
1123 * User-Chosen Coding Systems:: Asking the user to choose a coding system.
1124 * Default Coding Systems:: Controlling the default choices.
1125 * Specifying Coding Systems:: Requesting a particular coding system
1126 for a single file operation.
1127 * Explicit Encoding:: Encoding or decoding text without doing I/O.
1128 * Terminal I/O Encoding:: Use of encoding for terminal I/O.
1129 * MS-DOS File Types:: How DOS "text" and "binary" files
1130 relate to coding systems.
1132 Searching and Matching
1134 * String Search:: Search for an exact match.
1135 * Searching and Case:: Case-independent or case-significant searching.
1136 * Regular Expressions:: Describing classes of strings.
1137 * Regexp Search:: Searching for a match for a regexp.
1138 * POSIX Regexps:: Searching POSIX-style for the longest match.
1139 * Match Data:: Finding out which part of the text matched,
1140 after a string or regexp search.
1141 * Search and Replace:: Commands that loop, searching and replacing.
1142 * Standard Regexps:: Useful regexps for finding sentences, pages,...
1146 * Syntax of Regexps:: Rules for writing regular expressions.
1147 * Regexp Example:: Illustrates regular expression syntax.
1148 * Regexp Functions:: Functions for operating on regular expressions.
1150 Syntax of Regular Expressions
1152 * Regexp Special:: Special characters in regular expressions.
1153 * Char Classes:: Character classes used in regular expressions.
1154 * Regexp Backslash:: Backslash-sequences in regular expressions.
1158 * Replacing Match:: Replacing a substring that was matched.
1159 * Simple Match Data:: Accessing single items of match data,
1160 such as where a particular subexpression started.
1161 * Entire Match Data:: Accessing the entire match data at once, as a list.
1162 * Saving Match Data:: Saving and restoring the match data.
1166 * Syntax Basics:: Basic concepts of syntax tables.
1167 * Syntax Descriptors:: How characters are classified.
1168 * Syntax Table Functions:: How to create, examine and alter syntax tables.
1169 * Syntax Properties:: Overriding syntax with text properties.
1170 * Motion and Syntax:: Moving over characters with certain syntaxes.
1171 * Parsing Expressions:: Parsing balanced expressions
1172 using the syntax table.
1173 * Standard Syntax Tables:: Syntax tables used by various major modes.
1174 * Syntax Table Internals:: How syntax table information is stored.
1175 * Categories:: Another way of classifying character syntax.
1179 * Syntax Class Table:: Table of syntax classes.
1180 * Syntax Flags:: Additional flags each character can have.
1184 * Motion via Parsing:: Motion functions that work by parsing.
1185 * Position Parse:: Determining the syntactic state of a position.
1186 * Parser State:: How Emacs represents a syntactic state.
1187 * Low-Level Parsing:: Parsing across a specified region.
1188 * Control Parsing:: Parameters that affect parsing.
1190 Abbrevs And Abbrev Expansion
1192 * Abbrev Mode:: Setting up Emacs for abbreviation.
1193 * Abbrev Tables:: Creating and working with abbrev tables.
1194 * Defining Abbrevs:: Specifying abbreviations and their expansions.
1195 * Abbrev Files:: Saving abbrevs in files.
1196 * Abbrev Expansion:: Controlling expansion; expansion subroutines.
1197 * Standard Abbrev Tables:: Abbrev tables used by various major modes.
1201 * Subprocess Creation:: Functions that start subprocesses.
1202 * Shell Arguments:: Quoting an argument to pass it to a shell.
1203 * Synchronous Processes:: Details of using synchronous subprocesses.
1204 * Asynchronous Processes:: Starting up an asynchronous subprocess.
1205 * Deleting Processes:: Eliminating an asynchronous subprocess.
1206 * Process Information:: Accessing run-status and other attributes.
1207 * Input to Processes:: Sending input to an asynchronous subprocess.
1208 * Signals to Processes:: Stopping, continuing or interrupting
1209 an asynchronous subprocess.
1210 * Output from Processes:: Collecting output from an asynchronous subprocess.
1211 * Sentinels:: Sentinels run when process run-status changes.
1212 * Query Before Exit:: Whether to query if exiting will kill a process.
1213 * Transaction Queues:: Transaction-based communication with subprocesses.
1214 * Network:: Opening network connections.
1215 * Network Servers:: Network servers let Emacs accept net connections.
1216 * Datagrams:: UDP network connections.
1217 * Low-Level Network:: Lower-level but more general function
1218 to create connections and servers.
1219 * Misc Network:: Additional relevant functions for network connections.
1220 * Byte Packing:: Using bindat to pack and unpack binary data.
1222 Receiving Output from Processes
1224 * Process Buffers:: If no filter, output is put in a buffer.
1225 * Filter Functions:: Filter functions accept output from the process.
1226 * Decoding Output:: Filters can get unibyte or multibyte strings.
1227 * Accepting Output:: How to wait until process output arrives.
1229 Low-Level Network Access
1231 * Proc: Network Processes. Using @code{make-network-process}.
1232 * Options: Network Options. Further control over network connections.
1233 * Features: Network Feature Testing.
1234 Determining which network features work on
1235 the machine you are using.
1237 Packing and Unpacking Byte Arrays
1239 * Bindat Spec:: Describing data layout.
1240 * Bindat Functions:: Doing the unpacking and packing.
1241 * Bindat Examples:: Samples of what bindat.el can do for you!
1245 * Refresh Screen:: Clearing the screen and redrawing everything on it.
1246 * Forcing Redisplay:: Forcing redisplay.
1247 * Truncation:: Folding or wrapping long text lines.
1248 * The Echo Area:: Displaying messages at the bottom of the screen.
1249 * Warnings:: Displaying warning messages for the user.
1250 * Invisible Text:: Hiding part of the buffer text.
1251 * Selective Display:: Hiding part of the buffer text (the old way).
1252 * Temporary Displays:: Displays that go away automatically.
1253 * Overlays:: Use overlays to highlight parts of the buffer.
1254 * Width:: How wide a character or string is on the screen.
1255 * Line Height:: Controlling the height of lines.
1256 * Faces:: A face defines a graphics style
1257 for text characters: font, colors, etc.
1258 * Fringes:: Controlling window fringes.
1259 * Scroll Bars:: Controlling vertical scroll bars.
1260 * Display Property:: Enabling special display features.
1261 * Images:: Displaying images in Emacs buffers.
1262 * Buttons:: Adding clickable buttons to Emacs buffers.
1263 * Abstract Display:: Emacs' Widget for Object Collections.
1264 * Blinking:: How Emacs shows the matching open parenthesis.
1265 * Usual Display:: The usual conventions for displaying nonprinting chars.
1266 * Display Tables:: How to specify other conventions.
1267 * Beeping:: Audible signal to the user.
1268 * Window Systems:: Which window system is being used.
1272 * Displaying Messages:: Explicitly displaying text in the echo area.
1273 * Progress:: Informing user about progress of a long operation.
1274 * Logging Messages:: Echo area messages are logged for the user.
1275 * Echo Area Customization:: Controlling the echo area.
1279 * Warning Basics:: Warnings concepts and functions to report them.
1280 * Warning Variables:: Variables programs bind to customize their warnings.
1281 * Warning Options:: Variables users set to control display of warnings.
1285 * Managing Overlays:: Creating and moving overlays.
1286 * Overlay Properties:: How to read and set properties.
1287 What properties do to the screen display.
1288 * Finding Overlays:: Searching for overlays.
1292 * Defining Faces:: How to define a face with @code{defface}.
1293 * Face Attributes:: What is in a face?
1294 * Attribute Functions:: Functions to examine and set face attributes.
1295 * Displaying Faces:: How Emacs combines the faces specified for
1297 * Font Selection:: Finding the best available font for a face.
1298 * Face Functions:: How to define and examine faces.
1299 * Auto Faces:: Hook for automatic face assignment.
1300 * Font Lookup:: Looking up the names of available fonts
1301 and information about them.
1302 * Fontsets:: A fontset is a collection of fonts
1303 that handle a range of character sets.
1307 * Fringe Size/Pos:: Specifying where to put the window fringes.
1308 * Fringe Indicators:: Displaying indicator icons in the window fringes.
1309 * Fringe Cursors:: Displaying cursors in the right fringe.
1310 * Fringe Bitmaps:: Specifying bitmaps for fringe indicators.
1311 * Customizing Bitmaps:: Specifying your own bitmaps to use in the fringes.
1312 * Overlay Arrow:: Display of an arrow to indicate position.
1314 The @code{display} Property
1316 * Specified Space:: Displaying one space with a specified width.
1317 * Pixel Specification:: Specifying space width or height in pixels.
1318 * Other Display Specs:: Displaying an image; magnifying text; moving it
1319 up or down on the page; adjusting the width
1320 of spaces within text.
1321 * Display Margins:: Displaying text or images to the side of
1326 * Image Descriptors:: How to specify an image for use in @code{:display}.
1327 * XBM Images:: Special features for XBM format.
1328 * XPM Images:: Special features for XPM format.
1329 * GIF Images:: Special features for GIF format.
1330 * PostScript Images:: Special features for PostScript format.
1331 * Other Image Types:: Various other formats are supported.
1332 * Defining Images:: Convenient ways to define an image for later use.
1333 * Showing Images:: Convenient ways to display an image once
1335 * Image Cache:: Internal mechanisms of image display.
1339 * Button Properties:: Button properties with special meanings.
1340 * Button Types:: Defining common properties for classes of buttons.
1341 * Making Buttons:: Adding buttons to Emacs buffers.
1342 * Manipulating Buttons:: Getting and setting properties of buttons.
1343 * Button Buffer Commands:: Buffer-wide commands and bindings for buttons.
1347 * Abstract Display Functions:: Functions in the Ewoc package.
1348 * Abstract Display Example:: Example of using Ewoc.
1352 * Display Table Format:: What a display table consists of.
1353 * Active Display Table:: How Emacs selects a display table to use.
1354 * Glyphs:: How to define a glyph, and what glyphs mean.
1356 Operating System Interface
1358 * Starting Up:: Customizing Emacs start-up processing.
1359 * Getting Out:: How exiting works (permanent or temporary).
1360 * System Environment:: Distinguish the name and kind of system.
1361 * User Identification:: Finding the name and user id of the user.
1362 * Time of Day:: Getting the current time.
1363 * Time Conversion:: Converting a time from numeric form to a string, or
1364 to calendrical data (or vice versa).
1365 * Time Parsing:: Converting a time from numeric form to text
1367 * Processor Run Time:: Getting the run time used by Emacs.
1368 * Time Calculations:: Adding, subtracting, comparing times, etc.
1369 * Timers:: Setting a timer to call a function at a certain time.
1370 * Idle Timers:: Setting a timer to call a function when Emacs has
1371 been idle for a certain length of time.
1372 * Terminal Input:: Accessing and recording terminal input.
1373 * Terminal Output:: Controlling and recording terminal output.
1374 * Sound Output:: Playing sounds on the computer's speaker.
1375 * X11 Keysyms:: Operating on key symbols for X Windows
1376 * Batch Mode:: Running Emacs without terminal interaction.
1377 * Session Management:: Saving and restoring state with X Session Management.
1381 * Startup Summary:: Sequence of actions Emacs performs at start-up.
1382 * Init File:: Details on reading the init file (@file{.emacs}).
1383 * Terminal-Specific:: How the terminal-specific Lisp file is read.
1384 * Command-Line Arguments:: How command-line arguments are processed,
1385 and how you can customize them.
1387 Getting Out of Emacs
1389 * Killing Emacs:: Exiting Emacs irreversibly.
1390 * Suspending Emacs:: Exiting Emacs reversibly.
1394 * Input Modes:: Options for how input is processed.
1395 * Recording Input:: Saving histories of recent or all input events.
1397 Tips and Conventions
1399 * Coding Conventions:: Conventions for clean and robust programs.
1400 * Key Binding Conventions:: Which keys should be bound by which programs.
1401 * Programming Tips:: Making Emacs code fit smoothly in Emacs.
1402 * Compilation Tips:: Making compiled code run fast.
1403 * Warning Tips:: Turning off compiler warnings.
1404 * Documentation Tips:: Writing readable documentation strings.
1405 * Comment Tips:: Conventions for writing comments.
1406 * Library Headers:: Standard headers for library packages.
1410 * Building Emacs:: How the dumped Emacs is made.
1411 * Pure Storage:: A kludge to make preloaded Lisp functions sharable.
1412 * Garbage Collection:: Reclaiming space for Lisp objects no longer used.
1413 * Memory Usage:: Info about total size of Lisp objects made so far.
1414 * Writing Emacs Primitives:: Writing C code for Emacs.
1415 * Object Internals:: Data formats of buffers, windows, processes.
1419 * Buffer Internals:: Components of a buffer structure.
1420 * Window Internals:: Components of a window structure.
1421 * Process Internals:: Components of a process structure.
1426 @include objects.texi
1427 @include numbers.texi
1428 @include strings.texi
1431 @include sequences.texi
1433 @include symbols.texi
1436 @include control.texi
1437 @include variables.texi
1438 @include functions.texi
1439 @include macros.texi
1441 @include customize.texi
1442 @include loading.texi
1443 @include compile.texi
1444 @include advice.texi
1446 @include debugging.texi
1447 @include streams.texi
1448 @include minibuf.texi
1449 @include commands.texi
1451 @include keymaps.texi
1456 @include backups.texi
1458 @c ================ Beginning of Volume 2 ================
1459 @c include buffers.texi
1460 @c include windows.texi
1461 @c include frames.texi
1463 @c include positions.texi
1464 @c include markers.texi
1465 @c include text.texi
1466 @c include nonascii.texi
1468 @c include searching.texi
1469 @c include syntax.texi
1470 @c include abbrevs.texi
1471 @c include processes.texi
1473 @c include display.texi
1476 @c MOVE to Emacs Manual: include misc-modes.texi
1480 @c REMOVE this: include non-hacker.texi
1482 @c include anti.texi
1483 @c include doclicense.texi
1485 @c include tips.texi
1486 @c include internals.texi
1487 @c include errors.texi
1488 @c include locals.texi
1489 @c include maps.texi
1490 @c include hooks.texi
1495 @node New Symbols, , Index, Top
1496 @unnumbered New Symbols Since the Previous Edition
1504 These words prevent "local variables" above from confusing Emacs.
1507 arch-tag: 9594760d-8801-4d1b-aeb9-f3b3166b5be2