From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: condition-case Date: Mon, 13 Dec 2010 11:10:30 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zks9mwe1.fsf@lifelogs.com> References: <33e7a222-992c-4fc2-bbd2-d987a0d4d9b1@j32g2000prh.googlegroups.com> <877hfxokvh.fsf@lola.goethe.zz> <4d4ecf83-ffd8-43d9-8c27-4123856273e9@21g2000prv.googlegroups.com> <0b6e72ef-a605-4ac1-bc71-f3e180f162fb@j18g2000prn.googlegroups.com> <87r5e3zxyw.fsf@kuiper.lan.informatimago.com> <878w06lqcf.fsf@lifelogs.com> <8762vaodaw.fsf@kuiper.lan.informatimago.com> <8762v6ho6q.fsf@lifelogs.com> <87hbepd50p.fsf@lifelogs.com> <87pqtc9sd5.fsf@lifelogs.com> <877hfh4gl5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292280969 6405 80.91.229.12 (13 Dec 2010 22:56:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 22:56:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 13 23:56:04 2010 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.69) (envelope-from ) id 1PSHJJ-0006h0-Qm for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 23:56:02 +0100 Original-Received: from localhost ([127.0.0.1]:55400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSHJJ-0000Mw-9I for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 17:56:01 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!news.alt.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news2.arglkargh.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: news.albasani.net KXRr2l5QhxS7kOD5G+QHgLfwX6TDROSya4rMw4cDleJQ0NAYogl/wfjSltgSbzzzH+tjIRUdPAsDobMfvgLX3SjsgIidOxtfZJeqIF8SYL882O1BxiPFQcxby+heV0g+ Original-NNTP-Posting-Date: Mon, 13 Dec 2010 17:10:31 +0000 (UTC) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:P0ZELW18QDgKseZAp+6ZGI+bNwM= sha1:RyMZ5wbYbT2Xzit6FRdOFe81OsE= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Injection-Info: news.albasani.net; logging-data="/BKVy3oYaV7O+Y/g4IH9FO4OtA1dI1flLNPrIGTrKByamY1ksrPfGxWqDcE2o2cZm+WegFlXBKgXulsPvZ9geGw9yWmY6eXLf2t9IU7nZ38ZlxspTncs+b6nze3vIbcH"; mail-complaints-to="abuse@albasani.net" Original-Xref: usenet.stanford.edu gnu.emacs.help:183212 X-Mailman-Approved-At: Mon, 13 Dec 2010 17:55:16 -0500 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:77471 Archived-At: On Fri, 10 Dec 2010 12:40:06 -0600 Ted Zlatanov wrote: TZ> On Thu, 09 Dec 2010 10:04:12 -0500 Stefan Monnier wrote: >>> (subst var (car clausvar) body))))) SM> Oh wait, I just noticed this one: `subst' is wrong here. I know CL SM> already uses it for similar purposes elsewhere, but it's simply wrong SM> because `subst' doesn't know about Elisp binding rules. SM> So (subst 'b 'a '(lambda () '(a b c))) will happily return SM> (lambda () '(b b c)). Better simply use `let', even if it has SM> a performance cost. TZ> I didn't catch that. I don't know enough about ELisp vs. CL scoping and TZ> binding rules to write this properly, unfortunately. Can you show how TZ> `let' could be used? I'll take the code and provide the doc string and TZ> reindent it, then propose the revised version in emacs-devel. ...in other words, in the example you showed, is it just (let ((b a)) (lambda () '(b b c))) or is it more complicated? Ted