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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem


From: Jim Diamond
Subject: Re: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem
Date: Tue, 5 Jun 2012 08:21:47 -0300
User-agent: slrn/0.9.9p1 (Linux)

On 2012-06-05 at 01:11 ADT, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> On 6/4/12 12:48 PM, Jim Diamond wrote:
>> While using 23.4 (and some other older versions) I added a hook to
>> server-visit-hook.  My hook function uses the variable "dir", which is
>> meaningful at the point where server-visit-hook is called.
>>
>> However, in 24.1.50, the new and improved server.el has
>>      lexical-binding: t
>> at the top of the file, which (apparently) means that dir is not
>> available to my hook.
>>
>> Can some emacs guru (or wizard or ...) enlighten me as to what is the
>> "proper" way of dealing with this problem?

> How and where is the binding of dir established?

With a (let) in server-process-filter (lines 1035 and 889 of the
server.el I downloaded the other day).

                                Jim


reply via email to

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