[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use a variable from outer scope in the success function of a
From: |
Iñigo Serna |
Subject: |
Re: How to use a variable from outer scope in the success function of a request call? |
Date: |
Sat, 29 Aug 2015 10:34:26 +0200 |
Hi,
Pascal J. Bourguignon writes:
>> ; I can't use a variable inside the success lambda function of a web request
>> call.
>> ; As this is difficult to explain I'll show some things I've tried.
>
> Add:
> (setf lexical-binding t)
> before fn1, and:
> ;; -*- mode:emacs-lis;lexical-binding:t -*-
> as the first line of all your .el files.
Thanks a lot Pascal, that makes fn1 `work'!
And to learn more myself, do you have any hint why `fn3' or `fn4' don't work
and how to make
it work?
Thanks,
Iñigo Serna