Function: easy-menu-remove-item

easy-menu-remove-item is a byte-compiled function defined in easymenu.el.gz.

Signature

(easy-menu-remove-item MAP PATH NAME)

Documentation

From submenu of MAP with path PATH remove item NAME.

MAP and PATH are defined as in easy-menu-add-item. NAME should be a string, the name of the element to be removed.

Probably introduced at or before Emacs version 20.4.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/easymenu.el.gz
(defun easy-menu-remove-item (map path name)
  "From submenu of MAP with path PATH remove item NAME.
MAP and PATH are defined as in `easy-menu-add-item'.
NAME should be a string, the name of the element to be removed."
  (setq map (easy-menu-get-map map path))
  (let ((ret (easy-menu-return-item map name)))
    (if ret (easy-menu-define-key map (easy-menu-intern name) nil))
    ret))