From xemacs-m  Fri Apr  4 02:37:25 1997
Received: from dunham.tcimet.net (qmailr@dunham.tcimet.net [198.109.161.223])
	by xemacs.org (8.8.5/8.8.5) with SMTP id CAA09209
	for <xemacs-beta@xemacs.org>; Fri, 4 Apr 1997 02:37:24 -0600 (CST)
Received: (qmail 13087 invoked by uid 501); 4 Apr 1997 08:37:23 -0000
To: xemacs-beta@xemacs.org
Subject: Wnn SIGALRM problem (Was: Japanese input)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Steve Dunham <dunham@dunham.tcimet.net>
Date: 04 Apr 1997 03:37:00 -0500
Message-ID: <m2hghnrxoe.fsf@dunham.tcimet.net>
Lines: 52
X-Mailer: Gnus v5.4.37/XEmacs 20.1(beta10)


I'm CC'ing a copy of this to the mailing list, just in case it's of
use to anyone else...

jhod@po.iijnet.or.jp (P. E. Jareth Hein) writes:
> Steve Dunham <dunham@dunham.tcimet.net> writes:

I got Wnn to compile, I just had to correctly set IMTOP in the
Project.tmpl file.  (I also disabled all the Chinese and Korean stuff
to make it compile faster.)

> Ya, egg-wnn-client is nolonger used (and will disapear probably next
> beta). What you need in your .emacs is something like

> (when (featurep 'wnn)
>   (require 'egg-wnn)
>   (setq egg-default-startup-file "eggrc-wnn"))

> and please make sure thats before you load .xemacs-options or call
> (set-language-environment 'japanese)

I just figured out the problem, (actually figured it out last night,
but there was an extra copy of libwnn.a hidden in /usr/lib/X11, so my
changes were never linked in).

The following patch to the stock Wnn4.2 will fix the SIGALRM problem.

Let me know if you figure out the disappearing text problem.


Steve
dunham@cps.msu.edu


--- Xsi.orig/Wnn/jlib/js.c      Thu Aug 18 21:30:29 1994
+++ Xsi/Wnn/jlib/js.c   Thu Apr  3 23:53:25 1997
@@ -290,15 +290,7 @@
        return -1 ;
     }
 
-    if (timeout != 0 && timeout > 0) {
-       signal(SIGALRM, connect_timeout);
-       alarm(timeout);
-    }
     ret = connect(sd, (caddr_t)&saddr_in, sizeof(saddr_in));
-    if (timeout != 0 && timeout > 0) {
-       alarm(0);
-       signal(SIGALRM, SIG_IGN);
-    }
     if (ret == ERROR) {
 #if DEBUG
        xerror("jslib:Can't connect Inet socket.\n");

