From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: how to use 'easy-menu'? Date: Sat, 29 Nov 2014 13:56:55 +0000 Message-ID: <87egsmt8ig.fsf@skimble.plus.com> References: <87k32fcqnr.fsf@skimble.plus.com> <87ppc79bdd.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1417269452 6239 80.91.229.3 (29 Nov 2014 13:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 13:57:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 14:57:25 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 1XuiWb-00018l-0i for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 14:57:25 +0100 Original-Received: from localhost ([::1]:47687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuiWa-0002CY-Kd for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 08:57:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuiWM-0001iv-Ll for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 08:57:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuiWH-0006ZO-IM for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 08:57:10 -0500 Original-Received: from avasout04.plus.net ([212.159.14.19]:32820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuiWH-0006ZI-CM for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 08:57:05 -0500 Original-Received: from london ([46.208.49.40]) by avasout04 with smtp id MRx11p0030s20Ky01Rx2b7; Sat, 29 Nov 2014 13:57:04 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=ZuVjKrLG c=1 sm=1 tr=0 a=TFhflJmy72J+D2HLcJUc6g==:117 a=TFhflJmy72J+D2HLcJUc6g==:17 a=0Bzu9jTXAAAA:8 a=AesOsg4oJXAA:10 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=UWYNLaUOSfI3SmZt3fsA:9 a=6vHogQB8kPwL06LD:21 a=uvr_h-BdkX6KAtrh:21 a=QEXdDO2ut3YA:10 a=4SDXWDzTW8JrkDKkSuQA:9 X-AUTH: skimble:2500 In-Reply-To: <87ppc79bdd.fsf@web.de> (Michael Heerdegen's message of "Sat, 29 Nov 2014 00:03:10 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.19 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:101291 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Heerdegen writes: > Sharon Kimble writes: > >> #+BEGIN_SRC emacs-lisp >> (easy-menu-add-item ;; console >> nil nil >> (easy-menu-create-menu >> "Mine" >> '("Misc" ;; submenu >> ["Wrap Text" auto-fill-mode] >> ["List packages for update" paradox-list-packages] >> ["Get colours" list-colors-display] >> ["Delete this file" delete-this-file] >> ["? stack-overflow" howdoi-query] >> ["shell" shell] >> ["password-vault" password-vault] >> ["Start org-mode" org-mode] >> ["insert drawer" org-insert-property-drawer] >> ["new buffer" xah-new-empty-buffer] >> ["w3m open new site" w3m-open-site] >> ["w3m buffer to org-style" w3m-get-buffer-with-org-style] >> ["new latex" fc-insert-latex-skeleton] >> ["cleanup buffer" buffer-cleanup] >> ["toggle page lines" linum-mode] >> ) >> '("Clock" ;; submenu >> ["In" org-clock-in] >> ["Out" org-clock-out] >> ["Resolve" org-resolve-clocks] >> ["Goto" org-clock-goto] >> ) >> )) >> #+END_SRC >> > >> =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> =E2=94=82easy-menu-add-item: Wrong number of arguments: (2 . 2), 3 >> =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > Is that really the correct error message? Because when I try it, > easy-menu-create-menu raises the error. Which is expected, because > easy-menu-create-menu only accepts two args, but you call it with 3. > > Michael. Thanks Michael, and that is what it said. From much investigation this morning I've found that it was objecting to "nil nil", remove that and its hunky-dory again. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.4.1.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUedCoAAoJEDaBgBkK+INbtfoQALeCerhKOtkzgWgRXWiIot+6 ITRZxxNEdJaa5jnXkqlBgKenqs27XsVFFTaLg9jdpLUMGzm2FHcCaENJ2p7e+jGV oZxsOts7pO8a7HpJzr95eX02biNqPEIXnVf6P4IUHvI+UgFUesMU3cuRIK1mtc42 ojgQtACs3xktmFq75qBkrLKRBV4QCXsRbHy86SMP9yh4cwhX54wW4WlnroUA2uBs TP4X037EUbXcSqBquBfbCBaTxwRFHvZ9JJAbmoV7DPZJaJF7X64b97DN36lvqx+v hZR/Es2CeSh+rGqnw65Qjb+SZ1KlG2XFLFefcE0cbdNzRyY4gCqq+CUfv40IbWmb Wv5iKcBukTCGSlBwaCcOd91EYTgjQEVQdAcWIR7u1N4c7TPyQFU8gU6hmiKl1h8o k/TvnS8Lfua5O7u38lsw3Bh8DPLqaQU6pFnE5nN/b7ly7ZR2PSv5KrUBgwb/ZSiO AJLxppYGjXxuM45up3Y/S4te28KT7yBtafRCWcZ2AAe32SgJFn5Kls5gGQcukzIP MxRTKhBaT/af/lfoymYXPxPPwSYw4vDi3ji1zQVLx8rQX3uM+Q3t23weCLjUNj7o FipBdC9lzg8v6K2SyXedCsAolxh0TEXq/UJEKA3SlksA3zG4aMlc1XHqf1qnCrPQ 9I8yuIot9oXjgS3dDbHl =6lik -----END PGP SIGNATURE----- --=-=-=--