From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Setting cursor-type does not trigger redisplay of cursor Date: Wed, 09 Nov 2005 19:59:33 +0200 Organization: JURTA Message-ID: <877jbhaeil.fsf@jurta.org> References: <87mzkpbs9v.fsf@xemacs.org> <874q6wn313.fsf@jurta.org> <877jbrdtfc.fsf@xemacs.org> <87vez91uc7.fsf@xemacs.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131560259 3972 80.91.229.2 (9 Nov 2005 18:17:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2005 18:17:39 +0000 (UTC) Cc: hniksic@xemacs.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 09 19:17:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EZuOf-0003YJ-A8 for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2005 19:10:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZuOe-0008O7-6S for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2005 13:10:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EZuO1-0008DR-9z for emacs-devel@gnu.org; Wed, 09 Nov 2005 13:09:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EZuNz-0008Cg-Md for emacs-devel@gnu.org; Wed, 09 Nov 2005 13:09:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZuNz-0008CY-Ey for emacs-devel@gnu.org; Wed, 09 Nov 2005 13:09:27 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EZuNr-00009c-DU; Wed, 09 Nov 2005 13:09:19 -0500 Original-Received: from mail.neti.ee (80-235-36-245-dsl.mus.estpak.ee [80.235.36.245]) by Relayhost1.neti.ee (Postfix) with ESMTP id 4D1A21FB3; Wed, 9 Nov 2005 20:09:29 +0200 (EET) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Wed, 09 Nov 2005 17:08:49 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:45640 Archived-At: > I looked at the bug, and the reason why it works for right-left and > down movement, but not for up movement (sometimes) is the call to > sit-for in line-move Please also note that cursor updating doesn't work not only for up-down movement, but also in other cases like switching buffers. Here is one test case: `M-x cua-mode RET' `M-: (setq cua-enable-cursor-indications t) RET' Initially the cursor is black in the *scratch* buffer. Type - cursor is yellow in the *scratch* buffer (GOOD) `C-h i' - cursor is green in the *Info* buffer (GOOD) `q' - cursor remains green in the *scratch* buffer (WRONG) `C-l' - cursor is updated to yellow in the *scratch* buffer `M-: (add-to-list 'same-window-buffer-names "*Help*") RET' Now with the yellow cursor in the *scratch* buffer (due to ): `C-h f car RET' - cursor is yellow in the *Help* buffer (WRONG) `C-l' - cursor is updated to green in the *Help* buffer > The simple "fix" is to explicitly call force-window-update when > changing the cursor type in the post-command-hook. IMO, that > work-around is ok for 22.1 This fix works for up-down movements, but after cursor movements, the delay before the cursor changes its shape on the new location is too noticeable. -- Juri Linkov http://www.jurta.org/emacs/