(ffap-url-regexp): Add `https'.
[bpt/emacs.git] / lispref / elisp.texi
CommitLineData
a44af9f2
RS
1\input texinfo @c -*-texinfo-*-
2@c %**start of header
3@setfilename elisp
a44af9f2
RS
4@settitle GNU Emacs Lisp Reference Manual
5@c %**end of header
6
221fc415
RS
7@dircategory Editors
8@direntry
9* Elisp: (elisp). The Emacs Lisp Reference Manual.
10@end direntry
11
a9f0a989 12@smallbook
a4776185
GM
13@setchapternewpage odd
14@finalout
15
16@c Combine indices.
17@synindex cp fn
18@syncodeindex vr fn
19@syncodeindex ky fn
20@syncodeindex pg fn
21@c We use the "type index" to index new functions and variables.
22@c @syncodeindex tp fn
a9f0a989 23
37680279 24@ifnottex
8241495d
RS
25This Info file contains edition 2.6 of the GNU Emacs Lisp
26Reference Manual, corresponding to Emacs version 21.1.
a44af9f2
RS
27@c Please REMEMBER to update edition number in *four* places in this file
28@c and also in *one* place in intro.texi
29
30Published by the Free Software Foundation
840797ee
KH
3159 Temple Place, Suite 330
32Boston, MA 02111-1307 USA
a44af9f2 33
a4776185 34Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
b6954afd 35 Free Software Foundation, Inc.
a44af9f2 36
a4776185
GM
37Permission is granted to copy, distribute and/or modify this document
38under the terms of the GNU Free Documentation License, Version 1.1 or
39any later version published by the Free Software Foundation; with the
40Invariant Sections being Copying and GNU Free Documentation License, the
41Front-Cover texts being ``A GNU Manual'', and with the Back-Cover Texts
42being (a) (see below). A copy of the license is included in the section
43entitled ``GNU Free Documentation License''.
44
45(a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
46this GNU Manual, like GNU software. Copies published by the Free
47Software Foundation raise funds for GNU development.''
37680279 48@end ifnottex
a44af9f2 49
a44af9f2
RS
50@titlepage
51@title GNU Emacs Lisp Reference Manual
a40d4712 52@subtitle For Emacs Version 21
a44af9f2
RS
53@c The edition number appears in several places in this file
54@c and also in the file intro.texi.
8241495d 55@subtitle Revision 2.6, September 1999
a44af9f2
RS
56
57@author by Bil Lewis, Dan LaLiberte, Richard Stallman
58@author and the GNU Manual Group
59@page
60@vskip 0pt plus 1filll
a4776185 61Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
b6954afd 62Free Software Foundation, Inc.
a44af9f2
RS
63
64@sp 2
8241495d
RS
65Edition 2.6 @*
66Revised for Emacs Version 21.1,@*
67September 1999.@*
a44af9f2 68@sp 2
8241495d 69ISBN 1-882114-73-6
a44af9f2
RS
70
71@sp 2
72Published by the Free Software Foundation @*
840797ee
KH
7359 Temple Place, Suite 330@*
74Boston, MA 02111-1307 USA
a44af9f2 75
a4776185
GM
76Permission is granted to copy, distribute and/or modify this document
77under the terms of the GNU Free Documentation License, Version 1.1 or
78any later version published by the Free Software Foundation; with the
79Invariant Sections being Copying and GNU Free Documentation License, the
80Front-Cover texts being ``A GNU Manual'', and with the Back-Cover Texts
81being (a) (see below). A copy of the license is included in the section
82entitled ``GNU Free Documentation License''.
83
84(a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
85this GNU Manual, like GNU software. Copies published by the Free
86Software Foundation raise funds for GNU development.''
a44af9f2
RS
87
88Cover art by Etienne Suvasa.
89@end titlepage
90@page
91
92@node Top, Copying, (dir), (dir)
93
37680279 94@ifnottex
8241495d
RS
95This Info file contains edition 2.6 of the GNU Emacs Lisp
96Reference Manual, corresponding to GNU Emacs version 21.1.
37680279 97@end ifnottex
a44af9f2
RS
98
99@menu
c1c5790d 100* Copying:: Conditions for copying and changing GNU Emacs.
a44af9f2 101* Introduction:: Introduction and conventions used.
c1c5790d 102* Standards: Coding Conventions. Coding conventions for Emacs Lisp.
a44af9f2 103
3e099569 104* Lisp Data Types:: Data types of objects in Emacs Lisp.
a44af9f2
RS
105* Numbers:: Numbers and arithmetic functions.
106* Strings and Characters:: Strings, and functions that work on them.
107* Lists:: Lists, cons cells, and related functions.
108* Sequences Arrays Vectors:: Lists, strings and vectors are called sequences.
109 Certain functions act on any kind of sequence.
110 The description of vectors is here as well.
8241495d 111* Hash Tables:: Very fast lookup-tables.
a44af9f2
RS
112* Symbols:: Symbols represent names, uniquely.
113
114* Evaluation:: How Lisp expressions are evaluated.
115* Control Structures:: Conditionals, loops, nonlocal exits.
116* Variables:: Using symbols in programs to stand for values.
117* Functions:: A function is a Lisp program
118 that can be invoked from other functions.
119* Macros:: Macros are a way to extend the Lisp language.
f9f59935 120* Customization:: Writing customization declarations.
a44af9f2
RS
121
122* Loading:: Reading files of Lisp code into Lisp.
123* Byte Compilation:: Compilation makes programs run faster.
cc236dfe 124* Advising Functions:: Adding to the definition of a function.
a44af9f2
RS
125* Debugging:: Tools and tips for debugging Lisp programs.
126
3e099569 127* Read and Print:: Converting Lisp objects to text and back.
a44af9f2
RS
128* Minibuffers:: Using the minibuffer to read input.
129* Command Loop:: How the editor command loop works,
130 and how you can call its subroutines.
131* Keymaps:: Defining the bindings from keys to commands.
132* Modes:: Defining major and minor modes.
133* Documentation:: Writing and using documentation strings.
134
135* Files:: Accessing files.
136* Backups and Auto-Saving:: Controlling how backups and auto-save
137 files are made.
138* Buffers:: Creating and using buffer objects.
139* Windows:: Manipulating windows and displaying buffers.
140* Frames:: Making multiple X windows.
141* Positions:: Buffer positions and motion functions.
142* Markers:: Markers represent positions and update
143 automatically when the text is changed.
144
145* Text:: Examining and changing text in buffers.
f9f59935 146* Non-ASCII Characters:: Non-ASCII text in buffers and strings.
a44af9f2
RS
147* Searching and Matching:: Searching buffers for strings or regexps.
148* Syntax Tables:: The syntax table controls word and list parsing.
149* Abbrevs:: How Abbrev mode works, and its data structures.
150
151* Processes:: Running and communicating with subprocesses.
152* System Interface:: Getting the user id, system type, environment
153 variables, and other such things.
a40d4712 154* Display:: Features for controlling the screen display.
a44af9f2
RS
155* Calendar:: Customizing the calendar and diary.
156
157Appendices
158
513331d3 159* Antinews:: Info for users downgrading to Emacs 20.
4356e9eb 160* Tips:: Advice and coding conventions for Emacs Lisp.
a44af9f2
RS
161* GNU Emacs Internals:: Building and dumping Emacs;
162 internal data structures.
163* Standard Errors:: List of all error symbols.
cc236dfe
RS
164* Standard Buffer-Local Variables::
165 List of variables buffer-local in all buffers.
a44af9f2
RS
166* Standard Keymaps:: List of standard keymaps.
167* Standard Hooks:: List of standard hook variables.
168
a44af9f2
RS
169* Index:: Index including concepts, functions, variables,
170 and other terms.
171
a40d4712 172* New Symbols:: New functions and variables in Emacs 21.
f9f59935 173
a44af9f2
RS
174 --- The Detailed Node Listing ---
175
176Here are other nodes that are inferiors of those already listed,
177mentioned here so you can get to them in one step:
178
179Introduction
180
181* Caveats:: Flaws and a request for help.
182* Lisp History:: Emacs Lisp is descended from Maclisp.
183* Conventions:: How the manual is formatted.
184* Acknowledgements:: The authors, editors, and sponsors of this manual.
185
186Conventions
187
188* Some Terms:: Explanation of terms we use in this manual.
189* nil and t:: How the symbols @code{nil} and @code{t} are used.
190* Evaluation Notation:: The format we use for examples of evaluation.
191* Printing Notation:: The format we use for examples that print output.
192* Error Messages:: The format we use for examples of errors.
193* Buffer Text Notation:: The format we use for buffer contents in examples.
194* Format of Descriptions:: Notation for describing functions, variables, etc.
195
4356e9eb
RS
196Tips and Conventions
197
198* Coding Conventions:: Conventions for clean and robust programs.
199* Compilation Tips:: Making compiled code run fast.
200* Documentation Tips:: Writing readable documentation strings.
201* Comment Tips:: Conventions for writing comments.
202* Library Headers:: Standard headers for library packages.
203
a44af9f2
RS
204Format of Descriptions
205
206* A Sample Function Description::
207* A Sample Variable Description::
208
209Lisp Data Types
210
211* Printed Representation:: How Lisp objects are represented as text.
212* Comments:: Comments and their formatting conventions.
213* Programming Types:: Types found in all Lisp systems.
214* Editing Types:: Types specific to Emacs.
215* Type Predicates:: Tests related to types.
216* Equality Predicates:: Tests of equality between any two objects.
217
218Programming Types
219
220* Integer Type:: Numbers without fractional parts.
221* Floating Point Type:: Numbers with fractional parts and with a large range.
222* Character Type:: The representation of letters, numbers and
a40d4712 223 control characters.
a44af9f2 224* Sequence Type:: Both lists and arrays are classified as sequences.
3e099569 225* Cons Cell Type:: Cons cells, and lists (which are made from cons cells).
a44af9f2
RS
226* Array Type:: Arrays include strings and vectors.
227* String Type:: An (efficient) array of characters.
228* Vector Type:: One-dimensional arrays.
229* Symbol Type:: A multi-use object that refers to a function,
230 variable, property list, or itself.
3e099569
RS
231* Function Type:: A piece of executable code you can call from elsewhere.
232* Macro Type:: A method of expanding an expression into another
a44af9f2
RS
233 expression, more fundamental but less pretty.
234* Primitive Function Type:: A function written in C, callable from Lisp.
235* Byte-Code Type:: A function written in Lisp, then compiled.
236* Autoload Type:: A type used for automatically loading seldom-used
a40d4712 237 functions.
a44af9f2
RS
238
239List Type
240
241* Dotted Pair Notation:: An alternative syntax for lists.
242* Association List Type:: A specially constructed list.
243
244Editing Types
245
246* Buffer Type:: The basic object of editing.
247* Window Type:: What makes buffers visible.
248* Window Configuration Type::Save what the screen looks like.
249* Marker Type:: A position in a buffer.
250* Process Type:: A process running on the underlying OS.
251* Stream Type:: Receive or send characters.
252* Keymap Type:: What function a keystroke invokes.
1911e6e5 253* Overlay Type:: How an overlay is represented.
a44af9f2
RS
254
255Numbers
256
257* Integer Basics:: Representation and range of integers.
258* Float Basics:: Representation and range of floating point.
259* Predicates on Numbers:: Testing for numbers.
260* Comparison of Numbers:: Equality and inequality predicates.
261* Arithmetic Operations:: How to add, subtract, multiply and divide.
262* Bitwise Operations:: Logical and, or, not, shifting.
263* Numeric Conversions:: Converting float to integer and vice versa.
22697dac 264* Math Functions:: Trig, exponential and logarithmic functions.
a44af9f2
RS
265* Random Numbers:: Obtaining random integers, predictable or not.
266
267Strings and Characters
268
269* String Basics:: Basic properties of strings and characters.
270* Predicates for Strings:: Testing whether an object is a string or char.
271* Creating Strings:: Functions to allocate new strings.
272* Text Comparison:: Comparing characters or strings.
273* String Conversion:: Converting characters or strings and vice versa.
1911e6e5 274* Formatting Strings:: @code{format}: Emacs's analogue of @code{printf}.
a9f0a989 275* Case Conversion:: Case conversion functions.
a44af9f2
RS
276
277Lists
278
279* Cons Cells:: How lists are made out of cons cells.
280* Lists as Boxes:: Graphical notation to explain lists.
281* List-related Predicates:: Is this object a list? Comparing two lists.
282* List Elements:: Extracting the pieces of a list.
283* Building Lists:: Creating list structure.
284* Modifying Lists:: Storing new pieces into an existing list.
285* Sets And Lists:: A list can represent a finite mathematical set.
286* Association Lists:: A list can represent a finite relation or mapping.
287
288Modifying Existing List Structure
289
290* Setcar:: Replacing an element in a list.
291* Setcdr:: Replacing part of the list backbone.
292 This can be used to remove or add elements.
293* Rearrangement:: Reordering the elements in a list; combining lists.
294
295Sequences, Arrays, and Vectors
296
297* Sequence Functions:: Functions that accept any kind of sequence.
298* Arrays:: Characteristics of arrays in Emacs Lisp.
299* Array Functions:: Functions specifically for arrays.
300* Vectors:: Functions specifically for vectors.
301
302Symbols
303
304* Symbol Components:: Symbols have names, values, function definitions
305 and property lists.
306* Definitions:: A definition says how a symbol will be used.
307* Creating Symbols:: How symbols are kept unique.
308* Property Lists:: Each symbol has a property list
309 for recording miscellaneous information.
310
311Evaluation
312
313* Intro Eval:: Evaluation in the scheme of things.
314* Eval:: How to invoke the Lisp interpreter explicitly.
315* Forms:: How various sorts of objects are evaluated.
316* Quoting:: Avoiding evaluation (to put constants in
317 the program).
318
319Kinds of Forms
320
321* Self-Evaluating Forms:: Forms that evaluate to themselves.
322* Symbol Forms:: Symbols evaluate as variables.
323* Classifying Lists:: How to distinguish various sorts of list forms.
324* Function Forms:: Forms that call functions.
325* Macro Forms:: Forms that call macros.
326* Special Forms:: ``Special forms'' are idiosyncratic primitives,
327 most of them extremely important.
328* Autoloading:: Functions set up to load files
329 containing their real definitions.
330
331Control Structures
332
333* Sequencing:: Evaluation in textual order.
334* Conditionals:: @code{if}, @code{cond}.
335* Combining Conditions:: @code{and}, @code{or}, @code{not}.
336* Iteration:: @code{while} loops.
337* Nonlocal Exits:: Jumping out of a sequence.
338
339Nonlocal Exits
340
341* Catch and Throw:: Nonlocal exits for the program's own purposes.
342* Examples of Catch:: Showing how such nonlocal exits can be written.
343* Errors:: How errors are signaled and handled.
344* Cleanups:: Arranging to run a cleanup form if an
345 error happens.
346
347Errors
348
349* Signaling Errors:: How to report an error.
350* Processing of Errors:: What Emacs does when you report an error.
351* Handling Errors:: How you can trap errors and continue execution.
3e099569 352* Error Symbols:: How errors are classified for trapping them.
a44af9f2
RS
353
354Variables
355
356* Global Variables:: Variable values that exist permanently, everywhere.
357* Constant Variables:: Certain "variables" have values that never change.
358* Local Variables:: Variable values that exist only temporarily.
359* Void Variables:: Symbols that lack values.
360* Defining Variables:: A definition says a symbol is used as a variable.
361* Accessing Variables:: Examining values of variables whose names
362 are known only at run time.
363* Setting Variables:: Storing new values in variables.
364* Variable Scoping:: How Lisp chooses among local and global values.
365* Buffer-Local Variables:: Variable values in effect only in one buffer.
366
367Scoping Rules for Variable Bindings
368
369* Scope:: Scope means where in the program a value
370 is visible. Comparison with other languages.
371* Extent:: Extent means how long in time a value exists.
372* Impl of Scope:: Two ways to implement dynamic scoping.
373* Using Scoping:: How to use dynamic scoping carefully and
374 avoid problems.
375
376Buffer-Local Variables
377
378* Intro to Buffer-Local:: Introduction and concepts.
379* Creating Buffer-Local:: Creating and destroying buffer-local bindings.
380* Default Value:: The default value is seen in buffers
cc236dfe 381 that don't have their own buffer-local values.
a44af9f2
RS
382
383Functions
384
385* What Is a Function:: Lisp functions vs primitives; terminology.
386* Lambda Expressions:: How functions are expressed as Lisp objects.
387* Function Names:: A symbol can serve as the name of a function.
388* Defining Functions:: Lisp expressions for defining functions.
389* Calling Functions:: How to use an existing function.
390* Mapping Functions:: Applying a function to each element of a list, etc.
391* Anonymous Functions:: Lambda-expressions are functions with no names.
392* Function Cells:: Accessing or setting the function definition
393 of a symbol.
394* Related Topics:: Cross-references to specific Lisp primitives
395 that have a special bearing on how
396 functions work.
397
398Lambda Expressions
399
400* Lambda Components:: The parts of a lambda expression.
401* Simple Lambda:: A simple example.
402* Argument List:: Details and special features of argument lists.
403* Function Documentation:: How to put documentation in a function.
404
405Macros
406
407* Simple Macro:: A basic example.
408* Expansion:: How, when and why macros are expanded.
409* Compiling Macros:: How macros are expanded by the compiler.
410* Defining Macros:: How to write a macro definition.
411* Backquote:: Easier construction of list structure.
412* Problems with Macros:: Don't evaluate the macro arguments too many times.
413 Don't hide the user's variables.
414
415Loading
416
417* How Programs Do Loading:: The @code{load} function and others.
418* Autoload:: Setting up a function to autoload.
bfe721d1 419* Named Features:: Loading a library if it isn't already loaded.
a44af9f2
RS
420* Repeated Loading:: Precautions about loading a file twice.
421
422Byte Compilation
423
424* Compilation Functions:: Byte compilation functions.
425* Disassembly:: Disassembling byte-code; how to read byte-code.
426
a9f0a989
RS
427Advising Functions
428
429* Simple Advice:: A simple example to explain the basics of advice.
430* Defining Advice:: Detailed description of @code{defadvice}.
431* Computed Advice:: ...is to @code{defadvice} as @code{fset} is to @code{defun}.
432* Activation of Advice:: Advice doesn't do anything until you activate it.
433* Enabling Advice:: You can enable or disable each piece of advice.
434* Preactivation:: Preactivation is a way of speeding up the
435 loading of compiled advice.
1911e6e5 436* Argument Access in Advice:: How advice can access the function's arguments.
a9f0a989
RS
437* Subr Arguments:: Accessing arguments when advising a primitive.
438* Combined Definition:: How advice is implemented.
439
a44af9f2
RS
440Debugging Lisp Programs
441
442* Debugger:: How the Emacs Lisp debugger is implemented.
443* Syntax Errors:: How to find syntax errors.
444* Compilation Errors:: How to find errors that show up in
445 byte compilation.
446* Edebug:: A source-level Emacs Lisp debugger.
447
448The Lisp Debugger
449
450* Error Debugging:: Entering the debugger when an error happens.
451* Function Debugging:: Entering it when a certain function is called.
452* Explicit Debug:: Entering it at a certain point in the program.
453* Using Debugger:: What the debugger does; what you see while in it.
454* Debugger Commands:: Commands used while in the debugger.
455* Invoking the Debugger:: How to call the function @code{debug}.
456* Internals of Debugger:: Subroutines of the debugger, and global variables.
457
458Debugging Invalid Lisp Syntax
459
460* Excess Open:: How to find a spurious open paren or missing close.
461* Excess Close:: How to find a spurious close paren or missing open.
462
463Reading and Printing Lisp Objects
464
465* Streams Intro:: Overview of streams, reading and printing.
466* Input Streams:: Various data types that can be used as
467 input streams.
468* Input Functions:: Functions to read Lisp objects from text.
469* Output Streams:: Various data types that can be used as
470 output streams.
471* Output Functions:: Functions to print Lisp objects as text.
472
473Minibuffers
474
475* Intro to Minibuffers:: Basic information about minibuffers.
476* Text from Minibuffer:: How to read a straight text string.
477* Object from Minibuffer:: How to read a Lisp object or expression.
478* Completion:: How to invoke and customize completion.
479* Yes-or-No Queries:: Asking a question with a simple answer.
480* Minibuffer Misc:: Various customization hooks and variables.
481
482Completion
483
484* Basic Completion:: Low-level functions for completing strings.
485 (These are too low level to use the minibuffer.)
486* Minibuffer Completion:: Invoking the minibuffer with completion.
487* Completion Commands:: Minibuffer commands that do completion.
488* High-Level Completion:: Convenient special cases of completion
489 (reading buffer name, file name, etc.)
490* Reading File Names:: Using completion to read file names.
491* Programmed Completion:: Finding the completions for a given file name.
492
493Command Loop
494
495* Command Overview:: How the command loop reads commands.
496* Defining Commands:: Specifying how a function should read arguments.
497* Interactive Call:: Calling a command, so that it will read arguments.
498* Command Loop Info:: Variables set by the command loop for you to examine.
499* Input Events:: What input looks like when you read it.
500* Reading Input:: How to read input events from the keyboard or mouse.
501* Waiting:: Waiting for user input or elapsed time.
502* Quitting:: How @kbd{C-g} works. How to catch or defer quitting.
503* Prefix Command Arguments:: How the commands to set prefix args work.
504* Recursive Editing:: Entering a recursive edit,
505 and why you usually shouldn't.
506* Disabling Commands:: How the command loop handles disabled commands.
507* Command History:: How the command history is set up, and how accessed.
508* Keyboard Macros:: How keyboard macros are implemented.
509
510Defining Commands
511
512* Using Interactive:: General rules for @code{interactive}.
513* Interactive Codes:: The standard letter-codes for reading arguments
514 in various ways.
515* Interactive Examples:: Examples of how to read interactive arguments.
516
517Keymaps
518
519* Keymap Terminology:: Definitions of terms pertaining to keymaps.
520* Format of Keymaps:: What a keymap looks like as a Lisp object.
521* Creating Keymaps:: Functions to create and copy keymaps.
522* Inheritance and Keymaps:: How one keymap can inherit the bindings
523 of another keymap.
524* Prefix Keys:: Defining a key with a keymap as its definition.
525* Menu Keymaps:: A keymap can define a menu for X windows
526 or for use from the terminal.
527* Active Keymaps:: Each buffer has a local keymap
528 to override the standard (global) bindings.
a40d4712 529 Each minor mode can also override them.
a44af9f2
RS
530* Key Lookup:: How extracting elements from keymaps works.
531* Functions for Key Lookup:: How to request key lookup.
532* Changing Key Bindings:: Redefining a key in a keymap.
533* Key Binding Commands:: Interactive interfaces for redefining keys.
534* Scanning Keymaps:: Looking through all keymaps, for printing help.
535
536Major and Minor Modes
537
538* Major Modes:: Defining major modes.
539* Minor Modes:: Defining minor modes.
540* Mode Line Format:: Customizing the text that appears in the mode line.
541* Hooks:: How to use hooks; how to write code that
542 provides hooks.
543
544Major Modes
545
546* Major Mode Conventions:: Coding conventions for keymaps, etc.
547* Example Major Modes:: Text mode and Lisp modes.
548* Auto Major Mode:: How Emacs chooses the major mode automatically.
549* Mode Help:: Finding out how to use a mode.
550
551Minor Modes
552
553* Minor Mode Conventions:: Tips for writing a minor mode.
554* Keymaps and Minor Modes:: How a minor mode can have its own keymap.
555
556Mode Line Format
557
558* Mode Line Data:: The data structure that controls the mode line.
559* Mode Line Variables:: Variables used in that data structure.
560* %-Constructs:: Putting information into a mode line.
561
562Documentation
563
564* Documentation Basics:: Good style for doc strings.
565 Where to put them. How Emacs stores them.
566* Accessing Documentation:: How Lisp programs can access doc strings.
567* Keys in Documentation:: Substituting current key bindings.
568* Describing Characters:: Making printable descriptions of
569 non-printing characters and key sequences.
570* Help Functions:: Subroutines used by Emacs help facilities.
571
572Files
573
574* Visiting Files:: Reading files into Emacs buffers for editing.
575* Saving Buffers:: Writing changed buffers back into files.
576* Reading from Files:: Reading files into other buffers.
577* Writing to Files:: Writing new files from parts of buffers.
578* File Locks:: Locking and unlocking files, to prevent
579 simultaneous editing by two people.
580* Information about Files:: Testing existence, accessibility, size of files.
581* Contents of Directories:: Getting a list of the files in a directory.
f9f59935
RS
582* Changing Files:: Renaming files, changing protection, etc.
583* File Names:: Decomposing and expanding file names.
a44af9f2
RS
584
585Visiting Files
586
587* Visiting Functions:: The usual interface functions for visiting.
588* Subroutines of Visiting:: Lower-level subroutines that they use.
589
590Information about Files
591
592* Testing Accessibility:: Is a given file readable? Writable?
593* Kinds of Files:: Is it a directory? A link?
594* File Attributes:: How large is it? Any other names? Etc.
595
596File Names
597
598* File Name Components:: The directory part of a file name, and the rest.
599* Directory Names:: A directory's name as a directory
600 is different from its name as a file.
601* Relative File Names:: Some file names are relative to a
602 current directory.
603* File Name Expansion:: Converting relative file names to absolute ones.
604* Unique File Names:: Generating names for temporary files.
605* File Name Completion:: Finding the completions for a given file name.
606
607Backups and Auto-Saving
608
609* Backup Files:: How backup files are made; how their names
610 are chosen.
611* Auto-Saving:: How auto-save files are made; how their
612 names are chosen.
613* Reverting:: @code{revert-buffer}, and how to customize
614 what it does.
615
616Backup Files
617
618* Making Backups:: How Emacs makes backup files, and when.
619* Rename or Copy:: Two alternatives: renaming the old file
620 or copying it.
621* Numbered Backups:: Keeping multiple backups for each source file.
622* Backup Names:: How backup file names are computed; customization.
623
624Buffers
625
626* Buffer Basics:: What is a buffer?
627* Buffer Names:: Accessing and changing buffer names.
628* Buffer File Name:: The buffer file name indicates which file
629 is visited.
630* Buffer Modification:: A buffer is @dfn{modified} if it needs to be saved.
631* Modification Time:: Determining whether the visited file was changed
632 ``behind Emacs's back''.
633* Read Only Buffers:: Modifying text is not allowed in a
634 read-only buffer.
635* The Buffer List:: How to look at all the existing buffers.
636* Creating Buffers:: Functions that create buffers.
637* Killing Buffers:: Buffers exist until explicitly killed.
638* Current Buffer:: Designating a buffer as current
639 so primitives will access its contents.
640
641Windows
642
643* Basic Windows:: Basic information on using windows.
644* Splitting Windows:: Splitting one window into two windows.
645* Deleting Windows:: Deleting a window gives its space to other windows.
646* Selecting Windows:: The selected window is the one that you edit in.
647* Cyclic Window Ordering:: Moving around the existing windows.
648* Buffers and Windows:: Each window displays the contents of a buffer.
649* Displaying Buffers:: Higher-lever functions for displaying a buffer
650 and choosing a window for it.
651* Window Point:: Each window has its own location of point.
652* Window Start:: The display-start position controls which text
653 is on-screen in the window.
654* Vertical Scrolling:: Moving text up and down in the window.
655* Horizontal Scrolling:: Moving text sideways on the window.
656* Size of Window:: Accessing the size of a window.
657* Resizing Windows:: Changing the size of a window.
658* Window Configurations:: Saving and restoring the state of the screen.
659
bfe721d1
KH
660Frames
661
662* Creating Frames:: Creating additional frames.
663* Multiple Displays:: Creating frames on other X displays.
664* Frame Parameters:: Controlling frame size, position, font, etc.
665* Frame Titles:: Automatic updating of frame titles.
666* Deleting Frames:: Frames last until explicitly deleted.
667* Finding All Frames:: How to examine all existing frames.
668* Frames and Windows:: A frame contains windows;
669 display of text always works through windows.
670* Minibuffers and Frames:: How a frame finds the minibuffer to use.
671* Input Focus:: Specifying the selected frame.
672* Visibility of Frames:: Frames may be visible or invisible, or icons.
673* Raising and Lowering:: Raising a frame makes it hide other X windows;
1911e6e5 674 lowering it puts it underneath the others.
bfe721d1
KH
675* Frame Configurations:: Saving the state of all frames.
676* Mouse Tracking:: Getting events that say when the mouse moves.
677* Mouse Position:: Asking where the mouse is, or moving it.
678* Pop-Up Menus:: Displaying a menu for the user to select from.
679* Dialog Boxes:: Displaying a box to ask yes or no.
680* Pointer Shapes:: Specifying the shape of the mouse pointer.
ebc6903b 681* Window System Selections::Transferring text to and from other windows.
bfe721d1
KH
682* Color Names:: Getting the definitions of color names.
683* Resources:: Getting resource values from the server.
e79a8eb2 684* Display Feature Testing:: Determining the features of a terminal.
bfe721d1 685
a44af9f2
RS
686Positions
687
688* Point:: The special position where editing takes place.
689* Motion:: Changing point.
690* Excursions:: Temporary motion and buffer changes.
691* Narrowing:: Restricting editing to a portion of the buffer.
692
693Motion
694
695* Character Motion:: Moving in terms of characters.
696* Word Motion:: Moving in terms of words.
697* Buffer End Motion:: Moving to the beginning or end of the buffer.
698* Text Lines:: Moving in terms of lines of text.
699* Screen Lines:: Moving in terms of lines as displayed.
a44af9f2
RS
700* List Motion:: Moving by parsing lists and sexps.
701* Skipping Characters:: Skipping characters belonging to a certain set.
702
703Markers
704
705* Overview of Markers:: The components of a marker, and how it relocates.
706* Predicates on Markers:: Testing whether an object is a marker.
707* Creating Markers:: Making empty markers or markers at certain places.
708* Information from Markers:: Finding the marker's buffer or character
709 position.
f9f59935 710* Moving Markers:: Moving the marker to a new buffer or position.
a44af9f2
RS
711* The Mark:: How ``the mark'' is implemented with a marker.
712* The Region:: How to access ``the region''.
713
714Text
715
716* Near Point:: Examining text in the vicinity of point.
717* Buffer Contents:: Examining text in a general fashion.
718* Insertion:: Adding new text to a buffer.
719* Commands for Insertion:: User-level commands to insert text.
720* Deletion:: Removing text from a buffer.
721* User-Level Deletion:: User-level commands to delete text.
722* The Kill Ring:: Where removed text sometimes is saved for
723 later use.
724* Undo:: Undoing changes to the text of a buffer.
725* Auto Filling:: How auto-fill mode is implemented to break lines.
726* Filling:: Functions for explicit filling.
bfe721d1 727* Margins:: How to specify margins for filling commands.
a44af9f2
RS
728* Sorting:: Functions for sorting parts of the buffer.
729* Indentation:: Functions to insert or adjust indentation.
730* Columns:: Computing horizontal positions, and using them.
731* Case Changes:: Case conversion of parts of the buffer.
840797ee 732* Text Properties:: Assigning Lisp property lists to text characters.
a44af9f2 733* Substitution:: Replacing a given character wherever it appears.
840797ee 734* Transposition:: Swapping two portions of a buffer.
a44af9f2
RS
735* Registers:: How registers are implemented. Accessing
736 the text or position stored in a register.
840797ee 737* Change Hooks:: Supplying functions to be run when text is changed.
a44af9f2
RS
738
739The Kill Ring
740
741* Kill Ring Concepts:: What text looks like in the kill ring.
742* Kill Functions:: Functions that kill text.
743* Yank Commands:: Commands that access the kill ring.
22697dac 744* Low-Level Kill Ring:: Functions and variables for kill ring access.
a44af9f2
RS
745* Internals of Kill Ring:: Variables that hold kill-ring data.
746
747Indentation
748
749* Primitive Indent:: Functions used to count and insert indentation.
750* Mode-Specific Indent:: Customize indentation for different modes.
751* Region Indent:: Indent all the lines in a region.
752* Relative Indent:: Indent the current line based on previous lines.
753* Indent Tabs:: Adjustable, typewriter-like tab stops.
754* Motion by Indent:: Move to first non-blank character.
755
840797ee
KH
756Text Properties
757
758* Examining Properties:: Looking at the properties of one character.
759* Changing Properties:: Setting the properties of a range of text.
760* Property Search:: Searching for where a property changes value.
761* Special Properties:: Particular properties with special meanings.
762* Format Properties:: Properties for representing formatting of text.
763* Sticky Properties:: How inserted text gets properties from
764 neighboring text.
765* Saving Properties:: Saving text properties in files, and reading
766 them back.
767* Lazy Properties:: Computing text properties in a lazy fashion
768 only when text is examined.
769* Not Intervals:: Why text properties do not use
770 Lisp-visible text intervals.
771
5557b83b
RS
772Non-ASCII Characters
773
774* Text Representations:: Unibyte and multibyte representations
775* Converting Representations:: Converting unibyte to multibyte and vice versa.
776* Selecting a Representation:: Treating a byte sequence as unibyte or multi.
777* Character Codes:: How unibyte and multibyte relate to
778 codes of individual characters.
779* Character Sets:: The space of possible characters codes
780 is divided into various character sets.
781* Chars and Bytes:: More information about multibyte encodings.
782* Splitting Characters:: Converting a character to its byte sequence.
783* Scanning Charsets:: Which character sets are used in a buffer?
784* Translation of Characters:: Translation tables are used for conversion.
785* Coding Systems:: Coding systems are conversions for saving files.
786* Input Methods:: Input methods allow users to enter various
787 non-ASCII characters without speciak keyboards.
788* Locales:: Interacting with the POSIX locale.
789
a44af9f2
RS
790Searching and Matching
791
792* String Search:: Search for an exact match.
793* Regular Expressions:: Describing classes of strings.
794* Regexp Search:: Searching for a match for a regexp.
795* Match Data:: Finding out which part of the text matched
796 various parts of a regexp, after regexp search.
797* Saving Match Data:: Saving and restoring this information.
798* Standard Regexps:: Useful regexps for finding sentences, pages,...
799* Searching and Case:: Case-independent or case-significant searching.
800
801Regular Expressions
802
803* Syntax of Regexps:: Rules for writing regular expressions.
804* Regexp Example:: Illustrates regular expression syntax.
805
806Syntax Tables
807
808* Syntax Descriptors:: How characters are classified.
809* Syntax Table Functions:: How to create, examine and alter syntax tables.
810* Parsing Expressions:: Parsing balanced expressions
811 using the syntax table.
812* Standard Syntax Tables:: Syntax tables used by various major modes.
813* Syntax Table Internals:: How syntax table information is stored.
814
815Syntax Descriptors
816
817* Syntax Class Table:: Table of syntax classes.
818* Syntax Flags:: Additional flags each character can have.
819
820Abbrevs And Abbrev Expansion
821
822* Abbrev Mode:: Setting up Emacs for abbreviation.
823* Tables: Abbrev Tables. Creating and working with abbrev tables.
824* Defining Abbrevs:: Specifying abbreviations and their expansions.
825* Files: Abbrev Files. Saving abbrevs in files.
826* Expansion: Abbrev Expansion. Controlling expansion; expansion subroutines.
827* Standard Abbrev Tables:: Abbrev tables used by various major modes.
828
829Processes
830
831* Subprocess Creation:: Functions that start subprocesses.
832* Synchronous Processes:: Details of using synchronous subprocesses.
833* Asynchronous Processes:: Starting up an asynchronous subprocess.
834* Deleting Processes:: Eliminating an asynchronous subprocess.
835* Process Information:: Accessing run-status and other attributes.
836* Input to Processes:: Sending input to an asynchronous subprocess.
837* Signals to Processes:: Stopping, continuing or interrupting
838 an asynchronous subprocess.
839* Output from Processes:: Collecting output from an asynchronous subprocess.
840* Sentinels:: Sentinels run when process run-status changes.
bfe721d1 841* Network:: Opening network connections.
a44af9f2
RS
842
843Receiving Output from Processes
844
845* Process Buffers:: If no filter, output is put in a buffer.
846* Filter Functions:: Filter functions accept output from the process.
847* Accepting Output:: How to wait until process output arrives.
848
849Operating System Interface
850
851* Starting Up:: Customizing Emacs start-up processing.
852* Getting Out:: How exiting works (permanent or temporary).
853* System Environment:: Distinguish the name and kind of system.
854* Terminal Input:: Recording terminal input for debugging.
855* Terminal Output:: Recording terminal output for debugging.
856* Flow Control:: How to turn output flow control on or off.
857* Batch Mode:: Running Emacs without terminal interaction.
858
859Starting Up Emacs
860
8241495d 861* Startup Summary:: Sequence of actions Emacs performs at start-up.
a44af9f2
RS
862* Init File:: Details on reading the init file (@file{.emacs}).
863* Terminal-Specific:: How the terminal-specific Lisp file is read.
8241495d 864* Command-Line Arguments:: How command line arguments are processed,
a44af9f2
RS
865 and how you can customize them.
866
867Getting out of Emacs
868
869* Killing Emacs:: Exiting Emacs irreversibly.
870* Suspending Emacs:: Exiting Emacs reversibly.
871
872Emacs Display
873
874* Refresh Screen:: Clearing the screen and redrawing everything on it.
875* Truncation:: Folding or wrapping long text lines.
876* The Echo Area:: Where messages are displayed.
877* Selective Display:: Hiding part of the buffer text.
878* Overlay Arrow:: Display of an arrow to indicate position.
879* Temporary Displays:: Displays that go away automatically.
880* Waiting:: Forcing display update and waiting for user.
881* Blinking:: How Emacs shows the matching open parenthesis.
882* Usual Display:: How control characters are displayed.
883* Beeping:: Audible signal to the user.
884* Window Systems:: Which window system is being used.
885
886GNU Emacs Internals
887
888* Building Emacs:: How to preload Lisp libraries into Emacs.
889* Pure Storage:: A kludge to make preloaded Lisp functions sharable.
890* Garbage Collection:: Reclaiming space for Lisp objects no longer used.
891* Object Internals:: Data formats of buffers, windows, processes.
892* Writing Emacs Primitives:: Writing C code for Emacs.
893
894Object Internals
895
896* Buffer Internals:: Components of a buffer structure.
897* Window Internals:: Components of a window structure.
898* Process Internals:: Components of a process structure.
899@end menu
900
901@include intro.texi
902@include objects.texi
903@include numbers.texi
904@include strings.texi
905
906@include lists.texi
907@include sequences.texi
8241495d 908@include hash.texi
a44af9f2
RS
909@include symbols.texi
910@include eval.texi
911
912@include control.texi
913@include variables.texi
914@include functions.texi
915@include macros.texi
916
f9f59935 917@include customize.texi
a44af9f2
RS
918@include loading.texi
919@include compile.texi
cc236dfe 920@include advice.texi
a44af9f2 921
cc236dfe 922@include debugging.texi
f9f59935 923@include streams.texi
a44af9f2
RS
924@include minibuf.texi
925@include commands.texi
a44af9f2 926
cc236dfe 927@include keymaps.texi
f9f59935 928@include modes.texi
a44af9f2
RS
929@include help.texi
930@include files.texi
a44af9f2 931
cc236dfe 932@include backups.texi
f9f59935 933@include buffers.texi
a44af9f2
RS
934@include windows.texi
935@include frames.texi
f9f59935 936
cc236dfe 937@include positions.texi
a44af9f2
RS
938@include markers.texi
939@include text.texi
f9f59935 940@include nonascii.texi
f9f59935 941
cc236dfe 942@include searching.texi
a44af9f2
RS
943@include syntax.texi
944@include abbrevs.texi
a44af9f2 945@include processes.texi
f9f59935 946
a44af9f2
RS
947@include display.texi
948@include calendar.texi
513331d3 949@include os.texi
a44af9f2
RS
950
951@c MOVE to Emacs Manual: include misc-modes.texi
952
953@c appendices
954
955@c REMOVE this: include non-hacker.texi
956
a40d4712 957@include anti.texi
a44af9f2
RS
958@include tips.texi
959@include internals.texi
960@include errors.texi
961@include locals.texi
962@include maps.texi
963@include hooks.texi
a44af9f2
RS
964
965@include index.texi
966
f9f59935 967@node New Symbols, , Index, Top
a9f0a989 968@unnumbered New Symbols Since the Previous Edition
f9f59935 969
cc236dfe 970@printindex tp
f9f59935 971
a44af9f2
RS
972@c Print the tables of contents
973@summarycontents
974@contents
975@c That's all
976
977@bye
978
979\f
980These words prevent "local variables" above from confusing Emacs.