From: Juri Linkov <juri@jurta.org>
Cc: hniksic@xemacs.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Setting cursor-type does not trigger redisplay of cursor
Date: Wed, 09 Nov 2005 19:59:33 +0200 [thread overview]
Message-ID: <877jbhaeil.fsf@jurta.org> (raw)
In-Reply-To: <m3y83xiz1q.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Wed, 09 Nov 2005 17:08:49 +0100")
> 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 <insert> - 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 <insert>):
`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/
next prev parent reply other threads:[~2005-11-09 17:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87mzkpbs9v.fsf@xemacs.org>
[not found] ` <874q6wn313.fsf@jurta.org>
[not found] ` <E1EXFq5-0001EP-AH@fencepost.gnu.org>
[not found] ` <877jbrdtfc.fsf@xemacs.org>
[not found] ` <E1EXfUF-0007cr-DS@fencepost.gnu.org>
[not found] ` <87vez91uc7.fsf@xemacs.org>
2005-11-05 23:43 ` Setting cursor-type does not trigger redisplay of cursor Richard M. Stallman
2005-11-09 16:08 ` Kim F. Storm
2005-11-09 17:59 ` Juri Linkov [this message]
2005-11-10 2:09 ` Richard M. Stallman
2005-11-10 8:30 ` Kim F. Storm
2005-11-10 20:49 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877jbhaeil.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=hniksic@xemacs.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).