From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: using easy-menu-add-item to add a separator before item Date: Sun, 11 May 2014 12:39:00 -0700 (PDT) Message-ID: <9877e245-c03e-4789-be9f-dcef66cf3103@default> References: <20140511120656.69cbf8ed@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1399837177 6303 80.91.229.3 (11 May 2014 19:39:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 19:39:37 +0000 (UTC) To: Joe Riel , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 11 21:39:30 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WjZas-0005h2-7a for geh-help-gnu-emacs@m.gmane.org; Sun, 11 May 2014 21:39:30 +0200 Original-Received: from localhost ([::1]:34146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjZar-0007Lp-SZ for geh-help-gnu-emacs@m.gmane.org; Sun, 11 May 2014 15:39:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjZaY-0007Ld-JM for help-gnu-emacs@gnu.org; Sun, 11 May 2014 15:39:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjZaP-00079F-TK for help-gnu-emacs@gnu.org; Sun, 11 May 2014 15:39:10 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:26018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjZaP-000797-L2 for help-gnu-emacs@gnu.org; Sun, 11 May 2014 15:39:01 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s4BJcxRq031558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 May 2014 19:39:00 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4BJcxYu009137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 11 May 2014 19:38:59 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s4BJcwUq009127; Sun, 11 May 2014 19:38:58 GMT In-Reply-To: <20140511120656.69cbf8ed@gauss> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97605 Archived-At: > I have not been able to figure out how to get easy-menu-add-item > to add a separator before an added item. >=20 > The following works (no separator). >=20 > (easy-menu-add-item nil '("Modelica") ["Check syntax" modelica-check- > syntax-buffer t])) >=20 > I'd prefer to add a separator before. I tried the following >=20 > (easy-menu-add-item nil '("Modelica") "-") > (easy-menu-add-item nil '("Modelica") ["Check syntax" modelica-check- > syntax-buffer t]) >=20 > but it gives the same result. How can I do this? I do it this way: (easy-menu-add-item facemenu-menu () ["---" nil] 'dp)