[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tool-bar separators and :visible etc
From: |
Stefan Monnier |
Subject: |
Re: Tool-bar separators and :visible etc |
Date: |
Mon, 06 Feb 2012 09:29:48 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> This works (after hiding and showing the tool-bar):
> (define-key-after tool-bar-map [sep1] '("--"))
> so does this:
> (define-key-after tool-bar-map [sep1] '(menu-item "--"))
> This doesn't:
> (define-key-after tool-bar-map [sep1] '(menu-item "--" nil :visible t))
> although it does in a menu-bar:
> (define-key-after menu-bar-help-menu [sep1] '(menu-item "--" nil :visible t))
> So, it seems that tool-bar separator items do not support specifiers
> like :visible, :help, etc. Is that correct?
I think that's right, but the discrepancy with men-bar items points to
the fact that we need to better design&document what we mean by
a separator and how to distinguish it from an entry whose name is "--".
Stefan