In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU locale-coding-system: cp1252 default-enable-multibyte-characters: t Recipe to reproduce the problem: -------------------------------- 1. Rename your .emacs to something else and create a new .emacs that only contains (server-start) 2. Open a command prompt 3. For convenience, add the bin-directory of the Emacs distribution temporarily to your path if it isn't already -- adapt the following line to your system: set path=e:\emacs\bin;%path% 4. emacsclientw --no-wait --alternate-editor=runemacs foo.txt This causes the above error message to pop up. After pressing OK, Emacs starts and everything works as usual. If you haven't got the error message yet, just repeat step 4 once. 5. Now the "workaround" to avoid the error message: Delete the file "~/.emacs.d/server/server" and repeat step 4: no error message! But if you close Emacs and repeat step 4 *again*, the error message shows up *again* as there is a "~/.emacs.d/server/server" file *again*. This pop-up window is confusing: the title bar of the pop-up says `ERROR', but the text in the window says `No error'. What exactly is it trying to tell the user? On GNU/Linux, doing (roughly) the same on the command line gives this: ,---- | me@mymachine:~/sw/emacs-22/bin$ ./emacsclient --no-wait \ | > --alternate-editor=./emacs foo.txt | ./emacsclient: connect: Connection refused `---- and Emacs starts. Note the `(roughly) the same' above because on GNU/Linux I use `emacsclient' instead of `emacsclientw' and `emacs' instead of `runemacs'. There is no pop-up window on GNU/Linux -- the only thing that happens besides that Emacs is starting is that `emacsclient' informs the user that there was no server it could connect to. I prefer the behaviour on GNU/Linux as the pop-up window (together with the `ding'-noise that accompanies it) is *very* disruptive. My guess: The problem is either in `emacsclientw' due to implementation differences compared to `emacsclient' or it has something to do with the file "~/.emacs.d/server/server". In fact, on GNU/Linux there isn't even a directory "server" in "~/.emacs.d/": ,---- | me@mymachine:~/sw/emacs-22/bin$ ls ~/.emacs.d/ | auto-save-list | me@mymachine:~/sw/emacs-22/bin$ `---- Regards, -- Christian Schlauer