From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem
Date: Mon, 04 Jun 2012 22:11:51 -0600 [thread overview]
Message-ID: <jqk0sr$pbo$1@dough.gmane.org> (raw)
In-Reply-To: <slrnjsq0n4.hsp.Jim.Diamond@jdiamond-nb2.acadiau.ca>
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?
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2012-06-05 4:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 18:48 24.1.50 + lexical-binding + server.el + server-visit-hook = problem Jim Diamond
2012-06-05 4:11 ` Kevin Rodgers [this message]
[not found] ` <mailman.2291.1338869494.855.help-gnu-emacs@gnu.org>
2012-06-05 11:21 ` Jim Diamond
2012-06-06 1:17 ` Stefan Monnier
2012-06-06 20:01 ` Jim Diamond
2012-06-07 3:42 ` Kevin Rodgers
[not found] ` <mailman.2373.1339040551.855.help-gnu-emacs@gnu.org>
2012-06-09 14:33 ` Jim Diamond
2012-06-11 13:27 ` Stefan Monnier
2012-06-11 14:33 ` Jim Diamond
2012-06-13 15:13 ` Stefan Monnier
2012-06-24 20:34 ` Jim Diamond
2012-06-25 23:03 ` Stefan Monnier
2012-06-26 16:15 ` Jim Diamond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jqk0sr$pbo$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).