From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Fwd: Tabs for console. Date: Fri, 10 Dec 2010 13:23:19 -0800 (PST) Message-ID: <54294.130.55.132.100.1292016199.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1292016218 20654 80.91.229.12 (10 Dec 2010 21:23:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 21:23:38 +0000 (UTC) Cc: Stefan Monnier , Emacs Dev To: "Alin Soare" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 10 22:23:33 2010 Return-path: Envelope-to: ged-emacs-devel@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 1PRARB-0002JW-2i for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 22:23:33 +0100 Original-Received: from localhost ([127.0.0.1]:41271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRARA-00069G-IJ for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 16:23:32 -0500 Original-Received: from [140.186.70.92] (port=54950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRAR3-00064j-Ta for emacs-devel@gnu.org; Fri, 10 Dec 2010 16:23:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRAR2-0001aH-Hr for emacs-devel@gnu.org; Fri, 10 Dec 2010 16:23:25 -0500 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:54898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRAR2-0001YQ-5c for emacs-devel@gnu.org; Fri, 10 Dec 2010 16:23:24 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id oBAMVARR032184; Fri, 10 Dec 2010 15:31:10 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id E99C41A8CB7F; Fri, 10 Dec 2010 14:23:19 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (Postfix) with ESMTP id D5C951A8CB74; Fri, 10 Dec 2010 14:23:19 -0700 (MST) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id D38701CA80E4; Fri, 10 Dec 2010 14:23:19 -0700 (MST) Original-Received: from 130.55.132.100 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Fri, 10 Dec 2010 13:23:19 -0800 (PST) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.el5_4.10.lanl3 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2010-12-10_11:2010-12-10, 2010-12-10, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133590 Archived-At: > If, in my loss of knowledge , emacs can make lexical scope, how do you > re-write this chunk of Scheme code in elisp ? > > (define (create-tab x) > (lambda (m) > (cond ((equal? m ':init) > (display (string-append x ":init") ) ) > ((equal? m ':activate) > (display (string-append x ":activate") ) ) ) ) ) In the absence of lexbind, just put ` before the (lambda and , before each x. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.