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

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

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


From: Jim Diamond
Subject: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem
Date: Mon, 4 Jun 2012 15:48:04 -0300
User-agent: slrn/0.9.9p1 (Linux)

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?

Thanks.

                                Jim


reply via email to

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