Function: pgtk-dnd-insert-utf16-text
pgtk-dnd-insert-utf16-text is a byte-compiled function defined in
pgtk-dnd.el.gz.
Signature
(pgtk-dnd-insert-utf16-text WINDOW ACTION TEXT)
Documentation
Decode the UTF-16 text and insert it at point.
TEXT is the text as a string, WINDOW is the window where the drop happened.
Source Code
;; Defined in /usr/src/emacs/lisp/pgtk-dnd.el.gz
(defun pgtk-dnd-insert-utf16-text (window action text)
"Decode the UTF-16 text and insert it at point.
TEXT is the text as a string, WINDOW is the window where the drop happened."
;; See comment in pgtk-dnd-handle-moz-url about coding.
(let ((coding (if (eq (byteorder) ?B) 'utf-16be 'utf-16le)))
(dnd-insert-text window action (decode-coding-string text coding))))