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