* Tool-bar separators and :visible etc
@ 2012-02-05 3:13 Glenn Morris
2012-02-06 1:09 ` Glenn Morris
2012-02-06 14:29 ` Stefan Monnier
0 siblings, 2 replies; 3+ messages in thread
From: Glenn Morris @ 2012-02-05 3:13 UTC (permalink / raw)
To: emacs-devel
I'm trying to document the NEWS entry: "Tool-bars can display separators."
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tool-bar separators and :visible etc
2012-02-05 3:13 Tool-bar separators and :visible etc Glenn Morris
@ 2012-02-06 1:09 ` Glenn Morris
2012-02-06 14:29 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-02-06 1:09 UTC (permalink / raw)
To: emacs-devel
Glenn Morris wrote:
> So, it seems that tool-bar separator items do not support specifiers
> like :visible, :help, etc. Is that correct?
From looking at parse_tool_bar_item, it looks like that is correct.
Only plain "--" is supported.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tool-bar separators and :visible etc
2012-02-05 3:13 Tool-bar separators and :visible etc Glenn Morris
2012-02-06 1:09 ` Glenn Morris
@ 2012-02-06 14:29 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2012-02-06 14:29 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-06 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-05 3:13 Tool-bar separators and :visible etc Glenn Morris
2012-02-06 1:09 ` Glenn Morris
2012-02-06 14:29 ` Stefan Monnier
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.