emacs-devel
[Top][All Lists]
Advanced

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

Re: tool bar icons not updated according to :active condition


From: Reiner Steib
Subject: Re: tool bar icons not updated according to :active condition
Date: Sun, 05 Mar 2006 15:51:35 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Sun, Mar 05 2006, Richard Stallman wrote:

>     I can't reproduce this problem anymore.  IOW: Updating the tool bar
>     using `force-window-update' via `run-with-idle-timer' works correctly.
>
> In that case, could you please delete the item from FOR-RELEASE?

I think there is a misunderstanding here: The initial problem (tool
bar icons not updated according to :active condition) still exists.

[ As already pointed out in a previous message, I agree with Chong
  Yidong that this problem should not block the release.  (This bug
  has already been there in Emacs 21.1 (and version 5.9 of Gnus
  bundled with it) and I don't recall any complaints about it.) ]

As a workaround for Emacs not updating the icon according to the :active
condition automatically, I added a `redraw-frame' call inside
`run-with-idle-timer'.  Kim suggested to use `force-window-update'
instead which didn't appear to work for me.  But `force-window-update'
does work as good as `redraw-frame' in the workaround.

What I have in the relevant mode (gnus-group-mode) now is:

      (add-to-list (make-local-variable 'post-command-hook)
                   'gnus-group-redraw-check)

(defvar gnus-group-redraw-when-idle 2
  "When non-nil, redraw the Group buffer frame when idle.
Internal variable.")

(defun gnus-group-redraw-check ()
  "Check if we need to redraw the frame."
  (when gnus-group-redraw-when-idle
    (run-with-idle-timer gnus-group-redraw-when-idle
                         nil 'force-window-update)))

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

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