all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Diamond <Jim.Diamond@deletethis.AcadiaU.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem
Date: Tue, 5 Jun 2012 08:21:47 -0300	[thread overview]
Message-ID: <slrnjsrqub.c4o.Jim.Diamond@jdiamond-nb2.acadiau.ca> (raw)
In-Reply-To: mailman.2291.1338869494.855.help-gnu-emacs@gnu.org

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


  parent reply	other threads:[~2012-06-05 11:21 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
     [not found] ` <mailman.2291.1338869494.855.help-gnu-emacs@gnu.org>
2012-06-05 11:21   ` Jim Diamond [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnjsrqub.c4o.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.