help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add-hook


From: Thien-Thi Nguyen
Subject: Re: add-hook
Date: Thu, 07 Jun 2007 09:16:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

() Sebastian Tennant <sebyte@smolny.plus.com>
() Thu, 07 Jun 2007 03:20:33 +0300

   Perhaps someone could explain why it is lambda
   functions don't need to be quoted in this context?

in elisp, the form `(lambda ARGS BODY)' is self-quoting in
all contexts, like numbers and strings.  sometimes you see:

 (function (lambda ...))
 #'(lambda ...)

these serve as hints to the byte compiler that the form
should be compiled.  on the other hand, if you see:

 '(lambda ...)

then that tells the compiler to treat the form as data (DON'T compile).
if you aren't byte compiling, quoting is strictly optional.

thi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]