From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: tool bar icons not updated according to :active condition Date: Sat, 25 Feb 2006 10:31:53 +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 1140868560 6038 80.91.229.2 (25 Feb 2006 11:56:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2006 11:56:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 25 12:55:54 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 1FCy1f-0007ip-Rh for ged-emacs-devel@m.gmane.org; Sat, 25 Feb 2006 12:55:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCy1h-0007Wg-BU for ged-emacs-devel@m.gmane.org; Sat, 25 Feb 2006 06:55:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FCy08-0003fD-SV for emacs-devel@gnu.org; Sat, 25 Feb 2006 06:54:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FCy06-0003Z2-MX for emacs-devel@gnu.org; Sat, 25 Feb 2006 06:54:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCy06-0003XU-19 for emacs-devel@gnu.org; Sat, 25 Feb 2006 06:54:14 -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 1FCy0O-0004Yr-Eu for emacs-devel@gnu.org; Sat, 25 Feb 2006 06:54:32 -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 k1PBrwA9021276; Sat, 25 Feb 2006 12:53:59 +0100 (MET) Original-Received: from viandante.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with SMTP id 6D9B711029; Sat, 25 Feb 2006 12:53:55 +0100 (CET) Original-Received: (nullmailer pid 11339 invoked by uid 170); Sat, 25 Feb 2006 09:31:54 -0000 Original-To: Chong Yidong Mail-Followup-To: Chong Yidong , emacs-devel@gnu.org X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm In-Reply-To: <873bi8ok5h.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 24 Feb 2006 10:23:38 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-Servercave-Metrics: gemini 1183; Body=2 Fuz1=2 Fuz2=2 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:50954 Archived-At: On Fri, Feb 24 2006, Chong Yidong wrote: >> In `gnus-group-make-tool-bar' the describe-group entry is also added >> to the tool bar (icon: etc/images/gnus/describe-group.xpm): >> >> (tool-bar-add-item-from-menu >> 'gnus-group-describe-group "describe-group" gnus-group-mode-map) >> >> But after moving up/down in the group buffer (C-p/C-n), the icon is >> not updated (enabled/disabled) when changing from a group to a topic >> line and vice versa. >> >> After `C-l' (or after `redraw-frame' [3]), the correct icon is >> displayed. A workaround could be to redraw the frame after every >> point-motion (is there a after-point-motion-hook?). > > You could use post-command-hook. The following code updates the frame and the tool bar, but I think it is too expensive (and maybe irritating for the user) because it affects the whole frame, not only the tool bar. Is it possible to limit redrawing to the tool bar? (defun rs-redraw () (redraw-frame (selected-frame))) (with-current-buffer gnus-group-buffer (add-to-list (make-local-variable 'post-command-hook) 'rs-redraw)) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/