From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matt Muggeridge Newsgroups: gmane.emacs.bugs Subject: RE: Emacs - cannot connect to X server Date: Tue, 2 Jul 2002 07:24:40 +1000 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1025558806 22072 127.0.0.1 (1 Jul 2002 21:26:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 1 Jul 2002 21:26:46 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17P8h3-0005jt-00 for ; Mon, 01 Jul 2002 23:26:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17P8hW-0001bM-00; Mon, 01 Jul 2002 17:27:14 -0400 Original-Received: from ztxmail04.ztx.compaq.com ([161.114.1.208]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17P8fE-0001TU-00; Mon, 01 Jul 2002 17:24:53 -0400 Original-Received: from mailrelay01.cac.cpqcorp.net (mailrelay01.cac.cpqcorp.net [16.47.132.152]) by ztxmail04.ztx.compaq.com (Postfix) with ESMTP id DD09DDAA; Mon, 1 Jul 2002 16:24:51 -0500 (CDT) Original-Received: from mailrelay01.sno.cpqcorp.net (mailrelay01.sno.cpqcorp.net [16.176.4.56]) by mailrelay01.cac.cpqcorp.net (Postfix) with ESMTP id 89BAFB76; Mon, 1 Jul 2002 14:24:49 -0700 (PDT) Original-Received: from ozyexc1.itg.qvar.cpqcorp.net by mailrelay01.sno.cpqcorp.net (8.9.3/1.1.29.3/09Apr02-1036PM) id HAA0000271986; Tue, 2 Jul 2002 07:24:46 +1000 (EST) Original-Received: by ozyexc1.itg.qvar.cpqcorp.net with Internet Mail Service (5.5.2650.21) id ; Tue, 2 Jul 2002 07:24:45 +1000 Original-To: "'rms@gnu.org'" , Matt.Muggeridge@hp.com X-Mailer: Internet Mail Service (5.5.2650.21) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2380 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2380 Richard, Sorry for the delay, I'm just back from vacation. Just to let you know where I am up to with this. I tested your suggested modifications and it worked as hoped. However, before I can claim conclusively that this solved the problem, I wanted to reproduce the problem I was having with the distribution emacs. As of this morning, I have only been able to reproduce the original problem once. Subsequent attempts did not show the problem. I'll continue testing this and keep you informed. Matt. >-----Original Message----- >From: Richard Stallman [mailto:rms@gnu.org] >Sent: Friday, 21 June 2002 7:42 PM >To: Matt.Muggeridge@hp.com >Cc: bug-gnu-emacs@gnu.org >Subject: Re: Emacs - cannot connect to X server > > > I do not understand how emacs connects to the X server, >but I am suspicious > of timeouts. Could it be that emacs does not wait long >enough to establish > an X-session over a slow link? > >It IS possible, because Emacs (on some systems) gets alarm signals >regularly to "poll for input". Perhaps the signal causes a problem >of not "waiting" enough. (I'd say that is a bug in Xlib if it >happens.) > >Could you see if this patch makes the problem go away? >It may not be something we really want to install, though. > >*** xterm.c.~1.736.~ Thu Jun 13 18:28:04 2002 >--- xterm.c Thu Jun 20 19:17:47 2002 >*************** >*** 14657,14666 **** >--- 14657,14668 ---- > argv[argc++] = "-xrm"; > argv[argc++] = xrm_option; > } >+ stop_polling (); > dpy = XtOpenDisplay (Xt_app_con, XSTRING (display_name)->data, > resource_name, EMACS_CLASS, > emacs_options, XtNumber (emacs_options), > &argc, argv); >+ start_polling (); > > #ifdef HAVE_X11XTR6 > /* I think this is to compensate for XtSetLanguageProc. */ >