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