From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.devel Subject: Re: input-pending-p Date: Sun, 9 Jun 2002 10:16:33 -0600 Sender: emacs-devel-admin@gnu.org Message-ID: <200206091616.g59GGXJ12845@Rednose.Rhubarb> References: <200203070326.g273Q6A02247@Rednose.Rhubarb> <200203102132.g2ALWnX04173@wijiji.santafe.edu> <200205272302.g4RN2Bm06859@Rednose.Rhubarb> <5xofepbd33.fsf@kfs2.cua.dk> Reply-To: dajo@a-vip.com NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1023639341 19554 127.0.0.1 (9 Jun 2002 16:15:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Jun 2002 16:15:41 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17H5Lx-00055H-00 for ; Sun, 09 Jun 2002 18:15:41 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17H5iN-0005eL-00 for ; Sun, 09 Jun 2002 18:38:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17H5LQ-00009O-00; Sun, 09 Jun 2002 12:15:08 -0400 Original-Received: from dajo.ppp.frii.com ([216.17.133.250] helo=Rednose.Rhubarb) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17H5KB-00006Q-00; Sun, 09 Jun 2002 12:13:52 -0400 Original-Received: (from dajo@localhost) by Rednose.Rhubarb (8.11.6/8.11.6) id g59GGXJ12845; Sun, 9 Jun 2002 10:16:33 -0600 Original-To: storm@cua.dk In-Reply-To: <5xofepbd33.fsf@kfs2.cua.dk> (storm@cua.dk) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4669 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4669 Hello Kim, Thank you for your suggestion. Unfortunately it does not solve the problem. RMS has sent me a patch for keyboard.c alternative to mine which appears to work. I assume that you can access this patch via some fsf-internal mechanism. dajo > Hi David, > > >From your analysis, it does indeed seem like excessive FocusIn events > are confusing emacs. However, your patch is a bit radical (as it > effectively ignores those events). > > Please try the following patch to see if it solves the problem. This > is from the latest CVS version, but should apply directly to 21.2. > Remember to undo your own patch before testing. > > Index: xterm.c > =================================================================== > RCS file: /cvs/emacs/src/xterm.c,v > retrieving revision 1.735 > diff -c -r1.735 xterm.c > *** xterm.c 28 May 2002 20:27:59 -0000 1.735 > --- xterm.c 5 Jun 2002 20:53:20 -0000 > *************** > *** 10784,10790 **** > f = x_any_window_to_frame (dpyinfo, event.xfocus.window); > if (event.xfocus.detail != NotifyPointer) > dpyinfo->x_focus_event_frame = f; > ! if (f) > { > x_new_focus_frame (dpyinfo, f); > > --- 10784,10790 ---- > f = x_any_window_to_frame (dpyinfo, event.xfocus.window); > if (event.xfocus.detail != NotifyPointer) > dpyinfo->x_focus_event_frame = f; > ! if (f && f != dpyinfo->x_focus_frame) > { > x_new_focus_frame (dpyinfo, f); > > ++kfs