Function: dnd-insert-text
dnd-insert-text is a byte-compiled function defined in dnd.el.gz.
Signature
(dnd-insert-text WINDOW ACTION TEXT)
Documentation
Insert text at point or push to the kill ring if buffer is read only.
TEXT is the text as a string, WINDOW is the window where the drop happened.
This function has :around advice: org--mouse-dnd-insert-text.
Source Code
;; Defined in /usr/src/emacs/lisp/dnd.el.gz
(defun dnd-insert-text (window action text)
"Insert text at point or push to the kill ring if buffer is read only.
TEXT is the text as a string, WINDOW is the window where the drop happened."
(if (or buffer-read-only
(not (windowp window)))
(progn
(kill-new text)
(message "%s"
(substitute-command-keys
"The dropped text can be accessed with \\[yank]")))
(insert text))
action)