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