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: tool bar icons not updated according to :active condition Date: Mon, 23 Jan 2006 19:59:13 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: 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 1138048572 23054 80.91.229.2 (23 Jan 2006 20:36:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2006 20:36:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 23 21:36: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 1F18Py-00013y-HL for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2006 21:36:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F18Sc-0005MD-W4 for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2006 15:38:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F16zb-0004pd-Dl for emacs-devel@gnu.org; Mon, 23 Jan 2006 14:04:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F16zX-0004lK-B1 for emacs-devel@gnu.org; Mon, 23 Jan 2006 14:04:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F16zX-0004ku-1a for emacs-devel@gnu.org; Mon, 23 Jan 2006 14:04:39 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1F174J-00055J-84 for emacs-devel@gnu.org; Mon, 23 Jan 2006 14:09:35 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F16wi-00026c-PJ for emacs-devel@gnu.org; Mon, 23 Jan 2006 20:01:44 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jan 2006 20:01:44 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jan 2006 20:01:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od 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:49454 Archived-At: Hi, `gnus-group-mode-map' contains the following menu entry (see `gnus-group-make-menu-bar'): (easy-menu-define gnus-group-reading-menu gnus-group-mode-map "" `("Group" [...] ["Describe" gnus-group-describe-group :active (gnus-group-group-name) ...] I.e. this menu item should be inactive[1] if the point isn't on a group line (e.g. on non-group lines when using topics mode [2]). In the menu, this works correctly, i.e. the menu item is disabled (probably because the menu is updated when clicking on "Group"). 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?). Bye, Reiner. [1] ,----[ f gnus-group-group-name RET ] | gnus-group-group-name is a compiled Lisp function in `gnus-group.el'. | (gnus-group-group-name) | | Get the name of the newsgroup on the current line. `---- [2] ,---- | [ Gnus -- 6456 ] | [ misc -- 11 ] | 1: nnml:test | 10: nndraft:drafts | [...] `---- [3] Tested with... (global-set-key (kbd "") (lambda (&optional arg) (interactive) (or arg (setq arg 1)) (next-line arg) (redraw-frame (selected-frame)))) -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/