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