From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: More enhancements to fringe bitmaps. Date: Tue, 17 Feb 2004 12:13:16 +0900 Organization: Faculty of Science, Chiba University Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040215.003102.212295326.mituharu@math.s.chiba-u.ac.jp> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1076987803 12814 80.91.224.253 (17 Feb 2004 03:16:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2004 03:16:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Feb 17 04:16:33 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Asvir-0007S9-00 for ; Tue, 17 Feb 2004 04:16:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Asviq-0007eW-00 for ; Tue, 17 Feb 2004 04:16:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AsvgN-0004fd-0x for emacs-devel@quimby.gnus.org; Mon, 16 Feb 2004 22:13:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AsvgF-0004fI-UO for emacs-devel@gnu.org; Mon, 16 Feb 2004 22:13:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Asvfj-0004H5-OE for emacs-devel@gnu.org; Mon, 16 Feb 2004 22:13:51 -0500 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Asvfi-0004G0-QQ for emacs-devel@gnu.org; Mon, 16 Feb 2004 22:13:19 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 52B7C1A6376; Tue, 17 Feb 2004 12:13:16 +0900 (JST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20008 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20008 >>>>> On 16 Feb 2004 14:22:28 +0100, storm@cua.dk (Kim F. Storm) said: > Maybe the event/command loop does a select-window at some point > which isn't restored before redisplay, and so it gets confused. Hmm, if that is the case, I think the cursor at non-fringe area would also be affected. > Is this somehow related to where the mouse is on the screen; it > could be some mouse related events which confuses the Carbon event > loop. I could not observe any difference by the mouse position. > What happens if you set cursor-in-non-selected-windows to nil? It just erases the hollow cursors in non-selected windows, and the selected window still displays the hollow one. Inspecting by a debugger, I found that glyph->type is 2 (IMAGE_GLYPH) at the fringe position in question. So the function get_window_cursor_type determines the cursor type as HOLLOW_BOX_CURSOR. /* Use normal cursor if not blinked off. */ if (!w->cursor_off_p) { if (glyph->type == IMAGE_GLYPH) { if (cursor_type == FILLED_BOX_CURSOR) cursor_type = HOLLOW_BOX_CURSOR; } return cursor_type; } I guess glyph->type at the fringe position is not properly initialized in Carbon Emacs. But this does not explain why all the cursors disappear when a window is split. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp