From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: tool bar icons not updated according to :active condition Date: Wed, 08 Mar 2006 15:36:26 +0100 Message-ID: References: <873bi8ok5h.fsf@stupidchicken.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141828692 32062 80.91.229.2 (8 Mar 2006 14:38:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2006 14:38:12 +0000 (UTC) Cc: Chong Yidong , ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 08 15:38:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGzn6-0007WT-1W for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 15:37:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGzn5-0001LD-1k for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 09:37:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGzmV-0001CI-4W for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:36:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGzmS-0000vz-Eq for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:36:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGzmR-0000v4-UI for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:36:48 -0500 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FGzpI-00041e-QJ for emacs-devel@gnu.org; Wed, 08 Mar 2006 09:39:45 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k28EaRHd019026; Wed, 8 Mar 2006 15:36:27 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 10E09113F9; Wed, 8 Mar 2006 15:36:26 +0100 (CET) Original-To: storm@cua.dk (Kim F. Storm) Mail-Followup-To: storm@cua.dk (Kim F. Storm), emacs-devel@gnu.org, ding@gnus.org, Chong Yidong X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T; w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv, vbL^XF1nIp\:F=$Ei2o&mEe:%N~, :3]vtQ~s9u$9izmX$IF@VgGl7/, ^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-PacNet-SG-Metrics: gemini 1358; Body=4 Fuz1=4 Fuz2=4 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:51365 gmane.emacs.gnus.general:62188 Archived-At: On Sat, Mar 04 2006, Kim F. Storm wrote: > Reiner Steib writes: [...] >> The tool bar icons are not updated according to the :active condition. >> I'm including the original report below. > > I wonder if you could use the `point-entered' and `point-left' hooks > on the relevant intervals/overlays in the Gnus summary buffer to > handle this specific case? > > They should run a hook which calls force-window-update if tool-bar > mode is enabled. Thanks for your suggestion. I just checked in such a fix in Emacs CVS (and Gnus v5-10 branch). Feel free to improve it: I'm not sure if my approach is the most simple one. As Emacs 21 doesn't have `force-window-update', I used `redraw-frame' there and set the default value of `gnus-group-update-tool-bar' to nil in Emacs 21. Is there a better way for Emacs 21? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/