[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Basic Emacs Lisp question
From: |
tyler |
Subject: |
Re: Basic Emacs Lisp question |
Date: |
Tue, 29 Apr 2008 18:14:54 -0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Matthias Pfeifer <pfemat@web.de> writes:
> What is the difference between
>
> (list 0 nil -1)
>
> and
>
> '(0 nil -1)
>
In this instance, nothing. However, the '(...) form leaves it's
arguments unevaluated (quoted), while (list ...) evaluates them. Since
0, nil and -1 all evaluate to themselves there is no difference in this
case. However, the following two statements are different:
(list 0 fill-column -1)
'(0 fill-column -1)
A good place to start learning is the Introduction to Programming in
Emacs Lisp, which is available from gnu.org, if it isn't already present
in your info directory (i.e., C-h i m emacs lisp intro <ret>).
HTH,
Tyler
--
Tired of spyware? Try Firefox:
www.firefox.com