GNU bug report logs -
#10251
24.0.92; easymenu: Document how to conditionalize display of separators.
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Thu, 8 Dec 2011 19:21:02 UTC
Severity: minor
Found in version 24.0.92
Done: Lars 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 10251 in the body.
You can then email your comments to 10251 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10251
; Package
emacs
.
(Thu, 08 Dec 2011 19:21:02 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, 08 Dec 2011 19:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Consider a use case such as this. You have a mouse menu with several
groups of items, separated by separator lines (e.g. "--"). One or more
of these groups should only be shown under certain conditions
(e.g. (featurep 'foo)). You thus want to give a :visible condition to
not only the menu items in such a group but also to the separator that
precedes (or follows) the group.
In easymenu, the only documented case for a separator is a string of
separator chars, e.g. "--", not a vector entry that contains keywords
such as :visible.
You can use ["--" 'ignore :visible (my-condition)] to do the job. But
this possibility is likely not to be obvious to everyone. So please
document it. (BTW, is there some other way to accomplish this?)
See also http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6344#21, which was
a similar bug (fixed).
In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-06 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.6) --no-opt --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-2.10.1/include --ldflags
-LD:/devel/emacs/libs/gnutls-2.10.1/lib'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10251
; Package
emacs
.
(Mon, 17 Sep 2012 00:23:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10251 <at> debbugs.gnu.org (full text, mbox):
ping
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10251
; Package
emacs
.
(Sun, 09 Feb 2014 05:44:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 10251 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> You can use ["--" 'ignore :visible (my-condition)] to do the job. But
> this possibility is likely not to be obvious to everyone. So please
> document it. (BTW, is there some other way to accomplish this?)
This seems to be covered in the "Menu Separators" node.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug closed, send any further explanations to
10251 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 09 Feb 2014 05:45:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10251
; Package
emacs
.
(Tue, 11 Feb 2014 15:06:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 10251 <at> debbugs.gnu.org (full text, mbox):
> > You can use ["--" 'ignore :visible (my-condition)] to do the job.
> > But this possibility is likely not to be obvious to everyone. So
> > please document it. (BTW, is there some other way to accomplish this?)
>
> This seems to be covered in the "Menu Separators" node.
No, it is not. This is about easy-menu, which is a different beast.
It is not at all obvious that you can do this with easy-menu.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 12 Mar 2014 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.