* [reinersteib+gmane@imap.cc: tool bar icons not updated according to :active condition]
@ 2006-02-02 4:15 Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2006-02-02 4:15 UTC (permalink / raw)
Could someone please look at this problem, then respond?
------- Start of forwarded message -------
Mail-Followup-To: emacs-devel@gnu.org
To: emacs-devel@gnu.org
From: Reiner Steib <reinersteib+gmane@imap.cc>
Date: Mon, 23 Jan 2006 19:59:13 +0100
Organization: Dept. of Theoretical Physics, University of Ulm
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Mail-Copies-To: nobody
Subject: tool bar icons not updated according to :active condition
Reply-To: Reiner Steib <Reiner.Steib@gmx.de>
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63
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]
,----[ <f1> 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 "<down>")
(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/
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 2+ messages in thread
* [reinersteib+gmane@imap.cc: tool bar icons not updated according to :active condition]
@ 2006-02-09 17:48 Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2006-02-09 17:48 UTC (permalink / raw)
[I sent this message two weeks ago but did not get a response.]
Could someone please look at this problem, then respond?
------- Start of forwarded message -------
Mail-Followup-To: emacs-devel@gnu.org
To: emacs-devel@gnu.org
From: Reiner Steib <reinersteib+gmane@imap.cc>
Date: Mon, 23 Jan 2006 19:59:13 +0100
Organization: Dept. of Theoretical Physics, University of Ulm
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Mail-Copies-To: nobody
Subject: tool bar icons not updated according to :active condition
Reply-To: Reiner Steib <Reiner.Steib@gmx.de>
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63
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]
,----[ <f1> 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 "<down>")
(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/
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-09 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-02 4:15 [reinersteib+gmane@imap.cc: tool bar icons not updated according to :active condition] Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2006-02-09 17:48 Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.