From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Gauthier_=D6stervall?= Newsgroups: gmane.emacs.help Subject: Re: sending function arguments to recursive function calls Date: Tue, 7 May 2013 13:25:31 +0200 Message-ID: References: <0F54256BD7B94384AC4DDA919D502C20@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1367925979 9008 80.91.229.3 (7 May 2013 11:26:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 May 2013 11:26:19 +0000 (UTC) To: Drew Adams , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 07 13:26:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZg2D-0001M1-Fh for geh-help-gnu-emacs@m.gmane.org; Tue, 07 May 2013 13:26:17 +0200 Original-Received: from localhost ([::1]:40369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZg2C-0004j4-P3 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 May 2013 07:26:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZg1s-0004aV-Ju for help-gnu-emacs@gnu.org; Tue, 07 May 2013 07:26:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZg1p-0004N3-Gf for help-gnu-emacs@gnu.org; Tue, 07 May 2013 07:25:56 -0400 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:46747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZg1o-0004Mv-Si for help-gnu-emacs@gnu.org; Tue, 07 May 2013 07:25:53 -0400 Original-Received: by mail-wi0-f178.google.com with SMTP id hm14so487993wib.5 for ; Tue, 07 May 2013 04:25:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:content-type:x-gm-message-state; bh=65Fch8cq1D3LdXS20TSpTk6JBe+nCSzjruyol4l3txk=; b=eh3vPDTynJHJHt1NoncZNgFWpLbn3TpOwHieh9nURQehAiykIU6cCbpbPNbpGe1qCa eyAy6c/tFpfpQt3S4s9Yib0peeUefRk6XFhFupI0nPvAnuFTeZWahuVmO7/Oy4M6moNP vWnSU2b7N8xw6MQ0S5HdcKhg23ydilMQT4idVdkAx/pcvI3A9SLUcB5O8E7unuigGnFQ 7wUh1plo63OfL2jmwORU1iDI08udY4JetkMrM7z1/OD0ZAhTJ+Mhx1HsquMgi6sVSfUn macqRczDPiUlIWbqIU5wsrJ+ZSQP94suE3bQelsm09rm6mCp19akNfH2jcnr2Okf+Sm9 uvcw== X-Received: by 10.194.19.104 with SMTP id d8mr2677037wje.24.1367925951425; Tue, 07 May 2013 04:25:51 -0700 (PDT) Original-Received: by 10.180.11.74 with HTTP; Tue, 7 May 2013 04:25:31 -0700 (PDT) X-Originating-IP: [83.248.165.178] In-Reply-To: <0F54256BD7B94384AC4DDA919D502C20@us.oracle.com> X-Gm-Message-State: ALoCoQlVkP4UZp2BOCTmUa47txrHTZIgohT22JEDnGih5+3MTaHBZuYAZ8QaZsxCxckLAHUaBOi8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90534 Archived-At: On Sat, May 4, 2013 at 5:30 PM, Drew Adams wrote: > The key to the puzzle is this little declaration in the first comment of the > file: > > ;;; face-remap.el --- Functions for ... -*- lexical-binding: t -*- > > That `lexical-binding t' tells Emacs that the code in this file is meant to be > understood with the variable `lexical-binding' bound to t (locally). Thanks for the kind words and the explanation. I do not feel very confident about having a function that relies on a file scope setting of lexical-binding, which as in this case happens 300 lines earlier. Wouldn't it be better to have functions that work whatever the value of lexical-binding, if possible? > An alternative to using a lexical binding here would be to simply use this: > > `(lambda () (interactive) (text-scale-adjust (abs ',inc))) If this alternative works whatever lexical-binding, it seems superior to me. Isn't it?