www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_9.html   search  
 
Buy the book!


Programming in Emacs Lisp

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.1 Lisp Lists

In Lisp, a list looks like this: '(rose violet daisy buttercup). This list is preceded by a single apostrophe. It could just as well be written as follows, which looks more like the kind of list you are likely to be familiar with:

 
'(rose
  violet
  daisy
  buttercup)

The elements of this list are the names of the four different flowers, separated from each other by whitespace and surrounded by parentheses, like flowers in a field with a stone wall around them.

Numbers, Lists inside of Lists  List have numbers, other lists, in them.
1.1.1 Lisp Atoms  Elemental entities.
1.1.2 Whitespace in Lists  Formating lists to be readable.
1.1.3 GNU Emacs Helps You Type Lists  How GNU Emacs helps you type lists.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003