From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Diamond Newsgroups: gmane.emacs.help Subject: Re: 24.1.50 + lexical-binding + server.el + server-visit-hook = problem Date: Tue, 5 Jun 2012 08:21:47 -0300 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338895517 19453 80.91.229.3 (5 Jun 2012 11:25:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2012 11:25:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 13:25:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sbrsw-0002qV-Ac for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2012 13:25:14 +0200 Original-Received: from localhost ([::1]:40246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbrsw-0001eX-2M for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2012 07:25:14 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Info: mx04.eternal-september.org; posting-host="TN4cDgbvm2dMBTkc2tVm+A"; logging-data="28518"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lPCOXGOShyw2eIYEuTUuk" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:Dnua9NPvW160VKjloXiqmdyETAI= Original-Xref: usenet.stanford.edu gnu.emacs.help:192712 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85117 Archived-At: On 2012-06-05 at 01:11 ADT, Kevin Rodgers 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