From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Diamond Newsgroups: gmane.emacs.help Subject: Re: Real-life examples of lexical binding in Emacs Lisp Date: Tue, 23 Jun 2015 20:49:23 -0300 Organization: A noiseless patient Spider Message-ID: References: <87bnh3eqiv.fsf@mbork.pl> <874mmuxyd5.fsf@gnu.org> <87k2v6wmpy.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435103418 21059 80.91.229.3 (23 Jun 2015 23:50:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2015 23:50:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 01:50:17 2015 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 1Z7XxJ-0001dO-BX for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 01:50:17 +0200 Original-Received: from localhost ([::1]:47887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7XxI-0001Uk-Pn for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2015 19:50:16 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Injection-Info: mx02.eternal-september.org; posting-host="4dd0a780b6231db6df0eb032760c3d5a"; logging-data="24681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BIAncOCXk8izW3BOBvpY6" User-Agent: slrn/1.0.1 (Linux) Cancel-Lock: sha1:ZQ1U1jBHkIcvqmD3aGsIYc9Uf2M= Original-Xref: usenet.stanford.edu gnu.emacs.help:212824 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:105109 Archived-At: On 2015-06-17 at 13:02 ADT, Phillip Lord wrote: > Jim Diamond writes: >> The first language I "learned" was lexically scoped. But the first >> language I used a lot was dynamically scoped. It seemed quite >> reasonable and natural to me at the time. >> >> A few versions of emacs ago something I was using went from dynamic >> scoping to lexical scoping. Working around that change was not >> trivial, casting suspicion on the universality of "easier". > > > You should write these problems up, with your solutions. Potentially > useful to someone else, iff they have the same problems. Phil, It is quite a while ago now, and took me a while to dig up the details. Reviewing the solution, I see that it required a patch to a file which went from dynamic scoping to lexical scoping. Stefan Monnier was a huge help in getting this sorted out. Anyone interested in the particular issue and the particular solution can read the messages in the thread found at http://lists.gnu.org/archive/html/help-gnu-emacs/2012-06/msg00040.html It is not all that long. Cheers. Jim