From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lars Magne Ingebrigtsen'" <larsi@gnus.org>
Cc: 6344@debbugs.gnu.org
Subject: bug#6344: 24.0.50; doc of menu separators
Date: Wed, 13 Jul 2011 15:43:58 -0700 [thread overview]
Message-ID: <D83030A66EA64F5898A21EFCD506C011@us.oracle.com> (raw)
In-Reply-To: <m3d3hdn7w4.fsf@quimbies.gnus.org>
> > I just spent some time myself rediscovering this.
> > Can we please fix the doc to mention this? Thx.
> >
> >> A user will naturally wonder, "Is there no way to specify
> >> :enable or :visible for a menu separator?" In fact, there
> >> is a way, simply use:
> >> (menu-item SEPARATOR-TYPE nil :visible PREDICATE)
> >> etc.
> >>
> >> In sum, the doc (spec) for separators is incomplete.
>
> Could you suggest an appropriate text for the manual?
I think all we need to say is something like this (in node `Menu Separators'):
You can use this longer form to specify keywords such as :enable and :visible
for a menu separator:
(menu-item SEPARATOR-TYPE nil . ITEM-PROPERTY-LIST)
For example:
(menu-item "--" nil :visible (boundp 'foo))
next prev parent reply other threads:[~2011-07-13 22:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 17:56 bug#6344: 24.0.50; doc of menu separators Drew Adams
2010-12-29 15:39 ` Drew Adams
2011-07-13 22:16 ` Lars Magne Ingebrigtsen
2011-07-13 22:43 ` Drew Adams [this message]
2011-07-13 23:17 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D83030A66EA64F5898A21EFCD506C011@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=6344@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.