all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: djc <newsg@resiak.org>
To: help-gnu-emacs@gnu.org
Subject: emacsclient uses obsolete "server" file on Windows
Date: Sat, 07 Jun 2008 20:05:04 +0200	[thread overview]
Message-ID: <484ACDD0.80209@resiak.org> (raw)

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


             reply	other threads:[~2008-06-07 18:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07 18:05 djc [this message]
2008-06-08 12:06 ` emacsclient uses obsolete "server" file on Windows Juanma Barranquero
     [not found] ` <mailman.12907.1212926783.18990.help-gnu-emacs@gnu.org>
2008-06-08 15:29   ` djc
2008-06-08 20:38     ` Juanma Barranquero
     [not found]     ` <mailman.12919.1212957485.18990.help-gnu-emacs@gnu.org>
2008-06-08 20:52       ` djc
2008-06-12  8:41       ` djc
2008-06-12  9:48         ` Juanma Barranquero
2008-06-12 13:48           ` Lennart Borgman (gmail)
2008-06-12 13:56             ` Juanma Barranquero
2008-06-12 14:15               ` Lennart Borgman (gmail)
2008-06-12 14:33                 ` Juanma Barranquero
2008-06-12 18:13           ` Eli Zaretskii
2008-06-12 18:20             ` Juanma Barranquero
2008-06-12 18:22               ` Eli Zaretskii
2008-06-12 18:24                 ` Juanma Barranquero
2008-06-14  5:42               ` Bernardo Bacic
2008-06-14 10:57                 ` Eli Zaretskii
2008-06-14 23:33                   ` Bernardo Bacic
2008-06-14 15:42                 ` Juanma Barranquero

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=484ACDD0.80209@resiak.org \
    --to=newsg@resiak.org \
    --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.