From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs.app dev]: ghost cursor problem is still there Date: Thu, 21 Aug 2008 12:17:17 -0400 Message-ID: References: <5f089c510807191428n349bdf55gebdff2e0ca668db7@mail.gmail.com> <7C93A2A7-54FD-43A9-BA1B-0B8502FFA5C6@gmail.com> <1AFEFF71-2AEA-4282-915E-B03050E98592@gmail.com> <8ED46157-6210-4767-A5AE-0DDE4C9DB1B3@gmail.com> <90AB958C-083A-4DA6-86B6-C63DB82776CE@gmail.com> <5742BBB5-9A2C-4E44-846D-AF4A46588DB2@gmail.com> <18605.6750.622585.114268@kahikatea.snap.net.nz> <38ADD3BB-2314-4173-90A4-5D4AD8D5BA61@gmail.com> <4D169424-D572-4383-B3F2-E3A3475D9A47@gmail.com> <5B8E9D48-9C38-414F-A125-94AB373646C5@gmail.com> <1CF99C70-4389-4A61-8E38-4B41B176F00A@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219335479 32265 80.91.229.12 (21 Aug 2008 16:17:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 16:17:59 +0000 (UTC) Cc: "emacs.app dev list" , Nick Roberts , Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 21 18:18:51 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWCrz-0006Qj-4K for ged-emacs-devel@m.gmane.org; Thu, 21 Aug 2008 18:18:43 +0200 Original-Received: from localhost ([127.0.0.1]:40973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWCr1-0005zv-LR for ged-emacs-devel@m.gmane.org; Thu, 21 Aug 2008 12:17:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWCqx-0005zp-KU for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:17:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWCqw-0005zd-74 for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:17:39 -0400 Original-Received: from [199.232.76.173] (port=44591 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWCqw-0005za-4V for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:17:38 -0400 Original-Received: from rn-out-0910.google.com ([64.233.170.190]:8471) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWCqv-0003TM-V6 for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:17:38 -0400 Original-Received: by rn-out-0910.google.com with SMTP id k32so53314rnd.7 for ; Thu, 21 Aug 2008 09:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=p/UOX54INDw/mpgujwXHfmukB2wIJA+Xkd3iD39r3XU=; b=waMEgEJG5alraHhW7jmf0e7AHtPGByvt02Za/Fd7uKHCsTh3KbRwN+1y8yFHrBjaFk HSbHZQGOymvhag6fwfr75iRAXPxzs4h1MdPlCSqdHoihZuaRTNDyx/HFD63lBU+rWdHX XyOX4yuiDn/dpweeSetZDmM2KWkP2LmsbMttQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Q7JrtaBTG1SbZOHqgl6vcYiXlnnhLYVeP6q8BI4ShGqkoNFVIxVylENPo0l7EppcEX EgKYpAPApLaGEBJ5ZN2YZPHEiOTK6D6rh/T9XlG+8z0Hq2vR8quYd+6l8ZORWtYh0sVz p5c2gd2qoLVmA+9fZ9eqas09MxwF/dUjrQ4+c= Original-Received: by 10.114.201.1 with SMTP id y1mr1632476waf.216.1219335456933; Thu, 21 Aug 2008 09:17:36 -0700 (PDT) Original-Received: from ?10.0.1.200? ( [72.169.150.82]) by mx.google.com with ESMTPS id 6sm123535yxg.6.2008.08.21.09.17.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Aug 2008 09:17:36 -0700 (PDT) In-Reply-To: <1CF99C70-4389-4A61-8E38-4B41B176F00A@gmail.com> X-Mailer: Apple Mail (2.926) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102782 Archived-At: On Aug 21, 2008, at 11:51 AM, David Reitter wrote: > On 21 Aug 2008, at 09:16, Adrian Robert wrote: >>> >>> I can. After startup, select a row of text, click onto another >>> application, then back. I don't know if this was there before the >>> patch. >> >> I checked, it was not. In addition the patch introduces the >> following bug: the cursor is not changed to hollow box from block >> when focus on the frame is taken away. > > This turned out to be the same, simple to fix bug. OK, this fixes the bug for switching between two frames. However w/ only one frame active, clicking to another app does not switch to a hollow box. In addition, a ghost cursor can be generated if the cursor is on some text, then you click at the bottom of the buffer after focus is given. (But the same recipe fails for multiple frames, even when switching to another app instead of the other frame.) I believe these are enough clues to indicate the ghost cursor problem relates to a suite of focus-handling changes in core emacs that came in between rc2a and rc3, but were never fully sync'ed up with from the NS side. Seiji Zenitani also mentioned something about this a while back. I will try to allocate a block of time to look at it this this weekend, but if someone else can take a look / a crack at it before then, I (and I'm sure other users) would be grateful. The relevant functions (maybe best to look at w32term.c, not xterm) are x_new_focus_frame, x_detect_focus_change et al., while under NS there are currently -windowDidBecomeKey, -windowDidResignKey. -Adrian