emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

slow redisplay after changing cursor color


From: NAKAMURA Toshikazu
Subject: slow redisplay after changing cursor color
Date: Sun, 12 Sep 2004 17:12:10 +0900
User-agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.3 Mule/5.0 (SAKAKI)

I am running CVS emacs on MS Windows and having trouble switching
between buffers with different cursor colors.

I am using a package called SKK (a Japanese kana-to-kanji conversion
program) which sets different cursor colors for several modes of
input. While set-cursor-color sets a cursor color for all buffers, SKK
sets one for each buffer where it is invoked, and you usually have
buffers with different cursor colors.

The trouble is: when one switches between buffers with different
cursor colors, emacs gets much slower in redisplaying screen than when
all buffers have the same cursor color. When one switches between
buffers successively, emacs fails to respond as quickly as one hopes.

Here are a couple of sample codes which another person kindly showed
me. The second code changes the cursor color and redisplays the screen
each time after the change. The other two either redisplay the screen
or change the cursor color but never do both at once.

(require 'cl)
(loop for i from 0 to 500 by 1
      do (identity (if (eq 1 (mod i 2))
                            "blue"
                          "red"))
      (sit-for 0))

(require 'cl)
(loop for i from 0 to 500 by 1
      do (set-cursor-color (if (eq 1 (mod i 2))
                            "blue"
                          "red"))
      (sit-for 0))

(require 'cl)
(loop for i from 0 to 1000 by 1
      do (set-cursor-color (if (eq 1 (mod i 2))
                            "blue"
                          "red"))
      )

It takes twenty seconds or even much longer (using BDF fonts greatly
affects the result) on my system to evaluate the second code while the
first can be evaluated almost instantly and it takes no more than a
few seconds to evaluate the third.

I have no released version of emacs installed on my system, but I
evaluated these code on Meadow based on emacs 21.3 and found that
evaluating the second code rather than the other two does not take a
particularly longer time.



In GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195)
 of 2004-09-01 on VAIO
configured using `configure --with-gcc (3.2)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: JPN
  locale-coding-system: cp932
  default-enable-multibyte-characters: t

Major mode: Folder

Minor modes in effect:
  delete-selection-mode: t
  show-paren-mode: t
  auto-image-file-mode: t
  encoded-kbd-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

-- 
NAKAMURA Toshikazu <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]