From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#10251: 24.0.92; easymenu: Document how to conditionalize display of separators. Date: Thu, 8 Dec 2011 11:19:37 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323372024 8982 80.91.229.12 (8 Dec 2011 19:20:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2011 19:20:24 +0000 (UTC) To: 10251@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 08 20:20:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RYjVx-00049l-Pz for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Dec 2011 20:20:18 +0100 Original-Received: from localhost ([::1]:43119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjVx-0008VG-02 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Dec 2011 14:20:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjVt-0008V0-Eq for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:20:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYjVs-0003m3-8Q for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:20:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjVs-0003lx-5V for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:20:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RYjWg-00069n-Il for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2011 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10251 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.132337204623642 (code B ref -1); Thu, 08 Dec 2011 19:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2011 19:20:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYjWP-00069G-DG for submit@debbugs.gnu.org; Thu, 08 Dec 2011 14:20:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RYjWN-000698-1h for submit@debbugs.gnu.org; Thu, 08 Dec 2011 14:20:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYjVX-0003gF-8C for submit@debbugs.gnu.org; Thu, 08 Dec 2011 14:19:52 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:40704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjVX-0003gB-6k for submit@debbugs.gnu.org; Thu, 08 Dec 2011 14:19:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjVW-0008QO-1W for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:19:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYjVU-0003fk-T0 for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:19:49 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:46679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjVU-0003fQ-Nq for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2011 14:19:48 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pB8JJjcX017082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Dec 2011 19:19:45 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pB8JJiIJ006700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 Dec 2011 19:19:44 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pB8JJdcO011865 for ; Thu, 8 Dec 2011 13:19:39 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 08 Dec 2011 11:19:38 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acy13lOsn6li2GaEQL+hZ22D/rlzoA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4EE10DD2.0002,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 08 Dec 2011 14:21:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54820 Archived-At: 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'