all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient uses obsolete "server" file on Windows
@ 2008-06-07 18:05 djc
  2008-06-08 12:06 ` Juanma Barranquero
       [not found] ` <mailman.12907.1212926783.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 19+ messages in thread
From: djc @ 2008-06-07 18:05 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-06-14 23:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 18:05 emacsclient uses obsolete "server" file on Windows djc
2008-06-08 12:06 ` 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

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.