From unknown Sat Sep 06 09:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9893: C-z suspends Emacs "forever" (gtk3, Gnome shell) Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2011 21:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9893@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131975231013631 (code B ref -1); Thu, 27 Oct 2011 21:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2011 21:51:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJXrZ-0003Xo-Kh for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:51:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJXrW-0003Xf-GU for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:51:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJXpi-00014S-NO for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:49:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:58478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJXpi-00014M-JM for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:49:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJXpg-0006rD-PB for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJXpf-00013s-7A for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:49:52 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:58481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJXpe-00013m-MG for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:49:51 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 5EDAAA60003 for ; Thu, 27 Oct 2011 14:49:49 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dRAkgIXthALz for ; Thu, 27 Oct 2011 14:49:48 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1A8ED39E800A for ; Thu, 27 Oct 2011 14:49:48 -0700 (PDT) Message-ID: <4EA9D1FB.9030206@cs.ucla.edu> Date: Thu, 27 Oct 2011 14:49:47 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) [This follows up a thread on emacs-devel: .] I can reproduce the problem on my host (Fedora Core 15, x86-64), starting with the trunk (bzr 106209), as follows: ./autogen.sh ./configure CFLAGS=-g --with-x-toolkit=gtk3 make -j5 cd src ./emacs -Q [ Type C-z into the new Emacs session. ] [ Use the Gnome shell Activities to bring Emacs back onto the screen. ] [ Emacs comes back onto the screen, but typing into it is ineffective. ] Here's a backtrace of a frozen Emacs, which I started under GDB (this is actually bootstrap-emacs): (gdb) where #0 0x0000003b8eed91f3 in select () from /lib64/libc.so.6 #1 0x0000000000537d5d in xg_select (max_fds=27, rfds=0x7fffffffce60, wfds=0x7fffffffcde0, efds=0x0, timeout=0x7fffffffcdc0) at xgselect.c:100 #2 0x0000000000659371 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=12720546, wait_proc=0x0, just_wait_proc=0) at process.c:4607 #3 0x0000000000420934 in sit_for (timeout=120, reading=1, do_display=1) at dispnew.c:5971 #4 0x00000000005650e0 in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd3b0, prev_event=12720546, used_mouse_menu=0x7fffffffd594, end_time=0x0) at keyboard.c:2687 #5 0x0000000000572d71 in read_key_sequence (keybuf=0x7fffffffd800, bufsize=30, prompt=12720546, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9290 #6 0x0000000000562862 in command_loop_1 () at keyboard.c:1447 #7 0x00000000005fe79b in internal_condition_case (bfun=0x56247d , handlers=12772738, hfun=0x561d65 ) at eval.c:1499 #8 0x000000000056216c in command_loop_2 (ignore=12720546) at keyboard.c:1158 #9 0x00000000005fe125 in internal_catch (tag=12768530, func=0x562146 , arg=12720546) at eval.c:1256 #10 0x000000000056211f in command_loop () at keyboard.c:1137 #11 0x00000000005618a9 in recursive_edit_1 () at keyboard.c:757 #12 0x0000000000561a4c in Frecursive_edit () at keyboard.c:821 #13 0x000000000055fb0c in main (argc=2, argv=0x7fffffffe118) at emacs.c:1706 (gdb) up #1 0x0000000000537d5d in xg_select (max_fds=27, rfds=0x7fffffffce60, wfds=0x7fffffffcde0, efds=0x0, timeout=0x7fffffffcdc0) at xgselect.c:100 (gdb) p max_fds $1 = 27 (gdb) p all_rfds $2 = { fds_bits = {152895872, 0 } } (gdb) p have_wfds $3 = 1 (gdb) p all_wfds $4 = { fds_bits = {0 } } (gdb) p efds $5 = (fd_set *) 0x0 (gdb) p tmop $6 = (struct timeval *) 0x7fffffffcdc0 (gdb) p *tmop $7 = { tv_sec = 0, tv_usec = 431064 } From unknown Sat Sep 06 09:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9893: gtk3, emacs 24 and gnome shell Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2011 22:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: emacs-devel@gnu.org Cc: Tassilo Horn , Andrea Crotti , Rasmus , 9893@debbugs.gnu.org Reply-To: 9893@debbugs.gnu.org Received: via spool by 9893-submit@debbugs.gnu.org id=B9893.131975300414673 (code B ref 9893); Thu, 27 Oct 2011 22:04:02 +0000 Received: (at 9893) by debbugs.gnu.org; 27 Oct 2011 22:03:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJY2m-0003ob-0r for submit@debbugs.gnu.org; Thu, 27 Oct 2011 18:03:24 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJY2i-0003oS-1Z for 9893@debbugs.gnu.org; Thu, 27 Oct 2011 18:03:21 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id EFA1739E800A; Thu, 27 Oct 2011 15:01:28 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KTj3xq+vhf8P; Thu, 27 Oct 2011 15:01:28 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 654F739E8007; Thu, 27 Oct 2011 15:01:28 -0700 (PDT) Message-ID: <4EA9D4B7.1070809@cs.ucla.edu> Date: Thu, 27 Oct 2011 15:01:27 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 References: <4EA554D1.1040000@gmail.com> <878voaf05x.fsf@gmail.com> <87ty6xczz2.fsf@thinkpad.tsdh.de> <8739ehfpia.fsf@gmail.com> <87hb2x5u7g.fsf@thinkpad.tsdh.de> <8762jaqi2d.fsf@gmail.com> In-Reply-To: <8762jaqi2d.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) I can reproduce the problem on Fedora 15 x86-64 when running under the Gnome shell. I filed a bug report . From unknown Sat Sep 06 09:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9893: gtk3, emacs 24 and gnome shell Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2011 22:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9893@debbugs.gnu.org Received: via spool by 9893-submit@debbugs.gnu.org id=B9893.131975544018237 (code B ref 9893); Thu, 27 Oct 2011 22:44:01 +0000 Received: (at 9893) by debbugs.gnu.org; 27 Oct 2011 22:44:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJYg4-0004k5-I4 for submit@debbugs.gnu.org; Thu, 27 Oct 2011 18:44:00 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJYg0-0004jv-RL for 9893@debbugs.gnu.org; Thu, 27 Oct 2011 18:43:58 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 271E7A60003 for <9893@debbugs.gnu.org>; Thu, 27 Oct 2011 15:42:05 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ikJJkFVhiNQ0 for <9893@debbugs.gnu.org>; Thu, 27 Oct 2011 15:42:04 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 632AB39E8007 for <9893@debbugs.gnu.org>; Thu, 27 Oct 2011 15:42:04 -0700 (PDT) Message-ID: <4EA9DE3B.2030108@cs.ucla.edu> Date: Thu, 27 Oct 2011 15:42:03 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 References: <4EA554D1.1040000@gmail.com> <878voaf05x.fsf@gmail.com> <87ty6xczz2.fsf@thinkpad.tsdh.de> <8739ehfpia.fsf@gmail.com> <87hb2x5u7g.fsf@thinkpad.tsdh.de> <8762jaqi2d.fsf@gmail.com> <4EA9D4B7.1070809@cs.ucla.edu> In-Reply-To: <4EA9D4B7.1070809@cs.ucla.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) One more thing: the problem is not new to Emacs 24, as it occurs with the bundled Fedora 15 emacs ("GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4) of 2011-05-23 on x86-12.phx2.fedoraproject.org"). There has been a bug report about this for Fedora since June . From unknown Sat Sep 06 09:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9893: gtk3, emacs 24 and gnome shell Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Oct 2011 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: 9893@debbugs.gnu.org Received: via spool by 9893-submit@debbugs.gnu.org id=B9893.131983587910412 (code B ref 9893); Fri, 28 Oct 2011 21:05:02 +0000 Received: (at 9893) by debbugs.gnu.org; 28 Oct 2011 21:04:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJtbT-0002ht-8X for submit@debbugs.gnu.org; Fri, 28 Oct 2011 17:04:39 -0400 Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJtbQ-0002hl-Gf for 9893@debbugs.gnu.org; Fri, 28 Oct 2011 17:04:37 -0400 Received: from iph4.telenor.se (iph4.telenor.se [195.54.127.135]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 08F1BD030 for <9893@debbugs.gnu.org>; Fri, 28 Oct 2011 23:02:39 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al9CANAXq05V4S3JPGdsb2JhbABCDqlXGQEBAQE3MoFyAQEEAVYjBQsLRi0MChQGiBUCBrN9iCJhBJk7i3s5 X-IronPort-AV: E=Sophos;i="4.69,420,1315173600"; d="scan'208";a="1996883333" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph4.telenor.se with ESMTP; 28 Oct 2011 23:02:39 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 189F27FA058; Fri, 28 Oct 2011 23:02:39 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= In-Reply-To: <4EA9DE3B.2030108@cs.ucla.edu> Date: Fri, 28 Oct 2011 23:02:37 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <951A7970-7518-4710-8FEF-73352B16529B@swipnet.se> References: <4EA554D1.1040000@gmail.com> <878voaf05x.fsf@gmail.com> <87ty6xczz2.fsf@thinkpad.tsdh.de> <8739ehfpia.fsf@gmail.com> <87hb2x5u7g.fsf@thinkpad.tsdh.de> <8762jaqi2d.fsf@gmail.com> <4EA9D4B7.1070809@cs.ucla.edu> <4EA9DE3B.2030108@cs.ucla.edu> X-Mailer: Apple Mail (2.1251.1) X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) 28 okt 2011 kl. 00:42 skrev Paul Eggert: > One more thing: the problem is not new to Emacs 24, as it > occurs with the bundled Fedora 15 emacs ("GNU Emacs 23.2.1 > (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4) of 2011-05-23 > on x86-12.phx2.fedoraproject.org"). >=20 > There has been a bug report about this for Fedora since June > . >=20 >=20 I'm looking in to it now. There is no Map event when emacs is = uniconified, so Emacs thinks it is still iconified. Either Gtk swallows = it or gnome-shell doesn't send any. The former is unlikely as this also = happens with Gtk 2.24.4 which works fine with other window managers. It = is most likely gnome-shell specific. I'll see if there is any other way Emacs can detect when it becomes = uniconified. Jan D. From unknown Sat Sep 06 09:27:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Eggert Subject: bug#9893: closed (Re: bug#9893: gtk3, emacs 24 and gnome shell) Message-ID: References: <86D66A9F-32CD-4033-8BA5-42EBAFC240D1@swipnet.se> <4EA9D1FB.9030206@cs.ucla.edu> X-Gnu-PR-Message: they-closed 9893 X-Gnu-PR-Package: emacs Reply-To: 9893@debbugs.gnu.org Date: Sun, 30 Oct 2011 17:30:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1319995802-3330-1" This is a multi-part message in MIME format... ------------=_1319995802-3330-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9893: C-z suspends Emacs "forever" (gtk3, Gnome shell) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9893@debbugs.gnu.org. --=20 9893: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9893 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1319995802-3330-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9893-done) by debbugs.gnu.org; 30 Oct 2011 17:29:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKZBu-0000qE-Bx for submit@debbugs.gnu.org; Sun, 30 Oct 2011 13:29:02 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKZBr-0000pu-Bx for 9893-done@debbugs.gnu.org; Sun, 30 Oct 2011 13:29:00 -0400 Received: by bkat8 with SMTP id t8so635763bka.3 for <9893-done@debbugs.gnu.org>; Sun, 30 Oct 2011 10:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=UCUMIbEfJZdwBmCdBa1PnE7hxrVEfyn5L0x1MgjYtSI=; b=Qj9Y1iwzNNXh/GUp8bPvREqqP9/5SSGfUnBJqRkTx62S4/rQAyWS/uTHyTr9EorIEe zHZVxQz61Ln3G16wtaqFnRVwtJW/uSqI11SIQzC9c8t72QEWAKJO6fB8IFJZmEw0IHQ9 VuECsNdeeADxMjKI7ICaESip1Xeq+WaVkHXTg= Received: by 10.204.130.85 with SMTP id r21mr8302808bks.38.1319995611366; Sun, 30 Oct 2011 10:26:51 -0700 (PDT) Received: from [172.20.199.13] (c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se. [85.225.45.201]) by mx.google.com with ESMTPS id z9sm14335254bkn.7.2011.10.30.10.26.48 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Oct 2011 10:26:49 -0700 (PDT) Subject: Re: bug#9893: gtk3, emacs 24 and gnome shell Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: <4EA9DE3B.2030108@cs.ucla.edu> Date: Sun, 30 Oct 2011 18:26:49 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <86D66A9F-32CD-4033-8BA5-42EBAFC240D1@swipnet.se> References: <4EA554D1.1040000@gmail.com> <878voaf05x.fsf@gmail.com> <87ty6xczz2.fsf@thinkpad.tsdh.de> <8739ehfpia.fsf@gmail.com> <87hb2x5u7g.fsf@thinkpad.tsdh.de> <8762jaqi2d.fsf@gmail.com> <4EA9D4B7.1070809@cs.ucla.edu> <4EA9DE3B.2030108@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.1251.1) X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 9893-done Cc: 9893-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) 28 okt 2011 kl. 00:42 skrev Paul Eggert: > One more thing: the problem is not new to Emacs 24, as it > occurs with the bundled Fedora 15 emacs ("GNU Emacs 23.2.1 > (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4) of 2011-05-23 > on x86-12.phx2.fedoraproject.org"). >=20 > There has been a bug report about this for Fedora since June > . >=20 >=20 Emacs expects MapNotify to arrive when it is deiconfified. But this = doesn't seem to happen when we have iconfied us with gtk_window_iconfiy. = So we now check for _NET_WM_STATE_HIDDEN changes also. But I don't really understand why Emacs does not process keypresses as = normal when it is iconified or why Emacs even cares if it is iconfified = or not. Jan D. ------------=_1319995802-3330-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Oct 2011 21:51:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJXrZ-0003Xo-Kh for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:51:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJXrW-0003Xf-GU for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:51:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJXpi-00014S-NO for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:49:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:58478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJXpi-00014M-JM for submit@debbugs.gnu.org; Thu, 27 Oct 2011 17:49:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJXpg-0006rD-PB for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJXpf-00013s-7A for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:49:52 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:58481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJXpe-00013m-MG for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:49:51 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 5EDAAA60003 for ; Thu, 27 Oct 2011 14:49:49 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dRAkgIXthALz for ; Thu, 27 Oct 2011 14:49:48 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1A8ED39E800A for ; Thu, 27 Oct 2011 14:49:48 -0700 (PDT) Message-ID: <4EA9D1FB.9030206@cs.ucla.edu> Date: Thu, 27 Oct 2011 14:49:47 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: C-z suspends Emacs "forever" (gtk3, Gnome shell) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) [This follows up a thread on emacs-devel: .] I can reproduce the problem on my host (Fedora Core 15, x86-64), starting with the trunk (bzr 106209), as follows: ./autogen.sh ./configure CFLAGS=-g --with-x-toolkit=gtk3 make -j5 cd src ./emacs -Q [ Type C-z into the new Emacs session. ] [ Use the Gnome shell Activities to bring Emacs back onto the screen. ] [ Emacs comes back onto the screen, but typing into it is ineffective. ] Here's a backtrace of a frozen Emacs, which I started under GDB (this is actually bootstrap-emacs): (gdb) where #0 0x0000003b8eed91f3 in select () from /lib64/libc.so.6 #1 0x0000000000537d5d in xg_select (max_fds=27, rfds=0x7fffffffce60, wfds=0x7fffffffcde0, efds=0x0, timeout=0x7fffffffcdc0) at xgselect.c:100 #2 0x0000000000659371 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=12720546, wait_proc=0x0, just_wait_proc=0) at process.c:4607 #3 0x0000000000420934 in sit_for (timeout=120, reading=1, do_display=1) at dispnew.c:5971 #4 0x00000000005650e0 in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd3b0, prev_event=12720546, used_mouse_menu=0x7fffffffd594, end_time=0x0) at keyboard.c:2687 #5 0x0000000000572d71 in read_key_sequence (keybuf=0x7fffffffd800, bufsize=30, prompt=12720546, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9290 #6 0x0000000000562862 in command_loop_1 () at keyboard.c:1447 #7 0x00000000005fe79b in internal_condition_case (bfun=0x56247d , handlers=12772738, hfun=0x561d65 ) at eval.c:1499 #8 0x000000000056216c in command_loop_2 (ignore=12720546) at keyboard.c:1158 #9 0x00000000005fe125 in internal_catch (tag=12768530, func=0x562146 , arg=12720546) at eval.c:1256 #10 0x000000000056211f in command_loop () at keyboard.c:1137 #11 0x00000000005618a9 in recursive_edit_1 () at keyboard.c:757 #12 0x0000000000561a4c in Frecursive_edit () at keyboard.c:821 #13 0x000000000055fb0c in main (argc=2, argv=0x7fffffffe118) at emacs.c:1706 (gdb) up #1 0x0000000000537d5d in xg_select (max_fds=27, rfds=0x7fffffffce60, wfds=0x7fffffffcde0, efds=0x0, timeout=0x7fffffffcdc0) at xgselect.c:100 (gdb) p max_fds $1 = 27 (gdb) p all_rfds $2 = { fds_bits = {152895872, 0 } } (gdb) p have_wfds $3 = 1 (gdb) p all_wfds $4 = { fds_bits = {0 } } (gdb) p efds $5 = (fd_set *) 0x0 (gdb) p tmop $6 = (struct timeval *) 0x7fffffffcdc0 (gdb) p *tmop $7 = { tv_sec = 0, tv_usec = 431064 } ------------=_1319995802-3330-1-- From unknown Sat Sep 06 09:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9893: gtk3, emacs 24 and gnome shell Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Oct 2011 20:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9893@debbugs.gnu.org Received: via spool by 9893-submit@debbugs.gnu.org id=B9893.132009216227401 (code B ref 9893); Mon, 31 Oct 2011 20:17:02 +0000 Received: (at 9893) by debbugs.gnu.org; 31 Oct 2011 20:16:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKyH3-00077c-2Q for submit@debbugs.gnu.org; Mon, 31 Oct 2011 16:16:01 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKyH0-00077T-Ug for 9893@debbugs.gnu.org; Mon, 31 Oct 2011 16:16:00 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id A46DBA60001 for <9893@debbugs.gnu.org>; Mon, 31 Oct 2011 13:13:44 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z91nfWACGCNp for <9893@debbugs.gnu.org>; Mon, 31 Oct 2011 13:13:44 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 31C2A39E8006 for <9893@debbugs.gnu.org>; Mon, 31 Oct 2011 13:13:44 -0700 (PDT) Message-ID: <4EAF0178.5000909@cs.ucla.edu> Date: Mon, 31 Oct 2011 13:13:44 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 References: <4EA554D1.1040000@gmail.com> <878voaf05x.fsf@gmail.com> <87ty6xczz2.fsf@thinkpad.tsdh.de> <8739ehfpia.fsf@gmail.com> <87hb2x5u7g.fsf@thinkpad.tsdh.de> <8762jaqi2d.fsf@gmail.com> <4EA9D4B7.1070809@cs.ucla.edu> <4EA9DE3B.2030108@cs.ucla.edu> <86D66A9F-32CD-4033-8BA5-42EBAFC240D1@swipnet.se> In-Reply-To: <86D66A9F-32CD-4033-8BA5-42EBAFC240D1@swipnet.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) Thanks for fixing that. I checked, and it works for my environment too (Fedora 15 x86-64, Emacs compiled with GCC 4.6.2).