From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: Emacs - cannot connect to X server Date: Fri, 21 Jun 2002 03:41:41 -0600 (MDT) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200206210941.g5L9ffE20400@aztec.santafe.edu> References: <5IaQ8.333580$o66.861135@news-server.bigpond.net.au> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1024652577 18826 127.0.0.1 (21 Jun 2002 09:42:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2002 09:42:57 +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 17LKwT-0004tX-00 for ; Fri, 21 Jun 2002 11:42:57 +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 17LKwa-0003E8-00; Fri, 21 Jun 2002 05:43:04 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LKvL-0002QO-00; Fri, 21 Jun 2002 05:41:47 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g5L9fgC28351; Fri, 21 Jun 2002 03:41:42 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g5L9ffE20400; Fri, 21 Jun 2002 03:41:41 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: Matt.Muggeridge@hp.com In-Reply-To: <5IaQ8.333580$o66.861135@news-server.bigpond.net.au> (Matt.Muggeridge@hp.com) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 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:2184 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2184 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. */