Function: x-dnd-get-state-cons-for-frame

x-dnd-get-state-cons-for-frame is a byte-compiled function defined in x-dnd.el.gz.

Signature

(x-dnd-get-state-cons-for-frame FRAME-OR-WINDOW)

Documentation

Return the entry in x-dnd-current-state for a frame or window.

Source Code

;; Defined in /usr/src/emacs/lisp/x-dnd.el.gz
(defun x-dnd-get-state-cons-for-frame (frame-or-window)
  "Return the entry in `x-dnd-current-state' for a frame or window."
  (let* ((frame (if (framep frame-or-window) frame-or-window
		  (window-frame frame-or-window)))
	 (display (frame-parameter frame 'display)))
    (if (not (assoc display x-dnd-current-state))
	(push (cons display (copy-sequence x-dnd-empty-state))
	      x-dnd-current-state))
    (assoc display x-dnd-current-state)))