XEmacs 21.2.32 "Kastor & Polydeukes".
[chise/xemacs-chise.git.1] / info / lispref.info-1
1 This is ../info/lispref.info, produced by makeinfo version 4.0 from
2 lispref/lispref.texi.
3
4 INFO-DIR-SECTION XEmacs Editor
5 START-INFO-DIR-ENTRY
6 * Lispref: (lispref).           XEmacs Lisp Reference Manual.
7 END-INFO-DIR-ENTRY
8
9    Edition History:
10
11    GNU Emacs Lisp Reference Manual Second Edition (v2.01), May 1993 GNU
12 Emacs Lisp Reference Manual Further Revised (v2.02), August 1993 Lucid
13 Emacs Lisp Reference Manual (for 19.10) First Edition, March 1994
14 XEmacs Lisp Programmer's Manual (for 19.12) Second Edition, April 1995
15 GNU Emacs Lisp Reference Manual v2.4, June 1995 XEmacs Lisp
16 Programmer's Manual (for 19.13) Third Edition, July 1995 XEmacs Lisp
17 Reference Manual (for 19.14 and 20.0) v3.1, March 1996 XEmacs Lisp
18 Reference Manual (for 19.15 and 20.1, 20.2, 20.3) v3.2, April, May,
19 November 1997 XEmacs Lisp Reference Manual (for 21.0) v3.3, April 1998
20
21    Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software
22 Foundation, Inc.  Copyright (C) 1994, 1995 Sun Microsystems, Inc.
23 Copyright (C) 1995, 1996 Ben Wing.
24
25    Permission is granted to make and distribute verbatim copies of this
26 manual provided the copyright notice and this permission notice are
27 preserved on all copies.
28
29    Permission is granted to copy and distribute modified versions of
30 this manual under the conditions for verbatim copying, provided that the
31 entire resulting derived work is distributed under the terms of a
32 permission notice identical to this one.
33
34    Permission is granted to copy and distribute translations of this
35 manual into another language, under the above conditions for modified
36 versions, except that this permission notice may be stated in a
37 translation approved by the Foundation.
38
39    Permission is granted to copy and distribute modified versions of
40 this manual under the conditions for verbatim copying, provided also
41 that the section entitled "GNU General Public License" is included
42 exactly as in the original, and provided that the entire resulting
43 derived work is distributed under the terms of a permission notice
44 identical to this one.
45
46    Permission is granted to copy and distribute translations of this
47 manual into another language, under the above conditions for modified
48 versions, except that the section entitled "GNU General Public License"
49 may be included in a translation approved by the Free Software
50 Foundation instead of in the original English.
51
52 \1f
53 File: lispref.info,  Node: Top,  Next: Copying,  Prev: (dir),  Up: (dir)
54
55    This Info file contains the third edition of the XEmacs Lisp
56 Reference Manual, corresponding to XEmacs version 21.0.
57
58 * Menu:
59
60 * Copying::                 Conditions for copying and changing XEmacs.
61 * Introduction::            Introduction and conventions used.
62
63 * Lisp Data Types::         Data types of objects in XEmacs Lisp.
64 * Numbers::                 Numbers and arithmetic functions.
65 * Strings and Characters::  Strings, and functions that work on them.
66 * Lists::                   Lists, cons cells, and related functions.
67 * Sequences Arrays Vectors::  Lists, strings and vectors are called sequences.
68                                 Certain functions act on any kind of sequence.
69                                 The description of vectors is here as well.
70 * Symbols::                 Symbols represent names, uniquely.
71
72 * Evaluation::              How Lisp expressions are evaluated.
73 * Control Structures::      Conditionals, loops, nonlocal exits.
74 * Variables::               Using symbols in programs to stand for values.
75 * Functions::               A function is a Lisp program
76                               that can be invoked from other functions.
77 * Macros::                  Macros are a way to extend the Lisp language.
78 * Customization::           Writing customization declarations.
79
80 * Loading::                 Reading files of Lisp code into Lisp.
81 * Byte Compilation::        Compilation makes programs run faster.
82 * Debugging::               Tools and tips for debugging Lisp programs.
83
84 * Read and Print::          Converting Lisp objects to text and back.
85 * Minibuffers::             Using the minibuffer to read input.
86 * Command Loop::            How the editor command loop works,
87                               and how you can call its subroutines.
88 * Keymaps::                 Defining the bindings from keys to commands.
89 * Menus::                   Defining pull-down and pop-up menus.
90 * Dialog Boxes::            Creating dialog boxes.
91 * Toolbar::                 Controlling the toolbar.
92 * Gutter::                  Controlling the gutter.
93 * Scrollbars::              Controlling the scrollbars.
94 * Drag and Drop::           Generic API to inter-application communication
95                               via specific protocols.
96 * Modes::                   Defining major and minor modes.
97 * Documentation::           Writing and using documentation strings.
98
99 * Files::                   Accessing files.
100 * Backups and Auto-Saving:: Controlling how backups and auto-save
101                               files are made.
102 * Buffers::                 Creating and using buffer objects.
103 * Windows::                 Manipulating windows and displaying buffers.
104 * Frames::                  Making multiple X windows.
105 * Consoles and Devices::    Opening frames on multiple TTY's or X displays.
106 * Positions::               Buffer positions and motion functions.
107 * Markers::                 Markers represent positions and update
108                               automatically when the text is changed.
109
110 * Text::                    Examining and changing text in buffers.
111 * Searching and Matching::  Searching buffers for strings or regexps.
112 * Syntax Tables::           The syntax table controls word and list parsing.
113 * Abbrevs::                 How Abbrev mode works, and its data structures.
114
115 * Extents::                 Extents are regions of text with particular
116                               display characteristics.
117 * Specifiers::              How faces and glyphs are specified.
118 * Faces and Window-System Objects::
119                             A face is a set of display characteristics
120                               specifying how text is to be displayed.
121 * Glyphs::                  General interface to pixmaps displayed in a
122                               buffer or frame.
123 * Annotations::             Higher-level interface to glyphs in a buffer.
124 * Display::                 Parameters controlling screen usage.
125                               The bell.  Waiting for input.
126
127 * Hash Tables::             Fast data structures for mappings.
128 * Range Tables::            Keeping track of ranges of numbers.
129 * Databases::               An interface to standard DBM and DB databases.
130
131 * Processes::               Running and communicating with subprocesses.
132 * System Interface::        Getting the user id, system type, environment
133                               variables, and other such things.
134 * X-Windows::               Functions specific to the X Window System.
135 * ToolTalk Support::        Interfacing with the ToolTalk message service.
136 * LDAP Support::            Interfacing with the Lightweight Directory
137                               Access Protocol.
138 * PostgreSQL Support::      Interfacing to the PostgreSQL libpq library.
139 * Internationalization::    How Emacs supports different languages and
140                               cultural conventions.
141 * MULE::                    Specifics of the Asian-language support.
142
143 Appendices
144
145 * Tips::                    Advice for writing Lisp programs.
146 * Building XEmacs and Object Allocation::
147                             Behind-the-scenes information about XEmacs.
148 * Standard Errors::         List of all error symbols.
149 * Standard Buffer-Local Variables::  List of variables local in all buffers.
150 * Standard Keymaps::        List of standard keymaps.
151 * Standard Hooks::          List of standard hook variables.
152
153 * Index::                   Index including concepts, functions, variables,
154                               and other terms.
155
156       --- The Detailed Node Listing ---
157
158 Here are other nodes that are inferiors of those already listed,
159 mentioned here so you can get to them in one step:
160
161 Introduction
162
163 * Caveats::                 Flaws and a request for help.
164 * Lisp History::            XEmacs Lisp is descended from Maclisp.
165 * Conventions::             How the manual is formatted.
166 * Acknowledgements::        The authors, editors, and sponsors of this manual.
167
168 Conventions
169
170 * Some Terms::              Explanation of terms we use in this manual.
171 * nil and t::               How the symbols `nil' and `t' are used.
172 * Evaluation Notation::     The format we use for examples of evaluation.
173 * Printing Notation::       The format we use for examples that print output.
174 * Error Messages::          The format we use for examples of errors.
175 * Buffer Text Notation::    The format we use for buffer contents in examples.
176 * Format of Descriptions::  Notation for describing functions, variables, etc.
177
178 Format of Descriptions
179
180 * A Sample Function Description::
181 * A Sample Variable Description::
182
183 Lisp Data Types
184
185 * Printed Representation::  How Lisp objects are represented as text.
186 * Comments::                Comments and their formatting conventions.
187 * Programming Types::       Types found in all Lisp systems.
188 * Editing Types::           Types specific to XEmacs.
189 * Type Predicates::         Tests related to types.
190 * Equality Predicates::     Tests of equality between any two objects.
191
192 Programming Types
193
194 * Integer Type::        Numbers without fractional parts.
195 * Floating Point Type:: Numbers with fractional parts and with a large range.
196 * Character Type::      The representation of letters, numbers and
197                         control characters.
198 * Sequence Type::       Both lists and arrays are classified as sequences.
199 * Cons Cell Type::      Cons cells, and lists (which are made from cons cells).
200 * Array Type::          Arrays include strings and vectors.
201 * String Type::         An (efficient) array of characters.
202 * Vector Type::         One-dimensional arrays.
203 * Symbol Type::         A multi-use object that refers to a function,
204                         variable, property list, or itself.
205 * Function Type::       A piece of executable code you can call from elsewhere.
206 * Macro Type::          A method of expanding an expression into another
207                           expression, more fundamental but less pretty.
208 * Primitive Function Type::     A function written in C, callable from Lisp.
209 * Compiled-Function Type::      A function written in Lisp, then compiled.
210 * Autoload Type::       A type used for automatically loading seldom-used
211                         functions.
212
213 Cons Cell Type
214
215 * Dotted Pair Notation::    An alternative syntax for lists.
216 * Association List Type::   A specially constructed list.
217
218 Editing Types
219
220 * Buffer Type::             The basic object of editing.
221 * Window Type::             What makes buffers visible.
222 * Window Configuration Type:: Save what the screen looks like.
223 * Marker Type::             A position in a buffer.
224 * Process Type::            A process running on the underlying OS.
225 * Stream Type::             Receive or send characters.
226 * Keymap Type::             What function a keystroke invokes.
227 * Syntax Table Type::       What a character means.
228
229 Numbers
230
231 * Integer Basics::            Representation and range of integers.
232 * Float Basics::              Representation and range of floating point.
233 * Predicates on Numbers::     Testing for numbers.
234 * Comparison of Numbers::     Equality and inequality predicates.
235 * Arithmetic Operations::     How to add, subtract, multiply and divide.
236 * Bitwise Operations::        Logical and, or, not, shifting.
237 * Numeric Conversions::       Converting float to integer and vice versa.
238 * Math Functions::            Trig, exponential and logarithmic functions.
239 * Random Numbers::            Obtaining random integers, predictable or not.
240
241 Strings and Characters
242
243 * String Basics::             Basic properties of strings and characters.
244 * Predicates for Strings::    Testing whether an object is a string or char.
245 * Creating Strings::          Functions to allocate new strings.
246 * Predicates for Characters:: Testing whether an object is a character.
247 * Character Codes::           Each character has an equivalent integer.
248 * Text Comparison::           Comparing characters or strings.
249 * String Conversion::         Converting characters or strings and vice versa.
250 * Modifying Strings::         Changing characters in a string.
251 * String Properties::         Additional information attached to strings.
252 * Formatting Strings::        `format': XEmacs's analog of `printf'.
253 * Character Case::            Case conversion functions.
254 * Char Tables::               Mapping from characters to Lisp objects.
255 * Case Tables::               Customizing case conversion.
256
257 Lists
258
259 * Cons Cells::              How lists are made out of cons cells.
260 * Lists as Boxes::          Graphical notation to explain lists.
261 * List-related Predicates:: Is this object a list?  Comparing two lists.
262 * List Elements::           Extracting the pieces of a list.
263 * Building Lists::          Creating list structure.
264 * Modifying Lists::         Storing new pieces into an existing list.
265 * Sets And Lists::          A list can represent a finite mathematical set.
266 * Association Lists::       A list can represent a finite relation or mapping.
267 * Property Lists::          A different way to represent a finite mapping.
268 * Weak Lists::              A list with special garbage-collection behavior.
269
270 Modifying Existing List Structure
271
272 * Setcar::                  Replacing an element in a list.
273 * Setcdr::                  Replacing part of the list backbone.
274                               This can be used to remove or add elements.
275 * Rearrangement::           Reordering the elements in a list; combining lists.
276
277 Sequences, Arrays, and Vectors
278
279 * Sequence Functions::      Functions that accept any kind of sequence.
280 * Arrays::                  Characteristics of arrays in XEmacs Lisp.
281 * Array Functions::         Functions specifically for arrays.
282 * Vectors::                 Functions specifically for vectors.
283
284 Symbols
285
286 * Symbol Components::       Symbols have names, values, function definitions
287                               and property lists.
288 * Definitions::             A definition says how a symbol will be used.
289 * Creating Symbols::        How symbols are kept unique.
290 * Symbol Properties::       Each symbol has a property list
291                               for recording miscellaneous information.
292
293 Evaluation
294
295 * Intro Eval::              Evaluation in the scheme of things.
296 * Eval::                    How to invoke the Lisp interpreter explicitly.
297 * Forms::                   How various sorts of objects are evaluated.
298 * Quoting::                 Avoiding evaluation (to put constants in
299                               the program).
300
301 Kinds of Forms
302
303 * Self-Evaluating Forms::   Forms that evaluate to themselves.
304 * Symbol Forms::            Symbols evaluate as variables.
305 * Classifying Lists::       How to distinguish various sorts of list forms.
306 * Function Forms::          Forms that call functions.
307 * Macro Forms::             Forms that call macros.
308 * Special Forms::           ``Special forms'' are idiosyncratic primitives,
309                               most of them extremely important.
310 * Autoloading::             Functions set up to load files
311                               containing their real definitions.
312
313 Control Structures
314
315 * Sequencing::              Evaluation in textual order.
316 * Conditionals::            `if', `cond'.
317 * Combining Conditions::    `and', `or', `not'.
318 * Iteration::               `while' loops.
319 * Nonlocal Exits::          Jumping out of a sequence.
320
321 Nonlocal Exits
322
323 * Catch and Throw::         Nonlocal exits for the program's own purposes.
324 * Examples of Catch::       Showing how such nonlocal exits can be written.
325 * Errors::                  How errors are signaled and handled.
326 * Cleanups::                Arranging to run a cleanup form if an
327                               error happens.
328
329 Errors
330
331 * Signaling Errors::        How to report an error.
332 * Processing of Errors::    What XEmacs does when you report an error.
333 * Handling Errors::         How you can trap errors and continue execution.
334 * Error Symbols::           How errors are classified for trapping them.
335
336 Variables
337
338 * Global Variables::        Variable values that exist permanently, everywhere.
339 * Constant Variables::      Certain "variables" have values that never change.
340 * Local Variables::         Variable values that exist only temporarily.
341 * Void Variables::          Symbols that lack values.
342 * Defining Variables::      A definition says a symbol is used as a variable.
343 * Accessing Variables::     Examining values of variables whose names
344                               are known only at run time.
345 * Setting Variables::       Storing new values in variables.
346 * Variable Scoping::        How Lisp chooses among local and global values.
347 * Buffer-Local Variables::  Variable values in effect only in one buffer.
348
349 Scoping Rules for Variable Bindings
350
351 * Scope::                   Scope means where in the program a value
352                               is visible.  Comparison with other languages.
353 * Extent::                  Extent means how long in time a value exists.
354 * Impl of Scope::           Two ways to implement dynamic scoping.
355 * Using Scoping::           How to use dynamic scoping carefully and
356                               avoid problems.
357
358 Buffer-Local Variables
359
360 * Intro to Buffer-Local::   Introduction and concepts.
361 * Creating Buffer-Local::   Creating and destroying buffer-local bindings.
362 * Default Value::           The default value is seen in buffers
363                               that don't have their own local values.
364
365 Functions
366
367 * What Is a Function::      Lisp functions vs primitives; terminology.
368 * Lambda Expressions::      How functions are expressed as Lisp objects.
369 * Function Names::          A symbol can serve as the name of a function.
370 * Defining Functions::      Lisp expressions for defining functions.
371 * Calling Functions::       How to use an existing function.
372 * Mapping Functions::       Applying a function to each element of a list, etc.
373 * Anonymous Functions::     Lambda-expressions are functions with no names.
374 * Function Cells::          Accessing or setting the function definition
375                               of a symbol.
376 * Related Topics::          Cross-references to specific Lisp primitives
377                               that have a special bearing on how
378                               functions work.
379
380 Lambda Expressions
381
382 * Lambda Components::       The parts of a lambda expression.
383 * Simple Lambda::           A simple example.
384 * Argument List::           Details and special features of argument lists.
385 * Function Documentation::  How to put documentation in a function.
386
387 Macros
388
389 * Simple Macro::            A basic example.
390 * Expansion::               How, when and why macros are expanded.
391 * Compiling Macros::        How macros are expanded by the compiler.
392 * Defining Macros::         How to write a macro definition.
393 * Backquote::               Easier construction of list structure.
394 * Problems with Macros::    Don't evaluate the macro arguments too many times.
395                               Don't hide the user's variables.
396
397 Loading
398
399 * How Programs Do Loading:: The `load' function and others.
400 * Autoload::                Setting up a function to autoload.
401 * Named Features::          Loading a library if it isn't already loaded.
402 * Repeated Loading::        Precautions about loading a file twice.
403
404 Byte Compilation
405
406 * Compilation Functions::   Byte compilation functions.
407 * Disassembly::             Disassembling byte-code; how to read byte-code.
408
409 Debugging Lisp Programs
410
411 * Debugger::                How the XEmacs Lisp debugger is implemented.
412 * Syntax Errors::           How to find syntax errors.
413 * Compilation Errors::      How to find errors that show up in
414                               byte compilation.
415 * Edebug::                  A source-level XEmacs Lisp debugger.
416
417 The Lisp Debugger
418
419 * Error Debugging::         Entering the debugger when an error happens.
420 * Function Debugging::      Entering it when a certain function is called.
421 * Explicit Debug::          Entering it at a certain point in the program.
422 * Using Debugger::          What the debugger does; what you see while in it.
423 * Debugger Commands::       Commands used while in the debugger.
424 * Invoking the Debugger::   How to call the function `debug'.
425 * Internals of Debugger::   Subroutines of the debugger, and global variables.
426
427 Debugging Invalid Lisp Syntax
428
429 * Excess Open::             How to find a spurious open paren or missing close.
430 * Excess Close::            How to find a spurious close paren or missing open.
431
432 Reading and Printing Lisp Objects
433
434 * Streams Intro::           Overview of streams, reading and printing.
435 * Input Streams::           Various data types that can be used as
436                               input streams.
437 * Input Functions::         Functions to read Lisp objects from text.
438 * Output Streams::          Various data types that can be used as
439                               output streams.
440 * Output Functions::        Functions to print Lisp objects as text.
441
442 Minibuffers
443
444 * Intro to Minibuffers::    Basic information about minibuffers.
445 * Text from Minibuffer::    How to read a straight text string.
446 * Object from Minibuffer::  How to read a Lisp object or expression.
447 * Completion::              How to invoke and customize completion.
448 * Yes-or-No Queries::       Asking a question with a simple answer.
449 * Minibuffer Misc::         Various customization hooks and variables.
450
451 Completion
452
453 * Basic Completion::        Low-level functions for completing strings.
454                               (These are too low level to use the minibuffer.)
455 * Minibuffer Completion::   Invoking the minibuffer with completion.
456 * Completion Commands::     Minibuffer commands that do completion.
457 * High-Level Completion::   Convenient special cases of completion
458                               (reading buffer name, file name, etc.)
459 * Reading File Names::      Using completion to read file names.
460 * Programmed Completion::   Finding the completions for a given file name.
461
462 Command Loop
463
464 * Command Overview::    How the command loop reads commands.
465 * Defining Commands::   Specifying how a function should read arguments.
466 * Interactive Call::    Calling a command, so that it will read arguments.
467 * Command Loop Info::   Variables set by the command loop for you to examine.
468 * Events::              What input looks like when you read it.
469 * Reading Input::       How to read input events from the keyboard or mouse.
470 * Waiting::             Waiting for user input or elapsed time.
471 * Quitting::            How C-g works.  How to catch or defer quitting.
472 * Prefix Command Arguments::    How the commands to set prefix args work.
473 * Recursive Editing::   Entering a recursive edit,
474                           and why you usually shouldn't.
475 * Disabling Commands::  How the command loop handles disabled commands.
476 * Command History::     How the command history is set up, and how accessed.
477 * Keyboard Macros::     How keyboard macros are implemented.
478
479 Defining Commands
480
481 * Using Interactive::       General rules for `interactive'.
482 * Interactive Codes::       The standard letter-codes for reading arguments
483                               in various ways.
484 * Interactive Examples::    Examples of how to read interactive arguments.
485
486 Events
487
488 * Event Types::                 Events come in different types.
489 * Event Contents::              What the contents of each event type are.
490 * Event Predicates::            Querying whether an event is of a
491                                   particular type.
492 * Accessing Mouse Event Positions::
493                                 Determining where a mouse event occurred,
494                                   and over what.
495 * Accessing Other Event Info::  Accessing non-positional event info.
496 * Working With Events::         Creating, copying, and destroying events.
497 * Converting Events::           Converting between events, keys, and
498                                   characters.
499
500 Accessing Mouse Event Positions
501
502 * Frame-Level Event Position Info::
503 * Window-Level Event Position Info::
504 * Event Text Position Info::
505 * Event Glyph Position Info::
506 * Event Toolbar Position Info::
507 * Other Event Position Info::
508
509 Reading Input
510
511 * Key Sequence Input::          How to read one key sequence.
512 * Reading One Event::           How to read just one event.
513 * Dispatching an Event::        What to do with an event once it has been read.
514 * Quoted Character Input::      Asking the user to specify a character.
515 * Peeking and Discarding::      How to reread or throw away input events.
516
517 Keymaps
518
519 * Keymap Terminology::          Definitions of terms pertaining to keymaps.
520 * Format of Keymaps::           What a keymap looks like as a Lisp object.
521 * Creating Keymaps::            Functions to create and copy keymaps.
522 * Inheritance and Keymaps::     How one keymap can inherit the bindings
523                                   of another keymap.
524 * Key Sequences::               How to specify key sequences.
525 * Prefix Keys::                 Defining a key with a keymap as its definition.
526 * Active Keymaps::              Each buffer has a local keymap
527                                   to override the standard (global) bindings.
528                                 Each minor mode can also override them.
529 * Key Lookup::                  How extracting elements from keymaps works.
530 * Functions for Key Lookup::    How to request key lookup.
531 * Changing Key Bindings::       Redefining a key in a keymap.
532 * Key Binding Commands::        Interactive interfaces for redefining keys.
533 * Scanning Keymaps::            Looking through all keymaps, for printing help.
534 * Other Keymap Functions::      Miscellaneous keymap functions.
535
536 Menus
537
538 * Menu Format::         Format of a menu description.
539 * Menubar Format::      How to specify a menubar.
540 * Menubar::             Functions for controlling the menubar.
541 * Modifying Menus::     Modifying a menu description.
542 * Pop-Up Menus::        Functions for specifying pop-up menus.
543 * Menu Filters::        Filter functions for the default menubar.
544 * Buffers Menu::        The menu that displays the list of buffers.
545
546 Dialog Boxes
547
548 * Dialog Box Format::
549 * Dialog Box Functions::
550
551 Toolbar
552
553 * Toolbar Intro::               An introduction.
554 * Toolbar Descriptor Format::   How to create a toolbar.
555 * Specifying the Toolbar::      Setting a toolbar.
556 * Other Toolbar Variables::     Controlling the size of toolbars.
557
558 Gutter
559
560 Scrollbars
561
562 Major and Minor Modes
563
564 * Major Modes::             Defining major modes.
565 * Minor Modes::             Defining minor modes.
566 * Modeline Format::         Customizing the text that appears in the modeline.
567 * Hooks::                   How to use hooks; how to write code that
568                               provides hooks.
569
570 Major Modes
571
572 * Major Mode Conventions::  Coding conventions for keymaps, etc.
573 * Example Major Modes::     Text mode and Lisp modes.
574 * Auto Major Mode::         How XEmacs chooses the major mode automatically.
575 * Mode Help::               Finding out how to use a mode.
576
577 Minor Modes
578
579 * Minor Mode Conventions::  Tips for writing a minor mode.
580 * Keymaps and Minor Modes:: How a minor mode can have its own keymap.
581
582 Modeline Format
583
584 * Modeline Data::           The data structure that controls the modeline.
585 * Modeline Variables::      Variables used in that data structure.
586 * %-Constructs::            Putting information into a modeline.
587
588 Documentation
589
590 * Documentation Basics::    Good style for doc strings.
591                               Where to put them.  How XEmacs stores them.
592 * Accessing Documentation:: How Lisp programs can access doc strings.
593 * Keys in Documentation::   Substituting current key bindings.
594 * Describing Characters::   Making printable descriptions of
595                               non-printing characters and key sequences.
596 * Help Functions::          Subroutines used by XEmacs help facilities.
597
598 Files
599
600 * Visiting Files::          Reading files into Emacs buffers for editing.
601 * Saving Buffers::          Writing changed buffers back into files.
602 * Reading from Files::      Reading files into other buffers.
603 * Writing to Files::        Writing new files from parts of buffers.
604 * File Locks::              Locking and unlocking files, to prevent
605                                 simultaneous editing by two people.
606 * Information about Files::   Testing existence, accessibility, size of files.
607 * Contents of Directories::   Getting a list of the files in a directory.
608 * Changing File Attributes::  Renaming files, changing protection, etc.
609 * File Names::                Decomposing and expanding file names.
610
611 Visiting Files
612
613 * Visiting Functions::      The usual interface functions for visiting.
614 * Subroutines of Visiting:: Lower-level subroutines that they use.
615
616 Information about Files
617
618 * Testing Accessibility::   Is a given file readable?  Writable?
619 * Kinds of Files::          Is it a directory?  A link?
620 * File Attributes::         How large is it?  Any other names?  Etc.
621
622 File Names
623
624 * File Name Components::    The directory part of a file name, and the rest.
625 * Directory Names::         A directory's name as a directory
626                               is different from its name as a file.
627 * Relative File Names::     Some file names are relative to a
628                               current directory.
629 * File Name Expansion::     Converting relative file names to absolute ones.
630 * Unique File Names::       Generating names for temporary files.
631 * File Name Completion::    Finding the completions for a given file name.
632
633 Backups and Auto-Saving
634
635 * Backup Files::            How backup files are made; how their names
636                               are chosen.
637 * Auto-Saving::             How auto-save files are made; how their
638                               names are chosen.
639 * Reverting::               `revert-buffer', and how to customize
640                               what it does.
641
642 Backup Files
643
644 * Making Backups::          How XEmacs makes backup files, and when.
645 * Rename or Copy::          Two alternatives: renaming the old file
646                               or copying it.
647 * Numbered Backups::        Keeping multiple backups for each source file.
648 * Backup Names::            How backup file names are computed; customization.
649
650 Buffers
651
652 * Buffer Basics::           What is a buffer?
653 * Buffer Names::            Accessing and changing buffer names.
654 * Buffer File Name::        The buffer file name indicates which file
655                               is visited.
656 * Buffer Modification::     A buffer is "modified" if it needs to be saved.
657 * Modification Time::       Determining whether the visited file was changed
658                               ``behind XEmacs's back''.
659 * Read Only Buffers::       Modifying text is not allowed in a
660                               read-only buffer.
661 * The Buffer List::         How to look at all the existing buffers.
662 * Creating Buffers::        Functions that create buffers.
663 * Killing Buffers::         Buffers exist until explicitly killed.
664 * Current Buffer::          Designating a buffer as current
665                               so primitives will access its contents.
666
667 Windows
668
669 * Basic Windows::           Basic information on using windows.
670 * Splitting Windows::       Splitting one window into two windows.
671 * Deleting Windows::        Deleting a window gives its space to other windows.
672 * Selecting Windows::       The selected window is the one that you edit in.
673 * Cyclic Window Ordering::  Moving around the existing windows.
674 * Buffers and Windows::     Each window displays the contents of a buffer.
675 * Displaying Buffers::      Higher-lever functions for displaying a buffer
676                               and choosing a window for it.
677 * Window Point::            Each window has its own location of point.
678 * Window Start::            The display-start position controls which text
679                               is on-screen in the window.
680 * Vertical Scrolling::      Moving text up and down in the window.
681 * Horizontal Scrolling::    Moving text sideways on the window.
682 * Size of Window::          Accessing the size of a window.
683 * Resizing Windows::        Changing the size of a window.
684 * Window Configurations::   Saving and restoring the state of the screen.
685
686 Frames
687
688 * Creating Frames::         Creating additional frames.
689 * Frame Properties::        Controlling frame size, position, font, etc.
690 * Frame Titles::            Automatic updating of frame titles.
691 * Deleting Frames::         Frames last until explicitly deleted.
692 * Finding All Frames::      How to examine all existing frames.
693 * Frames and Windows::      A frame contains windows;
694                               display of text always works through windows.
695 * Minibuffers and Frames::  How a frame finds the minibuffer to use.
696 * Input Focus::             Specifying the selected frame.
697 * Visibility of Frames::    Frames may be visible or invisible, or icons.
698 * Raising and Lowering::    Raising a frame makes it hide other X windows;
699                               lowering it makes the others hide them.
700 * Frame Hooks::             Hooks for customizing frame behavior.
701
702 Positions
703
704 * Point::                   The special position where editing takes place.
705 * Motion::                  Changing point.
706 * Excursions::              Temporary motion and buffer changes.
707 * Narrowing::               Restricting editing to a portion of the buffer.
708
709 Motion
710
711 * Character Motion::        Moving in terms of characters.
712 * Word Motion::             Moving in terms of words.
713 * Buffer End Motion::       Moving to the beginning or end of the buffer.
714 * Text Lines::              Moving in terms of lines of text.
715 * Screen Lines::            Moving in terms of lines as displayed.
716 * List Motion::             Moving by parsing lists and sexps.
717 * Skipping Characters::     Skipping characters belonging to a certain set.
718
719 Markers
720
721 * Overview of Markers::     The components of a marker, and how it relocates.
722 * Predicates on Markers::   Testing whether an object is a marker.
723 * Creating Markers::        Making empty markers or markers at certain places.
724 * Information from Markers::  Finding the marker's buffer or character
725                                 position.
726 * Changing Markers::        Moving the marker to a new buffer or position.
727 * The Mark::                How ``the mark'' is implemented with a marker.
728 * The Region::              How to access ``the region''.
729
730 Text
731
732 * Near Point::       Examining text in the vicinity of point.
733 * Buffer Contents::  Examining text in a general fashion.
734 * Comparing Text::   Comparing substrings of buffers.
735 * Insertion::        Adding new text to a buffer.
736 * Commands for Insertion::  User-level commands to insert text.
737 * Deletion::         Removing text from a buffer.
738 * User-Level Deletion::     User-level commands to delete text.
739 * The Kill Ring::    Where removed text sometimes is saved for later use.
740 * Undo::             Undoing changes to the text of a buffer.
741 * Maintaining Undo:: How to enable and disable undo information.
742                         How to control how much information is kept.
743 * Filling::          Functions for explicit filling.
744 * Margins::          How to specify margins for filling commands.
745 * Auto Filling::     How auto-fill mode is implemented to break lines.
746 * Sorting::          Functions for sorting parts of the buffer.
747 * Columns::          Computing horizontal positions, and using them.
748 * Indentation::      Functions to insert or adjust indentation.
749 * Case Changes::     Case conversion of parts of the buffer.
750 * Text Properties::  Assigning Lisp property lists to text characters.
751 * Substitution::     Replacing a given character wherever it appears.
752 * Registers::        How registers are implemented.  Accessing the text or
753                        position stored in a register.
754 * Transposition::    Swapping two portions of a buffer.
755 * Change Hooks::     Supplying functions to be run when text is changed.
756
757 The Kill Ring
758
759 * Kill Ring Concepts::      What text looks like in the kill ring.
760 * Kill Functions::          Functions that kill text.
761 * Yank Commands::           Commands that access the kill ring.
762 * Low-Level Kill Ring::     Functions and variables for kill ring access.
763 * Internals of Kill Ring::  Variables that hold kill-ring data.
764
765 Indentation
766
767 * Primitive Indent::        Functions used to count and insert indentation.
768 * Mode-Specific Indent::    Customize indentation for different modes.
769 * Region Indent::           Indent all the lines in a region.
770 * Relative Indent::         Indent the current line based on previous lines.
771 * Indent Tabs::             Adjustable, typewriter-like tab stops.
772 * Motion by Indent::        Move to first non-blank character.
773
774 Searching and Matching
775
776 * String Search::           Search for an exact match.
777 * Regular Expressions::     Describing classes of strings.
778 * Regexp Search::           Searching for a match for a regexp.
779 * Match Data::              Finding out which part of the text matched
780                               various parts of a regexp, after regexp search.
781 * Saving Match Data::       Saving and restoring this information.
782 * Standard Regexps::        Useful regexps for finding sentences, pages,...
783 * Searching and Case::      Case-independent or case-significant searching.
784
785 Regular Expressions
786
787 * Syntax of Regexps::       Rules for writing regular expressions.
788 * Regexp Example::          Illustrates regular expression syntax.
789
790 Syntax Tables
791
792 * Syntax Descriptors::      How characters are classified.
793 * Syntax Table Functions::  How to create, examine and alter syntax tables.
794 * Parsing Expressions::     Parsing balanced expressions
795                               using the syntax table.
796 * Standard Syntax Tables::  Syntax tables used by various major modes.
797 * Syntax Table Internals::  How syntax table information is stored.
798
799 Syntax Descriptors
800
801 * Syntax Class Table::      Table of syntax classes.
802 * Syntax Flags::            Additional flags each character can have.
803
804 Abbrevs And Abbrev Expansion
805
806 * Abbrev Mode::             Setting up XEmacs for abbreviation.
807 * Tables: Abbrev Tables.    Creating and working with abbrev tables.
808 * Defining Abbrevs::        Specifying abbreviations and their expansions.
809 * Files: Abbrev Files.      Saving abbrevs in files.
810 * Expansion: Abbrev Expansion.  Controlling expansion; expansion subroutines.
811 * Standard Abbrev Tables::  Abbrev tables used by various major modes.
812
813 Extents
814
815 * Intro to Extents::       Extents are regions over a buffer or string.
816 * Creating and Modifying Extents::
817                            Basic extent functions.
818 * Extent Endpoints::       Accessing and setting the bounds of an extent.
819 * Finding Extents::        Determining which extents are in an object.
820 * Mapping Over Extents::   More sophisticated functions for extent scanning.
821 * Extent Properties::      Extents have built-in and user-definable properties.
822 * Detached Extents::       Extents that are not in a buffer.
823 * Extent Parents::         Inheriting properties from another extent.
824 * Duplicable Extents::     Extents can be marked to be copied into strings.
825 * Extents and Events::     Extents can interact with the keyboard and mouse.
826 * Atomic Extents::         Treating a block of text as a single entity.
827
828 Specifiers
829
830 * Introduction to Specifiers::  Specifiers provide a clean way for
831                                 display and other properties to vary
832                                 (under user control) in a wide variety
833                                 of contexts.
834 * Specifiers In-Depth::         Gory details about specifier innards.
835 * Specifier Instancing::        Instancing means obtaining the ``value'' of
836                                 a specifier in a particular context.
837 * Specifier Types::             Specifiers come in different flavors.
838 * Adding Specifications::       Specifications control a specifier's ``value''
839                                 by giving conditions under which a
840                                 particular value is valid.
841 * Retrieving Specifications::   Querying a specifier's specifications.
842 * Specifier Instancing Functions::
843                                 Functions to instance a specifier.
844 * Specifier Example::           Making all this stuff clearer.
845 * Creating Specifiers::         Creating specifiers for your own use.
846 * Specifier Validation Functions::
847                                 Validating the components of a specifier.
848 * Other Specification Functions::
849                                 Other ways of working with specifications.
850
851 Faces and Window-System Objects
852
853 * Faces::               Controlling the way text looks.
854 * Fonts::               Controlling the typeface of text.
855 * Colors::              Controlling the color of text and pixmaps.
856
857 Faces
858
859 * Merging Faces::               How XEmacs decides which face to use
860                                   for a character.
861 * Basic Face Functions::        How to define and examine faces.
862 * Face Properties::             How to access and modify a face's properties.
863 * Face Convenience Functions::  Convenience functions for accessing
864                                   particular properties of a face.
865 * Other Face Display Functions:: Other functions pertaining to how a
866                                   a face appears.
867
868 Fonts
869
870 * Font Specifiers::             Specifying how a font will appear.
871 * Font Instances::              What a font specifier gets instanced as.
872 * Font Instance Names::         The name of a font instance.
873 * Font Instance Size::          The size of a font instance.
874 * Font Instance Characteristics:: Display characteristics of font instances.
875 * Font Convenience Functions::  Convenience functions that automatically
876                                   instance and retrieve the properties
877                                   of a font specifier.
878
879 Colors
880
881 * Color Specifiers::            Specifying how a color will appear.
882 * Color Instances::             What a color specifier gets instanced as.
883 * Color Instance Properties::   Properties of color instances.
884 * Color Convenience Functions:: Convenience functions that automatically
885                                   instance and retrieve the properties
886                                   of a color specifier.
887
888 Glyphs
889
890 * Glyph Functions::     Functions for working with glyphs.
891 * Images::              Graphical images displayed in a frame.
892 * Glyph Types::         Each glyph has a particular type.
893 * Mouse Pointer::       Controlling the mouse pointer.
894 * Redisplay Glyphs::    Glyphs controlling various redisplay functions.
895 * Subwindows::          Inserting an externally-controlled subwindow
896                           into a buffer.
897
898 Glyph Functions
899
900 * Creating Glyphs::     Creating new glyphs.
901 * Glyph Properties::    Accessing and modifying a glyph's properties.
902 * Glyph Convenience Functions::
903                         Convenience functions for accessing particular
904                           properties of a glyph.
905 * Glyph Dimensions::    Determining the height, width, etc. of a glyph.
906
907 Images
908
909 * Image Specifiers::            Specifying how an image will appear.
910 * Image Instantiator Conversion::
911                                 Conversion is applied to image instantiators
912                                   at the time they are added to an
913                                   image specifier or at the time they
914                                   are passed to `make-image-instance'.
915 * Image Instances::             What an image specifier gets instanced as.
916
917 Image Instances
918
919 * Image Instance Types::         Each image instances has a particular type.
920 * Image Instance Functions::     Functions for working with image instances.
921
922 Annotations
923
924 * Annotation Basics::           Introduction to annotations.
925 * Annotation Primitives::       Creating and deleting annotations.
926 * Annotation Properties::       Retrieving and changing the characteristics
927                                   of an annotation.
928 * Margin Primitives::           Controlling the size of the margins.
929 * Locating Annotations::        Looking for annotations in a buffer.
930 * Annotation Hooks::            Hooks called at certain times during an
931                                   annotation's lifetime.
932
933 Hash Tables
934
935 * Introduction to Hash Tables:: Hash tables are fast data structures for
936                                 implementing simple tables (i.e. finite
937                                 mappings from keys to values).
938 * Working With Hash Tables::    Hash table functions.
939 * Weak Hash Tables::            Hash tables with special garbage-collection
940                                 behavior.
941
942 Range Tables
943
944 * Introduction to Range Tables:: Range tables efficiently map ranges of
945                                  integers to values.
946 * Working With Range Tables::    Range table functions.
947
948
949 XEmacs Display
950
951 * Refresh Screen::      Clearing the screen and redrawing everything on it.
952 * Truncation::          Folding or wrapping long text lines.
953 * The Echo Area::       Where messages are displayed.
954 * Selective Display::   Hiding part of the buffer text.
955 * Overlay Arrow::       Display of an arrow to indicate position.
956 * Temporary Displays::  Displays that go away automatically.
957 * Blinking::            How XEmacs shows the matching open parenthesis.
958 * Usual Display::       The usual conventions for displaying nonprinting chars.
959 * Display Tables::      How to specify other conventions.
960 * Beeping::             Audible signal to the user.
961
962 Processes
963
964 * Subprocess Creation::     Functions that start subprocesses.
965 * Synchronous Processes::   Details of using synchronous subprocesses.
966 * Asynchronous Processes::  Starting up an asynchronous subprocess.
967 * Deleting Processes::      Eliminating an asynchronous subprocess.
968 * Process Information::     Accessing run-status and other attributes.
969 * Input to Processes::      Sending input to an asynchronous subprocess.
970 * Signals to Processes::    Stopping, continuing or interrupting
971                               an asynchronous subprocess.
972 * Output from Processes::   Collecting output from an asynchronous subprocess.
973 * Sentinels::               Sentinels run when process run-status changes.
974 * Network::                 Opening network connections.
975
976 Receiving Output from Processes
977
978 * Process Buffers::         If no filter, output is put in a buffer.
979 * Filter Functions::        Filter functions accept output from the process.
980 * Accepting Output::        How to wait until process output arrives.
981
982 Operating System Interface
983
984 * Starting Up::             Customizing XEmacs start-up processing.
985 * Getting Out::             How exiting works (permanent or temporary).
986 * System Environment::      Distinguish the name and kind of system.
987 * Terminal Input::          Recording terminal input for debugging.
988 * Terminal Output::         Recording terminal output for debugging.
989 * Flow Control::            How to turn output flow control on or off.
990 * Batch Mode::              Running XEmacs without terminal interaction.
991
992 Starting Up XEmacs
993
994 * Start-up Summary::        Sequence of actions XEmacs performs at start-up.
995 * Init File::               Details on reading the init file (`.emacs').
996 * Terminal-Specific::       How the terminal-specific Lisp file is read.
997 * Command Line Arguments::  How command line arguments are processed,
998                               and how you can customize them.
999
1000 Getting out of XEmacs
1001
1002 * Killing XEmacs::           Exiting XEmacs irreversibly.
1003 * Suspending XEmacs::        Exiting XEmacs reversibly.
1004
1005 X-Windows
1006
1007 * X Selections::                Transferring text to and from other X clients.
1008 * X Server::                    Information about the X server connected to
1009                                   a particular device.
1010 * Resources::                   Getting resource values from the server.
1011 * Server Data::                 Getting info about the X server.
1012 * Grabs::                       Restricting access to the server by other apps.
1013 * X Miscellaneous::             Other X-specific functions and variables.
1014
1015 ToolTalk Support
1016
1017 * XEmacs ToolTalk API Summary::
1018 * Sending Messages::
1019 * Receiving Messages::
1020
1021 LDAP Support
1022
1023 * Building XEmacs with LDAP support::  How to add LDAP support to XEmacs
1024 * XEmacs LDAP API::             Lisp access to LDAP functions
1025 * Syntax of Search Filters::    A brief summary of RFC 1558
1026
1027 XEmacs LDAP API
1028
1029 * LDAP Variables::              Lisp variables related to LDAP
1030 * The High-Level LDAP API::     High-level LDAP lisp functions
1031 * The Low-Level LDAP API::      Low-level LDAP lisp primitives
1032
1033 The Low-Level LDAP API
1034
1035 * The LDAP Lisp Object::
1036 * Opening and Closing a LDAP Connection::
1037 * Searching on a LDAP Server (Low-level)::
1038
1039 Internationalization
1040
1041 * I18N Levels 1 and 2:: Support for different time, date, and currency formats.
1042 * I18N Level 3::        Support for localized messages.
1043 * I18N Level 4::        Support for Asian languages.
1044
1045 MULE
1046
1047 * Internationalization Terminology::
1048                         Definition of various internationalization terms.
1049 * Charsets::            Sets of related characters.
1050 * MULE Characters::     Working with characters in XEmacs/MULE.
1051 * Composite Characters:: Making new characters by overstriking other ones.
1052 * ISO 2022::            An international standard for charsets and encodings.
1053 * Coding Systems::      Ways of representing a string of chars using integers.
1054 * CCL::                 A special language for writing fast converters.
1055 * Category Tables::     Subdividing charsets into groups.
1056
1057 Tips
1058
1059 * Style Tips::                Writing clean and robust programs.
1060 * Compilation Tips::          Making compiled code run fast.
1061 * Documentation Tips::        Writing readable documentation strings.
1062 * Comment Tips::              Conventions for writing comments.
1063 * Library Headers::           Standard headers for library packages.
1064
1065 Building XEmacs and Object Allocation
1066
1067 * Building XEmacs::         How to preload Lisp libraries into XEmacs.
1068 * Pure Storage::            A kludge to make preloaded Lisp functions sharable.
1069 * Garbage Collection::      Reclaiming space for Lisp objects no longer used.
1070