GNU bug report logs - #6344
24.0.50; doc of menu separators

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Thu, 3 Jun 2010 17:57:01 UTC

Severity: minor

Tags: fixed

Found in version 24.0.50

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 6344 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Lars Magne Ingebrigtsen'" <larsi <at> gnus.org>
Cc: 6344 <at> debbugs.gnu.org
Subject: RE: bug#6344: 24.0.50; doc of menu separators
Date: Wed, 13 Jul 2011 15:43:58 -0700
> > 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))





This bug report was last modified 13 years and 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.