Function: dictionary-context-menu

dictionary-context-menu is an autoloaded and byte-compiled function defined in dictionary.el.gz.

Signature

(dictionary-context-menu MENU CLICK)

Documentation

Populate MENU with dictionary commands at CLICK.

When you add this function to context-menu-functions, the context menu will contain an item that searches the word at mouse click.

Source Code

;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
;;;###autoload
(defun dictionary-context-menu (menu click)
  "Populate MENU with dictionary commands at CLICK.
When you add this function to `context-menu-functions',
the context menu will contain an item that searches
the word at mouse click."
  (when (thing-at-mouse click 'word)
    (define-key-after menu [dictionary-separator] menu-bar-separator
      'middle-separator)
    (define-key-after menu [dictionary-search-word-at-mouse]
      '(menu-item "Dictionary Search" dictionary-search-word-at-mouse
                  :help "Search the word at mouse click in dictionary")
      'dictionary-separator))
  menu)