| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313\314\315& \210\302\316\304\305\317DD\320\310\311\312\321\314\315& \210\302\322\304\305\323DD\324\310\311\312\325\314\315& \207" [require dnd custom-declare-variable x-dnd-test-function funcall function #[0 "\300\207" [x-dnd-default-test-function] 1 #1=""] "The function drag and drop uses to determine if to accept or reject a drop.\nThe function takes three arguments, WINDOW, ACTION and TYPES.\nWINDOW is where the mouse is when the function is called. WINDOW may be a\nframe if the mouse isn't over a real window (i.e. menu bar, tool bar or\nscroll bar). ACTION is the suggested action from the drag and drop source,\none of the symbols move, copy, link or ask. TYPES is a list of available\ntypes for the drop.\n\nThe function shall return nil to reject the drop or a cons with two values,\nthe wanted action as car and the wanted type as cdr. The wanted action\ncan be copy, move, link, ask or private.\nThe default value for this variable is `x-dnd-default-test-function'." :version "22.1" :type symbol :group x x-dnd-types-alist #[0 "\300\301!\302B\300\303!\304B\300\305!\302B\300\306!\307B\300\310!\311B\300\312!\311B\300\313!\311B\300\314!\315B\300\316!\317B\300\320!\321B\300\322!\317B\300\323!\317B\257\f\207" [purecopy "text/uri-list" x-dnd-handle-uri-list "text/x-moz-url" x-dnd-handle-moz-url "_NETSCAPE_URL" "FILE_NAME" x-dnd-handle-file-name "UTF8_STRING" x-dnd-insert-utf8-text "text/plain;charset=UTF-8" "text/plain;charset=utf-8" "text/unicode" x-dnd-insert-utf16-text "text/plain" dnd-insert-text "COMPOUND_TEXT" x-dnd-insert-ctext "STRING" "TEXT"] 13 #1#] "Which function to call to handle a drop of that type.\nIf the type for the drop is not present, or the function is nil,\nthe drop is rejected. The function takes three arguments, WINDOW, ACTION\nand DATA. WINDOW is where the drop occurred, ACTION is the action for\nthis drop (copy, move, link, private or ask) as determined by a previous\ncall to `x-dnd-test-function'. DATA is the drop data.\nThe function shall return the action used (copy, move, link or private)\nif drop is successful, nil if not." alist x-dnd-known-types #[0 "\300\301\302\"\207" [mapcar purecopy ("text/uri-list" "text/x-moz-url" "_NETSCAPE_URL" "FILE_NAME" "UTF8_STRING" "text/plain;charset=UTF-8" "text/plain;charset=utf-8" "text/unicode" "text/plain" "COMPOUND_TEXT" "STRING" "TEXT")] 3 #1#] "The types accepted by default for dropped data.\nThe types are chosen in the order they appear in the list." (repeat string)] 10)
#@413 The current state for a drop.
This is an alist with one entry for each display. The value for each display
is a vector that contains the state for drag and drop for that display.
Elements in the vector are:
Last buffer drag was in,
last window drag was in,
types available for drop,
the action suggested by the source,
the type we want for the drop,
the action we want for the drop,
any protocol specific data.
(defvar x-dnd-current-state nil (#$ . 2637))
(defvar x-dnd-empty-state [nil nil nil nil nil nil nil])
#@91 Setup drag and drop for FRAME (i.e. create appropriate properties).
(fn &optional FRAME)
(defalias 'x-dnd-init-frame #[256 "\300!\301=\205- \302\303\"\210\302\304\"\210\302\305\"\210\302\306\"\210\302\307\"\210\302\310\"\210\311!\210\312!\207" [window-system x x-register-dnd-atom "DndProtocol" "_MOTIF_DRAG_AND_DROP_MESSAGE" "XdndEnter" "XdndPosition" "XdndLeave" "XdndDrop" x-dnd-init-xdnd-for-frame x-dnd-init-motif-for-frame] 4 (#$ . 3157)])
#@88 Return the entry in `x-dnd-current-state' for a frame or window.
(fn FRAME-OR-WINDOW)
(defalias 'x-dnd-get-state-cons-for-frame #[257 "\302!\203\n \211\202
\303!\304\305\"\306\"\204 \211\307 !BB\306\"\207" [x-dnd-current-state x-dnd-empty-state framep window-frame frame-parameter display assoc copy-sequence] 6 (#$ . 3619)])
#@88 Return the state in `x-dnd-current-state' for a frame or window.
(fn FRAME-OR-WINDOW)
(defalias 'x-dnd-get-state-for-frame #[257 "\300!A\207" [x-dnd-get-state-cons-for-frame] 3 (#$ . 3963)])
#@413 The default test function for drag and drop.
WINDOW is where the mouse is when this function is called. It may be
a frame if the mouse is over the menu bar, scroll bar or tool bar.
ACTION is the suggested action from the source, and TYPES are the
types the drop data can have. This function only accepts drops with
types in `x-dnd-known-types'. It always returns the action private.
(fn WINDOW ACTION TYPES)
(defalias 'x-dnd-default-test-function #[771 "\300!\211\205\n \301B\207" [x-dnd-choose-type private] 6 (#$ . 4163)])
#@154 Return the type we want the DND data to be in for the current drop.
FRAME-OR-WINDOW is the frame or window that the mouse is over.
(fn FRAME-OR-WINDOW)
(defalias 'x-dnd-current-type #[257 "\300!\301H\207" [x-dnd-get-state-for-frame 4] 3 (#$ . 4701)])
#@122 Remove all state for the last drop.
FRAME-OR-WINDOW is the frame or window that the mouse is over.
(fn FRAME-OR-WINDOW)
(defalias 'x-dnd-forget-drop #[257 "\301!\302!\241\207" [x-dnd-empty-state x-dnd-get-state-cons-for-frame copy-sequence] 4 (#$ . 4961)])
#@255 Call `x-dnd-test-function' if something has changed.
WINDOW is the window the mouse is over. ACTION is the suggested
action from the source. If nothing has changed, return the last
action and type we got from `x-dnd-test-function'.
(fn WINDOW ACTION)
(defalias 'x-dnd-maybe-call-test-function #[514 "\302!\205 \303!\304!\305H\232\203$ \306H\232\203$ \307H\232\204G r\203, q\210\310H#\311A \"A\312\205C #\266\203)\266\304!\211\313H\314HB\207" [x-dnd-test-function x-dnd-types-alist window-live-p window-buffer x-dnd-get-state-for-frame 0 1 3 2 assoc x-dnd-save-state 5 4] 10 (#$ . 5228)])
#@378 Save the state of the current drag and drop.
WINDOW is the window the mouse is over. ACTION is the action suggested
by the source. ACTION-TYPE is the result of calling `x-dnd-test-function'.
If given, TYPES are the types for the drop data that the source supports.
EXTRA-DATA is data needed for a specific protocol.
(fn WINDOW ACTION ACTION-TYPE &optional TYPES EXTRA-DATA)
(defalias 'x-dnd-save-state #[1283 "\300!\211\301@I\210\211\302AI\210\211\303I\210\203 \211\304I\210\203'