unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jim Diamond <Jim.Diamond@deletethis.AcadiaU.ca>
To: help-gnu-emacs@gnu.org
Subject: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem
Date: Mon, 4 Jun 2012 15:48:04 -0300	[thread overview]
Message-ID: <slrnjsq0n4.hsp.Jim.Diamond@jdiamond-nb2.acadiau.ca> (raw)

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	other threads:[~2012-06-04 18:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-04 18:48 Jim Diamond [this message]
2012-06-05  4:11 ` 24.1.50 + lexical-binding + server.el + server-visit-hook = problem Kevin Rodgers
     [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=slrnjsq0n4.hsp.Jim.Diamond@jdiamond-nb2.acadiau.ca \
    --to=jim.diamond@deletethis.acadiau.ca \
    --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).