From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarek Czekalski Newsgroups: gmane.emacs.bugs Subject: bug#15801: it's a different revision, 112892 Date: Wed, 06 Nov 2013 20:48:29 +0100 Message-ID: <527A9D0D.6040207@poczta.onet.pl> References: <5277EA95.4070001@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383767301 27004 80.91.229.3 (6 Nov 2013 19:48:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2013 19:48:21 +0000 (UTC) To: 15801@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 06 20:48:26 2013 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 1Ve95M-0005N0-Ln for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2013 20:48:16 +0100 Original-Received: from localhost ([::1]:35741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve95M-00039n-C1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2013 14:48:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve95E-00039h-DV for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 14:48:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve959-0007W3-EX for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 14:48:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve959-0007Vz-6i for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 14:48:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ve958-0003L2-LG for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 14:48:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <5277EA95.4070001@poczta.onet.pl> Resent-From: Jarek Czekalski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15801-submit@debbugs.gnu.org id=B15801.138376726312807 (code B ref 15801); Wed, 06 Nov 2013 19:48:02 +0000 Original-Received: (at 15801) by debbugs.gnu.org; 6 Nov 2013 19:47:43 +0000 Original-Received: from localhost ([127.0.0.1]:37806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve94o-0003KU-Rf for submit@debbugs.gnu.org; Wed, 06 Nov 2013 14:47:43 -0500 Original-Received: from smtpo09.poczta.onet.pl ([213.180.142.140]:34538) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve94l-0003KF-L1 for 15801@debbugs.gnu.org; Wed, 06 Nov 2013 14:47:41 -0500 Original-Received: from [192.168.17.5] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3dFJDg4ZpYz9txCl for <15801@debbugs.gnu.org>; Wed, 6 Nov 2013 20:47:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1383767252; bh=/Q8eR/ODy4kk3TP00pwdJmZ2AQRZhN64s5MyoItvF7Y=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=jW9rjStPobykXG5C+8aw2LGFF4joK75qv+ZwWuXUH+zglHHeU2dh009WM3+hOzYKc illes2Njgr40wMwnVaruxerMsAGIjh7WbTHfdY3XeQ+Kv0dSafKXq5R2+x0OcqL4C7 4TPzZEuxACxcRfo8RQodR64Jt4NiqG6e5DcEolVM= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:80092 Archived-At: First of all I apologize for giving the wrong revision number in my previous report. When I tried to isolate the piece of code that introduces problems, I finally gave up. This all revision may be applied and all works. So I did more binary search and finally I'm sure the one below is the right revision. ------------------------------------------------------------ revno: 112892 committer: Jan D. branch nick: trunk timestamp: Sat 2013-06-08 10:48:52 +0200 message: * xgselect.c (xg_select): Remove call to window_system_available and g_main_context_pending at the top, so Gdk events (i.e. file notify) are processed when Emacs is started with -nw. It's quite short: === modified file 'src/xgselect.c' @@ -44,9 +44,13 @@ - if (! (window_system_available (NULL) - && g_main_context_pending (context = g_main_context_default ()))) - return pselect (fds_lim, rfds, wfds, efds, timeout, sigmask); + /* Do not try to optimize with an initial check with g_main_context_pending + and a call to pselect if it returns false. If Gdk has a timeout for 0.01 + second, and Emacs has a timeout for 1 second, g_main_context_pending will + return false, but the timeout will be 1 second, thus missing the gdk + timeout with a lot. */ + + context = g_main_context_default (); When I apply the code removed in this revision to the current trunk, I have a relief. No more freezing, as well as with my first fix that also works. Jarek