From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: djc Newsgroups: gmane.emacs.help Subject: emacsclient uses obsolete "server" file on Windows Date: Sat, 07 Jun 2008 20:05:04 +0200 Organization: les newsgroups par Orange Message-ID: <484ACDD0.80209@resiak.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212903138 19813 80.91.229.12 (8 Jun 2008 05:32:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2008 05:32:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 08 07:33:00 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K5DWV-0003BG-F1 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jun 2008 07:32:59 +0200 Original-Received: from localhost ([127.0.0.1]:33169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5DVi-0005Ba-Ah for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jun 2008 01:32:10 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.fr!fr.colt.net!rain.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Date: 07 Jun 2008 20:05:06 CEST Original-NNTP-Posting-Host: 90.57.131.163 Original-X-Trace: 1212861906 news.orange.fr 922 90.57.131.163:2743 Original-X-Complaints-To: abuse@orange.fr Original-Xref: news.stanford.edu gnu.emacs.help:159228 X-Mailman-Approved-At: Sun, 08 Jun 2008 01:31:42 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54602 Archived-At: My _emacs contains (require 'server) (server-start) When I kill emacs the "server" file remains. As a result, when I first invoke \path\emacsclientw.exe -a \path\runemacs.exe FILE emacsclientw finds the obsolete "server" file, tries to use the information in it, and blocks with an error message saying the server has refused connection. (Actually, of course, the server doesn't exist.) Once I click to dismiss the message, everything proceeds fine: emacsclientw invokes runemacs, which starts emacs on the file. emacs writes a new, valid "server" file so further invoking the same command line works properly. It also works properly when there is no "server" file. This can't possibly be how things are supposed to go. How should things be set up so the command above will always work without blocking? Hook deleting the file to "kill-emacs"? I'm new to emacsclient after using gnuclient/gnuserv for years, so perhaps I've missed something obvious. If so, just point it out. Thanks. Pete