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