help-gnu-emacs
[Top][All Lists]
Advanced

[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: Pascal J. Bourguignon
Subject: Re: How to use a variable from outer scope in the success function of a request call?
Date: Sat, 29 Aug 2015 09:51:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Iñigo Serna <inigoserna@gmail.com> 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.


-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]