From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Syntax question for experts Date: Fri, 23 May 2008 10:34:43 +0200 Message-ID: <8763t52zbw.fsf@thievol.homelinux.org> References: <87d4ndecsm.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1211531542 25024 80.91.229.12 (23 May 2008 08:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 08:32:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 23 10:32:58 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JzShi-0007CD-LF for geh-help-gnu-emacs@m.gmane.org; Fri, 23 May 2008 10:32:46 +0200 Original-Received: from localhost ([127.0.0.1]:57579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzSgy-0002af-1Y for geh-help-gnu-emacs@m.gmane.org; Fri, 23 May 2008 04:32:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzSfa-0001Y0-UB for help-gnu-emacs@gnu.org; Fri, 23 May 2008 04:30:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzSfZ-0001Wg-PR for help-gnu-emacs@gnu.org; Fri, 23 May 2008 04:30:34 -0400 Original-Received: from [199.232.76.173] (port=49857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzSfZ-0001WR-Ie for help-gnu-emacs@gnu.org; Fri, 23 May 2008 04:30:33 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.152]:56167) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzSfY-0002rn-V6 for help-gnu-emacs@gnu.org; Fri, 23 May 2008 04:30:33 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l26so365187fgb.30 for ; Fri, 23 May 2008 01:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:content-transfer-encoding; bh=J1WqOPqt/tlHYYl4gKqpNqfciJOSGXuOAF33R4u6fwY=; b=j4tuzVmxxpfKB9mwK0BVgXodSfTgh8xwGSYyoJd796PZJDOzkqmWPdxlwDSFL1CKPW3r8Qzq/Zwdil0XohU1TP0tLH6qXEkA5/SqC1G+BxTNUIeZbrmeBfH6ABnTnCEjOt3koearkux4nufg0PHswAygSTmzrsI4yUUhRduemP4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:content-transfer-encoding; b=uVuKnZvEzHb1PEwBwsjE/g7wxOr4Cq2sulGT7FLzBn/ftm5SMOmepNkCevuQJJgQTn3trv6FfegAMKaNoVBhDfwOSXGLSNy4H0Aq5KWbXIOAkL2ng7MDQYH4lX1Ho08xXsv7r1ZN78pcUC6cGDkHSX6bVlgPaOsQ5kRRqfdy6xI= Original-Received: by 10.86.78.4 with SMTP id a4mr1210945fgb.17.1211531431068; Fri, 23 May 2008 01:30:31 -0700 (PDT) Original-Received: from thievol.homelinux.org ( [79.85.211.75]) by mx.google.com with ESMTPS id f31sm9679316fkf.5.2008.05.23.01.30.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 May 2008 01:30:29 -0700 (PDT) In-Reply-To: <87d4ndecsm.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Fri, 23 May 2008 08:48:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54267 Archived-At: S=C3=A9bastien Vauban writes: > Hi, > > A quick question... > > I've seen both > > (add-hook 'shell-mode-hook > (lambda () > (whatever))) > > and > > (add-hook 'shell-mode-hook > '(lambda () > (whatever))) > > (see the quote in front of lambda). > > What is the best writing? With or without the quote? Without, read that: http://www.emacswiki.org/cgi-bin/wiki/QuotedLambda > By "best", I mean more portable (XEmacs, etc.), or with a longer > life-time (won't become erroneous in a couple of years), etc. > > Best regards, > Seb If you want to quote the lambda , quote it like: ,---- | #'(lambda ()...) `---- that is the same as ,---- | (function (lambda ()...)) `---- =20 --=20 A + Thierry Pub key: http://pgp.mit.edu