From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#8869: Unjustified selection time-out Date: Sun, 26 Jun 2011 10:36:00 +0200 Message-ID: <4E06EF70.7060009@swipnet.se> References: <4DF955AF.6080107@harpegolden.net> <4DFA2303.2070304@harpegolden.net> <4DFB98D8.5030204@harpegolden.net> <871uyq23w3.fsf@stupidchicken.com> <4DFDCEF0.5060509@swipnet.se> <4DFDDA20.9010906@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309077445 1374 80.91.229.12 (26 Jun 2011 08:37:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Jun 2011 08:37:25 +0000 (UTC) Cc: 8869@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 26 10:37:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QakqH-0005tN-Ep for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jun 2011 10:37:21 +0200 Original-Received: from localhost ([::1]:60837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QakqG-0000Ri-8t for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jun 2011 04:37:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qakpz-0000Rb-ME for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2011 04:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qakpy-0007Y3-II for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2011 04:37:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qakpy-0007Xz-EN for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2011 04:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qakpx-0002Qb-TM; Sun, 26 Jun 2011 04:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2011 08:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8869-submit@debbugs.gnu.org id=B8869.13090773699272 (code B ref 8869); Sun, 26 Jun 2011 08:37:01 +0000 Original-Received: (at 8869) by debbugs.gnu.org; 26 Jun 2011 08:36:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qakp6-0002PV-Pz for submit@debbugs.gnu.org; Sun, 26 Jun 2011 04:36:08 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qakp5-0002P1-45 for 8869@debbugs.gnu.org; Sun, 26 Jun 2011 04:36:07 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 156C2E9E22 for <8869@debbugs.gnu.org>; Sun, 26 Jun 2011 10:36:00 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah1dACjuBk5V4S1kPGdsb2JhbABThEmESJ40CwEBAQE3Moh2sH6Pc4Erg3mBDASWcYsv X-IronPort-AV: E=Sophos;i="4.65,427,1304287200"; d="scan'208";a="24352049" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 26 Jun 2011 10:36:00 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id E88677FA05A; Sun, 26 Jun 2011 10:35:59 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 26 Jun 2011 04:37:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47485 Archived-At: Hi. I was not sure how the interaction between read_kbd being 0 and different= =20 types of events (keyboard, mouse vs the rest) are supposed to work. But if you are sure then that is good. Anyway we have a long time to rel= ease=20 yet :-) BTW, should the bug be closed? Jan D. Chong Yidong skrev 2011-06-26 05.40: > Jan Dj=C3=A4rv writes: > >> Adding this patch: >> >> =3D=3D=3D modified file 'src/process.c' >> --- src/process.c 2011-06-14 18:57:19 +0000 >> +++ src/process.c 2011-06-19 11:09:30 +0000 >> @@ -4484,6 +4484,11 @@ >> nfds =3D 0; >> no_avail =3D 1; >> } >> + else if (read_kbd =3D=3D 0&& detect_input_pending ()) >> + { >> + nfds =3D 1; >> + no_avail =3D 1; >> + } >> else >> { >> >> fixes the timeout issue in this report, but probably has some bad >> effect elsewhere. > > I stared at the code a long time, and I think it should have no bad > effect. I've committed a slightly tweaked version of this fix; let's > see how it plays out. Thanks for debugging.