[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

9.2.7 Special Forms

A special form is a primitive function specially marked so that its arguments are not all evaluated. Most special forms define control structures or perform variable bindings—things which functions cannot do.

Each special form has its own rules for which arguments are evaluated and which are used without evaluation. Whether a particular argument is evaluated may depend on the results of evaluating other arguments.

Here is a list, in alphabetical order, of all of the special forms in Emacs Lisp with a reference to where each is described.

et

voir la section Constructs for Combining Conditions

catch

voir la section Explicit Nonlocal Exits: catch and throw

cond

voir la section Conditions

condition-case

voir la section Writing Code to Handle Errors

defconst

voir la section Defining Global Variables

defmacro

voir la section Defining Macros

defun

voir la section Defining Functions

defvar

voir la section Defining Global Variables

fonction

voir la section Anonymous Functions

if

voir la section Conditions

interactive

voir la section Interactive Call

let
let*

voir la section Local Variables

or

voir la section Constructs for Combining Conditions

prog1
prog2
progn

voir la section Sequencing

quote

voir la section Quoting

save-current-buffer

voir la section The Current Buffer

save-excursion

voir la section Excursions

save-restriction

voir la section Narrowing

save-window-excursion

voir la section Window Configurations

setq

voir la section How to Alter a Variable Value

setq-default

voir la section Creating and Deleting Buffer-Local Bindings

track-mouse

voir la section Mouse Tracking

unwind-protect

voir la section Nonlocal Exits

while

voir la section Iteration

with-output-to-temp-buffer

voir la section Temporary Displays

Common Lisp note: Here are some comparisons of special forms in GNU Emacs Lisp and Common Lisp. setq, if, and catch are special forms in both Emacs Lisp and Common Lisp. defun is a special form in Emacs Lisp, but a macro in Common Lisp. save-excursion is a special form in Emacs Lisp, but doesn't exist in Common Lisp. throw is a special form in Common Lisp (because it must be able to throw multiple values), but it is a function in Emacs Lisp (which doesn't have multiple values).


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.