unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: Tej Chajed <tchajed@mit.edu>
Cc: 24153@debbugs.gnu.org
Subject: bug#24153: 25.1; Feature request: per-buffer cursor-color variable
Date: Thu, 04 Aug 2016 21:21:17 -0400	[thread overview]
Message-ID: <87d1lo9fjm.fsf@users.sourceforge.net> (raw)
In-Reply-To: <CAFCzHYb4ox1PRK9TWFTpvb_BaiS9sRiDSPTBHSXZbdomv0xmGg@mail.gmail.com> (Tej Chajed's message of "Thu, 4 Aug 2016 11:08:12 -0400")

Tej Chajed <tchajed@mit.edu> writes:
>
> Evil emulates a per-window cursor color in order to have the cursor
> color of the active window reflect the buffer state (eg,
> distinguishing insert and normal mode). It does so by advising
> set-window and calling set-cursor-color if necessary; this can lead to
> slowdowns when code calls set-window repeatedly (eg, through
> with-selected-window).

There's no `set-window' function, did you mean `select-window'?  I find
in the docstring for that function:

    Selections that "really count" are those causing a visible change in
    the next redisplay of WINDOW’s frame and should be always recorded.
    So if you think of running a function each time a window gets
    selected put it on ‘buffer-list-update-hook’.

Perhaps using ‘buffer-list-update-hook’ instead of advising
`select-window' would help?





  parent reply	other threads:[~2016-08-05  1:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-04 15:08 bug#24153: 25.1; Feature request: per-buffer cursor-color variable Tej Chajed
2016-08-04 17:13 ` Eli Zaretskii
2016-08-05  1:21 ` npostavs [this message]
2016-08-05  2:17   ` Tej Chajed
2016-08-05 16:37     ` martin rudalics
2016-08-06  2:10     ` Clément Pit--Claudel
2016-08-05  2:49   ` Clément Pit--Claudel
2016-08-05 16:37     ` martin rudalics
2016-08-06  1:59       ` Clément Pit--Claudel

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=87d1lo9fjm.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=24153@debbugs.gnu.org \
    --cc=tchajed@mit.edu \
    /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).