From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bernhard Koenig" Newsgroups: gmane.emacs.help Subject: Re: gnuserve switches to the old Emacs window but does not open the file Date: Fri, 9 Jun 2006 22:52:40 +0200 Message-ID: <000c01c68c06$ac8ecd10$6317548d@DellNotebook> References: <000801c68bab$e5013d50$8a17548d@DellNotebook> <4489A85E.1060203@student.lu.se> Reply-To: Bernhard Koenig NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0626924295==" X-Trace: sea.gmane.org 1149886417 27091 80.91.229.2 (9 Jun 2006 20:53:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2006 20:53:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 09 22:53:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fonyn-0007iV-36 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jun 2006 22:53:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fonym-0008TP-IW for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jun 2006 16:53:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FonyY-0008Sq-WD for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 16:53:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FonyX-0008Rh-9D for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 16:53:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FonyX-0008Rc-5K for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 16:53:01 -0400 Original-Received: from [129.187.254.106] (helo=mailrelay1.lrz-muenchen.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Foo6e-0004Bb-A5 for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 17:01:24 -0400 Original-Received: from DellNotebook ([141.84.23.99] [141.84.23.99]) by mailout.lrz-muenchen.de; Fri, 9 Jun 2006 22:52:51 +0200 Original-To: "Lennart Borgman" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 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:35379 Archived-At: This is a multi-part message in MIME format. --===============0626924295== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01C68C17.691B6FA0" This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C68C17.691B6FA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ----- Original Message -----=20 From: Lennart Borgman=20 To: Bernhard Koenig=20 Cc: help-gnu-emacs@gnu.org=20 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=20 > installed, > my .emacs contains > =20 > (require 'gnuserv) > (setq gnuserv-frame (car (frame-list))) > (gnuserv-start) > =20 > (defadvice server-find-file (around ignore-percent-one (file) = activate) > (if (or (not (string=3D "%1" (file-name-nondirectory file))) > (file-exists-p file)) > ad-do-it)) > =20 > At times, when I use the command "gnuclientw -F filename.txt" this=20 > 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=20 > 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. > =20 > 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=20 > interval, the more > likely the problem occurs. There are several gnuserve packages. Please use the latest from = EmacsW32=20 (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=20 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=3D10054 It doesn't seem to be a firewall problem though since I also tried it = with the firewall switched off. ------=_NextPart_000_0009_01C68C17.691B6FA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
----- Original Message -----
From:=20 Lennart Borgman =
Sent: Friday, June 09, 2006 = 6:57 PM
Subject: Re: gnuserve switches = to the old=20 Emacs window but does not open the file

Bernhard Koenig wrote:
> I'm using a Windows machine with = Emacs=20 22.0.50.1.
> I also installed the gnuserve package and it seems = to be=20 correctly
> installed,
> my .emacs contains
>  =
> (require 'gnuserv)
> (setq gnuserv-frame (car=20 (frame-list)))
> (gnuserv-start)

> = (defadvice=20 server-find-file (around ignore-percent-one (file)=20 activate)
>   (if (or (not (string=3D "%1"=20 (file-name-nondirectory=20 = file)))
>         &nbs= p;=20 (file-exists-p file))
>     = ad-do-it))
> =20
> At times, when I use the command "gnuclientw -F filename.txt" = this=20
> will only
> switch to the old emacs window but NOT open = the=20 file "filename.txt". Once
> this happened, I cannot pass any = more files=20 to this old window but have to
> close it. Closing then produces = a beep=20 on my machine, while usually
> emacs does not
> beep when = exiting. In the message box, the line "Server subprocess = exited"
>=20 appears sometimes, which seems to be related to this = problem.
> =20
> The problem shows up sometimes but not all the times, I = couldn't=20 quite
> figure out when it does and when not. E.g. if I click = two files=20 with
> gnuclientw
> in a very short interval, then it = usually=20 works. The longer the
> interval, the more
> likely the = problem=20 occurs.
There are several gnuserve packages. Please use the latest = from=20 EmacsW32
(http://ourcomments.or= g/Emacs/EmacsW32.html)=20 or Guy Gascoigne-Piggford
website.

There is a name clash = between=20 the package server.el and gnuserv.el in
the old = packages.
I downloaded the whole package=20 Emacs-22-CvsP060314-EmacsW32-1.00.exe from your link = above.
But the problem seems to be the same. = The problem=20 happens if I open a file with gnuclientw,
then e.g. browse through directories = for a while,=20 then open another file with gnuclientw and
the old emacs windows pops up but does = not load the=20 second file.
The new thing with this version is that = after=20 closing the emacs window, I get the message:
 
unable to read the reply from the=20 server
WSAGetLastError=3D10054
It doesn't seem to be a firewall = problem though=20 since I also tried it with the firewall switched off.
 
------=_NextPart_000_0009_01C68C17.691B6FA0-- --===============0626924295== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0626924295==--