Function: context-menu-send-to
context-menu-send-to is a byte-compiled function defined in
mouse.el.gz.
Signature
(context-menu-send-to MENU CLICK)
Documentation
Add a "Send to..." context MENU entry on supported platforms.
Source Code
;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun context-menu-send-to (menu _click)
"Add a \"Send to...\" context MENU entry on supported platforms."
(run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
(when-let* ((_ (send-to-supported-p))
(handler (send-to--resolve-handler))
(collect (map-elt handler :collect))
(items (funcall collect)))
(define-key-after menu [separator-send] menu-bar-separator)
(define-key-after menu [send]
`(menu-item "Send to..."
,(lambda ()
(interactive)
(send-to items))
:help
"Send item (region, buffer file, or Dired files) to applications or service")))
menu)