all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: how to use 'easy-menu'?
Date: Sat, 29 Nov 2014 00:03:10 +0100	[thread overview]
Message-ID: <87ppc79bdd.fsf@web.de> (raw)
In-Reply-To: 87k32fcqnr.fsf@skimble.plus.com

Sharon Kimble <boudiccas@skimble.plus.com> 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.




  parent reply	other threads:[~2014-11-28 23:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 15:04 how to use 'easy-menu'? Sharon Kimble
2014-11-28 15:43 ` Drew Adams
2014-11-29 14:11   ` Sharon Kimble
2014-11-28 23:03 ` Michael Heerdegen [this message]
2014-11-29 13:56   ` Sharon Kimble

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppc79bdd.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.