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, 26 Jun 2012 13:15:59 -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 1340727616 27306 80.91.229.3 (26 Jun 2012 16:20:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 16:20:16 +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 26 18:20:15 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 1SjYUw-0000Ii-NF for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 18:20:14 +0200 Original-Received: from localhost ([::1]:55601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjYUw-0006PA-Fl for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jun 2012 12:20:14 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin3!goblin.stu.neva.ru!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Injection-Info: mx04.eternal-september.org; posting-host="7hq+vOb5AB1bv/0OQy81vA"; logging-data="16168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+r/qtmmQV+7kxiwVf7KRb1" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:wpct4f8RwrP5DjAmlGGoNsBmDC0= Original-Xref: usenet.stanford.edu gnu.emacs.help:193088 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:85483 Archived-At: On 2012-06-25 at 20:03 ADT, Stefan Monnier wrote: >>>> Thanks for your thoughts. Given the lack of discussion in this >>>> thread, I get the idea I'm the only person doing anything like this. >>> Maybe, but I'd still accept a patch that makes it easier, >> When you say "I'd accept a patch", does that mean you are willing to >> put such a thing in, assuming the patch is OK? > Yes. Great. >> If so, how about this diff against the server.el from 24.1: >> diff server.el.orig server.el >> 1131c1131,1133 >> < (setq dir (command-line-normalize-file-name dir))) >> --- >> > (setq dir (command-line-normalize-file-name dir)) >> > (process-put proc 'emacsclient-cwd dir) >> > ) > > "diff -u" is a better choice for output format, but thanks. I figured I should use another incantation of diff, but given the lack of extensiveness, I figured that might do. > The patch looks good, I installed it in Emacs's trunk. Thanks very much. >> In my tests, that does what I want. I'm not in love with the name >> "emacsclient-cwd", so if there is something which is seen as a better >> name, that's find with me. > I've changed it to `server-client-directory' (the "server-" part is > just a kind of "module name prefix"). Sounds fine. Thanks for your help with this. Jim