Variable: send-to-handlers

send-to-handlers is a buffer-local variable defined in send-to.el.gz.

Documentation

A list of handlers that may be able to send files to applications or services.

Sending is handled by the first supported handler from send-to-handlers whose
:supported function returns non-nil.

Handlers are of the form:

((:supported . is-supported-p)
 (:collect . collect-items)
 (:send . send-items))

(defun is-supported-p ()
  "Return non-nil for platform supporting send capability."
  ...)

(defun collect-items ()
  "Return a list of items to be sent.

Items are strings and will be sent as text unless they are local file paths known to exist. In these instances, files will be sent instead."
  ...)

(defun send-to--send-items (items)
  "Send ITEMS."
  ...)

Source Code

;; Defined in /usr/src/emacs/lisp/send-to.el.gz
(defvar-local send-to-handlers '(((:supported . send-to--ns-supported-p)
                                  (:collect . send-to--collect-items)
                                  (:send . send-to--ns-send-items))
                                 ((:supported . send-to--open-externally-supported-p)
                                  (:collect . send-to--collect-items)
                                  (:send . send-to--open-externally)))
  "A list of handlers that may be able to send files to applications or services.

Sending is handled by the first supported handler from `send-to-handlers' whose
`:supported' function returns non-nil.

Handlers are of the form:

\((:supported . `is-supported-p')
 (:collect . `collect-items')
 (:send . `send-items'))

\(defun is-supported-p ()
  \"Return non-nil for platform supporting send capability.\"
  ...)

\(defun collect-items ()
  \"Return a list of items to be sent.

Items are strings and will be sent as text unless they are local file
paths known to exist. In these instances, files will be sent instead.\"
  ...)

\(defun send-to--send-items (items)
  \"Send ITEMS.\"
  ...)")