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: gnuserve switches to the old Emacs window but does not open the file Date: Fri, 9 Jun 2006 12:02:59 +0200 Message-ID: <000801c68bab$e5013d50$8a17548d@DellNotebook> Reply-To: Bernhard Koenig NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2118481317==" X-Trace: sea.gmane.org 1149867274 13754 80.91.229.2 (9 Jun 2006 15:34:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2006 15:34:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 09 17:34:30 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 1Foj0D-0001ct-5d for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jun 2006 17:34:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Foj0C-0004Dy-Ik for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jun 2006 11:34:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fodpg-0005a5-Lf for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 06:03:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fodpf-0005YX-M3 for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 06:03:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fodpf-0005YQ-IK for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 06:03:11 -0400 Original-Received: from [129.187.254.102] (helo=mailrelay2.lrz-muenchen.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fodxg-0002yi-Ek for help-gnu-emacs@gnu.org; Fri, 09 Jun 2006 06:11:28 -0400 Original-Received: from DellNotebook ([141.84.23.138] [141.84.23.138]) by mailout.lrz-muenchen.de for help-gnu-emacs@gnu.org; Fri, 9 Jun 2006 12:03:02 +0200 Original-To: 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-Mailman-Approved-At: Fri, 09 Jun 2006 11:33:48 -0400 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:35369 Archived-At: This is a multi-part message in MIME format. --===============2118481317== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C68BBC.A6DA8890" This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C68BBC.A6DA8890 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3D "%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. ------=_NextPart_000_0005_01C68BBC.A6DA8890 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm using a Windows machine with Emacs=20 22.0.50.1.
I also installed the gnuserve package = and it seems=20 to be correctly installed,
my .emacs contains
 
(require 'gnuserv)
(setq = gnuserv-frame (car=20 (frame-list)))
(gnuserv-start)
 
(defadvice server-find-file (around=20 ignore-percent-one (file) activate)
  (if (or (not (string=3D = "%1"=20 (file-name-nondirectory=20 file)))
          = (file-exists-p=20 file))
    ad-do-it))
 
At times, when I use the command = "gnuclientw -F=20 filename.txt" this 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 to this=20 old window but have to
close it. Closing = then produces a beep on=20 my machine, while usually emacs does not
beep when exiting. In the message box, = the line=20 "Server subprocess exited"
appears sometimes, which seems to be = related to=20 this problem.
 
The problem shows up sometimes but not = all the=20 times, I couldn't quite
figure out when it does and when = not. E.g. if=20 I click two files with gnuclientw
in a very short interval, then it = usually=20 works. The longer the interval, the more
likely the problem=20 occurs.
 
------=_NextPart_000_0005_01C68BBC.A6DA8890-- --===============2118481317== 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 --===============2118481317==--