help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnuserve switches to the old Emacs window but does not open the file


From: Bernhard Koenig
Subject: Re: gnuserve switches to the old Emacs window but does not open the file
Date: Fri, 9 Jun 2006 22:52:40 +0200

----- Original Message -----
Sent: Friday, June 09, 2006 6:57 PM
Subject: Re: gnuserve switches to the old Emacs window but does not open the file

Bernhard Koenig wrote:
> I'm using a Windows machine with Emacs 22.0.50.1.
> I also installed the gnuserve package and it seems to be correctly
> installed,
> my .emacs contains

> (require 'gnuserv)
> (setq gnuserv-frame (car (frame-list)))
> (gnuserv-start)

> (defadvice server-find-file (around ignore-percent-one (file) activate)
>   (if (or (not (string= "%1" (file-name-nondirectory file)))
>           (file-exists-p file))
>     ad-do-it))

> At times, when I use the command "gnuclientw -F filename.txt" this
> will only
> switch to the old emacs window but NOT open the file "filename.txt". Once
> this happened, I cannot pass any more files to this old window but have to
> close it. Closing then produces a beep on my machine, while usually
> emacs does not
> beep when exiting. In the message box, the line "Server subprocess exited"
> appears sometimes, which seems to be related to this problem.

> The problem shows up sometimes but not all the times, I couldn't quite
> figure out when it does and when not. E.g. if I click two files with
> gnuclientw
> in a very short interval, then it usually works. The longer the
> interval, the more
> likely the problem occurs.
There are several gnuserve packages. Please use the latest from EmacsW32
(http://ourcomments.org/Emacs/EmacsW32.html) or Guy Gascoigne-Piggford
website.

There is a name clash between the package server.el and gnuserv.el in
the old packages.
I downloaded the whole package Emacs-22-CvsP060314-EmacsW32-1.00.exe from your link above.
But the problem seems to be the same. The problem happens if I open a file with gnuclientw,
then e.g. browse through directories for a while, then open another file with gnuclientw and
the old emacs windows pops up but does not load the second file.
The new thing with this version is that after closing the emacs window, I get the message:
 
unable to read the reply from the server
WSAGetLastError=10054
It doesn't seem to be a firewall problem though since I also tried it with the firewall switched off.
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]