From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: how to use 'easy-menu'? Date: Sat, 29 Nov 2014 00:03:10 +0100 Message-ID: <87ppc79bdd.fsf@web.de> References: <87k32fcqnr.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1417215835 6002 80.91.229.3 (28 Nov 2014 23:03:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2014 23:03:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 00:03:49 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 1XuUZp-0002uX-EB for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 00:03:49 +0100 Original-Received: from localhost ([::1]:46273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuUZp-0004De-0v for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Nov 2014 18:03:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuUZY-0004DN-Kq for help-gnu-emacs@gnu.org; Fri, 28 Nov 2014 18:03:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuUZS-0007mW-E6 for help-gnu-emacs@gnu.org; Fri, 28 Nov 2014 18:03:32 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:50896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuUZS-0007mK-70 for help-gnu-emacs@gnu.org; Fri, 28 Nov 2014 18:03:26 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XuUZP-0002iY-Vb for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 00:03:24 +0100 Original-Received: from ip-90-187-66-115.web.vodafone.de ([90.187.66.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 00:03:23 +0100 Original-Received: from michael_heerdegen by ip-90-187-66-115.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 00:03:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-187-66-115.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:ACv/gJTASxCrXidEIINZZpLo28o= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:101284 Archived-At: 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 > > ╭──── > │easy-menu-add-item: Wrong number of arguments: (2 . 2), 3 > ╰──── 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.