Function: x-dnd-handle-octet-stream

x-dnd-handle-octet-stream is a byte-compiled function defined in x-dnd.el.gz.

Signature

(x-dnd-handle-octet-stream SELECTION TYPE VALUE)

Documentation

Handle a selection request for application/octet-stream.

Return the contents of the XDS file.

Source Code

;; Defined in /usr/src/emacs/lisp/x-dnd.el.gz
(defun x-dnd-handle-octet-stream (_selection _type _value)
  "Handle a selection request for `application/octet-stream'.
Return the contents of the XDS file."
  (cons 'application/octet-stream
        (ignore-errors
          (with-temp-buffer
            (set-buffer-multibyte nil)
            (setq buffer-file-coding-system 'binary)
            (insert-file-contents-literally x-dnd-xds-current-file)
            (buffer-substring-no-properties (point-min)
                                            (point-max))))))