help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use 'easy-menu'?


From: Michael Heerdegen
Subject: Re: how to use 'easy-menu'?
Date: Sat, 29 Nov 2014 00:03:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Sharon Kimble <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]