all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Submenu with easy-menu-define yielding invalid menu item
@ 2022-10-19  1:44 Heime via Users list for the GNU Emacs text editor
  2022-10-19  2:49 ` Emanuel Berg
  2022-10-19 11:51 ` Sharon Kimble
  0 siblings, 2 replies; 7+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2022-10-19  1:44 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I am making menus with "easy-menu-define". But I am having difficulty calling the submenu "dingo-outline-subm"
from "easy-menu-define". Would appreciate some assistance figuring out the problem.

The error captured is

Lisp error: (error "Invalid menu item in easymenu")

---------------------

;; Make submenu outline

(defvar dingo-outline-subm

'("Outline"

["Hide Direct Body" outline-hide-entry :help "Hide Entry"]

["Expose Direct Body" outline-show-entry :help "Show Entry"]

["Expose Headings" outline-hide-body :help "Hide Body"])

"Submenu giving outline capability.")

;; Make top menu dingo

(defun dingo-easym ()

"Dingo easy menu."

(easy-menu-define dingo-menu global-map "Dingo"

'("Dingo"

dingo-outline-subm

["Hide Entry" outline-hide-entry t]

["Show Entry" outline-show-entry t]

["Hide Body" outline-hide-body t])) )

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-19 21:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19  1:44 Submenu with easy-menu-define yielding invalid menu item Heime via Users list for the GNU Emacs text editor
2022-10-19  2:49 ` Emanuel Berg
2022-10-19 14:33   ` Heime
2022-10-19 11:51 ` Sharon Kimble
2022-10-19 12:49   ` Emanuel Berg
2022-10-19 20:23     ` Heime
2022-10-19 21:04   ` Heime

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.