From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#9754: Issue with Emacs 23.4 Date: Tue, 15 May 2012 15:08:55 -0400 Message-ID: <4FB2A9C7.3070604@cornell.edu> References: <4FAC34DA.7040606@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020701030007020506060404" X-Trace: dough.gmane.org 1337109005 20186 80.91.229.3 (15 May 2012 19:10:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 May 2012 19:10:05 +0000 (UTC) Cc: 9754@debbugs.gnu.org, "Douglas, William" To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 15 21:10:03 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUN8F-0002D9-FD for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 May 2012 21:10:03 +0200 Original-Received: from localhost ([::1]:58779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUN8E-0004aD-O6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 May 2012 15:10:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUN8B-0004ZG-R4 for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 15:10:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUN89-0006az-J8 for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 15:09:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUN89-0006at-Eu for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 15:09:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUN8E-0002rL-7n for bug-gnu-emacs@gnu.org; Tue, 15 May 2012 15:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 May 2012 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 9754-submit@debbugs.gnu.org id=B9754.133710897910952 (code B ref 9754); Tue, 15 May 2012 19:10:02 +0000 Original-Received: (at 9754) by debbugs.gnu.org; 15 May 2012 19:09:39 +0000 Original-Received: from localhost ([127.0.0.1]:56495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUN7p-0002qa-Tr for submit@debbugs.gnu.org; Tue, 15 May 2012 15:09:38 -0400 Original-Received: from limestone3.mail.cornell.edu ([128.253.83.163]:40539) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUN7n-0002qH-Am for 9754@debbugs.gnu.org; Tue, 15 May 2012 15:09:36 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from alva01.serverfarm.cornell.edu (alva01.serverfarm.cornell.edu [128.84.106.36]) by limestone3.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q4FJ9FPm014144; Tue, 15 May 2012 15:09:15 -0400 (EDT) Original-Received: from localhost.localdomain (pawpaw.mail.cornell.edu [128.253.83.170]) by alva01.serverfarm.cornell.edu (8.14.4/8.14.4) with ESMTP id q4FJ9GWW009193; Tue, 15 May 2012 15:09:16 -0400 Original-Received: from pawpaw.mail.cornell.edu by pawpaw.mail.cornell.edu with queue id 204832997-6; Tue, 15 May 2012 19:09:04 GMT Original-Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) by with SMTP id ; Tue, 15 May 2012 19:09:04 GMT (envelope-from kbrown@cornell.edu) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: <4FAC34DA.7040606@cs.ucla.edu> X-PMX-CORNELL-SPAM-CHECKED: Pawpaw X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.15.190324 X-Original-Sender: kbrown@cornell.edu - Tue May 15 15:09:05 2012 X-PMX-CORNELL-REASON: CU_White_List_Override X-PMX-CORNELL: Alva01 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60043 Archived-At: This is a multi-part message in MIME format. --------------020701030007020506060404 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit I'm resending this because I got back a message saying I had to unarchive bug 9754 before I could add to it. On 5/10/2012 5:36 PM, Paul Eggert wrote: > On 05/10/2012 02:25 PM, Douglas, William wrote: >> Is there any chance of getting the fix for this applied or am I left >> distro patching and waiting for 24? > > The latter -- at least, that's the current plan. I think this bug still exists, in slightly different form, in emacs-24. The call of g_main_context_query in xgselect.c:62 still uses the variables gfds and gfds_size, which are not initialized by xgselect_initialize if we're running emacs -nw. But, more fundamentally, it doesn't make sense for emacs -nw to be interacting with GLib at all. I suggest the attached patch. Ken --------------020701030007020506060404 Content-Type: text/plain; charset=windows-1252; name="xgselect.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xgselect.patch" --- xgselect.c.orig 2012-05-15 13:53:13.000000000 -0400 +++ xgselect.c 2012-05-15 14:09:19.093750000 -0400 @@ -35,6 +35,9 @@ xg_select (int max_fds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, EMACS_TIME *timeout) { + if (inhibit_window_system || !display_arg) + return select (max_fds, rfds, wfds, efds, timeout); + SELECT_TYPE all_rfds, all_wfds; EMACS_TIME tmo, *tmop = timeout; --------------020701030007020506060404--