GNU bug report logs -
#6344
24.0.50; doc of menu separators
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6344 in the body.
You can then email your comments to 6344 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6344
; Package
emacs
.
(Thu, 03 Jun 2010 17:57:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 03 Jun 2010 17:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
C-h i, Elisp manual.
Node `Extended Menu Items' says only this about separators:
"A string starting with two or more dashes specifies a separator line;
see *Note Menu Separators::."
Node `Menu Separators' says, likewise, that this is all that is
permitted: (menu-item SEPARATOR-TYPE)
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.
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2010-05-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6344
; Package
emacs
.
(Wed, 29 Dec 2010 15:34:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6344 <at> debbugs.gnu.org (full text, mbox):
Ping.
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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6344
; Package
emacs
.
(Wed, 13 Jul 2011 22:24:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 6344 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 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?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6344
; Package
emacs
.
(Wed, 13 Jul 2011 22:45:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 6344 <at> debbugs.gnu.org (full text, mbox):
> > 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))
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 23:19:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.1, send any further explanations to
6344 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 23:19:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6344
; Package
emacs
.
(Wed, 13 Jul 2011 23:21:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 6344 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 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))
Thanks; I've now added this.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 11 Aug 2011 11:24:05 GMT)
Full text and
rfc822 format available.
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.