403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/dnd.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315\316\317&\210\306\320\310\311\321DD\322\314\315\316\311&\210\306\323\310\311\324DD\325\314\315\316\326&\207" [custom-declare-group dnd nil "Handling data from drag and drop." :group environment custom-declare-variable dnd-protocol-alist funcall function #[0 "\300\301!\302B\300\303!\304B\300\305!\302B\300\306!\304BF\207" [purecopy "^file:///" dnd-open-local-file "^file://" dnd-open-file "^file:" "^\\(https?\\|ftp\\|file\\|nfs\\)://"] 5 #1=""] "The functions to call for different protocols when a drop is made.\nThis variable is used by `dnd-handle-one-url' and `dnd-handle-file-name'.\nThe list contains of (REGEXP . FUNCTION) pairs.\nThe functions shall take two arguments, URL, which is the URL dropped and\nACTION which is the action to be performed for the drop (move, copy, link,\nprivate or ask).\nIf no match is found here, and the value of `browse-url-browser-function'\nis a pair of (REGEXP . FUNCTION), those regexps are tried for a match.\nIf no match is found, the URL is inserted as text by calling `dnd-insert-text'.\nThe function shall return the action done (move, copy, link or private)\nif some action was made, or nil if the URL is ignored." :version "22.1" :type (repeat (cons (regexp) (function))) dnd-open-remote-file-function #[0 "\301=\203\302\207\303\207" [system-type windows-nt dnd-open-local-file dnd-open-remote-url] 2 #1#] "The function to call when opening a file on a remote machine.\nThe function will be called with two arguments, URI and ACTION.\nSee `dnd-open-file' for details.\nIf nil, then dragging remote files into Emacs will result in an error.\nPredefined functions are `dnd-open-local-file' and `dnd-open-remote-url'.\n`dnd-open-local-file' attempts to open a remote file using its UNC name and\nis the default on MS-Windows.  `dnd-open-remote-url' uses `url-handler-mode'\nand is the default except for MS-Windows." dnd-open-file-other-window #[0 "\300\207" [nil] 1 #1#] "If non-nil, always use `find-file-other-window' to open dropped files." boolean] 8)
#@427 Handle one dropped url by calling the appropriate handler.
The handler is first located by looking at `dnd-protocol-alist'.
If no match is found here, `browse-url-handlers' and
`browse-url-default-handlers' are searched for a match.
If no match is found, just call `dnd-insert-text'.  WINDOW is
where the drop happened, ACTION is the action for the drop, URL
is what has been dropped.  Returns ACTION.

(fn WINDOW ACTION URL)
(defalias 'dnd-handle-one-url #[771 "\301\3022+\211\203(\211@\303@\"\203!\211A\"\262\304\302\305\"\210A\266\202\202\210\3010\204V\3022J\306\307\"\211\203G\310\262\211\"\210\304\302\305\"\210\210\3010\204V\311#\210\310\262\207" [dnd-protocol-alist nil done string-match throw t browse-url-select-handler internal private dnd-insert-text] 9 (#$ . 2171)])
#@117 Return an uri converted to file:/// syntax if uri is a local file.
Return nil if URI is not a local file.

(fn URI)
(defalias 'dnd-get-local-file-uri #[257 "\301 \302\303\"\205\304\305\"\227\302\306\"\203\304\307\"\202\227\205E\310=?\205E\311\230\204<\227\230\204<\211\230\205E\312\313G\\\314OP\207" [system-type system-name string-match "^file://\\([^/]*\\)" match-string 1 "^[^\\.]+" 0 windows-nt "localhost" "file://" 7 nil] 8 (#$ . 2982)])
#@12 

(fn URI)
(defalias 'dnd--unescape-uri #[257 "\300\301\302\303\211%\207" [replace-regexp-in-string "%[[:xdigit:]][[:xdigit:]]" #[257 "\300\301\302\"\211\302\303\301\304O\305\"I\210\207" [make-string 1 0 string-to-number nil 16] 8 "\n\n(fn ARG)"] t] 7 (#$ . 3456)])
#@235 Return file name converted from file:/// or file: syntax.
URI is the uri for the file.  If MUST-EXIST is given and non-nil,
only return non-nil if the file exists.
Return nil if URI is not a local file.

(fn URI &optional MUST-EXIST)
(defalias 'dnd-get-local-file-name #[513 "\303\304\"\203\305\225S\306O\202\303\307\"\205\305\225\306O\310=\203&\311\202+	\206+\n\2037\312\313!\"\262\203H\203H\314!\204H\306\262\207" [system-type file-name-coding-system default-file-name-coding-system string-match "^file:///" 0 nil "^file:" windows-nt utf-8 decode-coding-string dnd--unescape-uri file-readable-p] 7 (#$ . 3731)])
#@530 Open a local file.
The file is opened in the current window, or a new window if
`dnd-open-file-other-window' is set.  URI is the url for the file,
and must have the format file:file-name or file:///file-name.
The last / in file:/// is part of the file name.  If the system
natively supports unc file names, then remote urls of the form
file://server-name/file-name will also be handled by this function.
An alternative for systems that do not support unc file names is
`dnd-open-remote-url'.  ACTION is ignored.

(fn URI ACTION)
(defalias 'dnd-open-local-file #[514 "\301\302\"\211\203#\303!\203#\203\304!\210\202\305!\210\306!\210\307\207\310\311\"\207" [dnd-open-file-other-window dnd-get-local-file-name t file-readable-p find-file-other-window find-file file-name-history--add private error "Can not read %s"] 6 (#$ . 4379)])
#@272 Open a remote file with `find-file' and `url-handler-mode'.
Turns `url-handler-mode' on if not on before.  The file is opened in the
current window, or a new window if `dnd-open-file-other-window' is set.
URI is the url for the file.  ACTION is ignored.

(fn URI ACTION)
(defalias 'dnd-open-remote-url #[514 "\302\303!\210\204\300 \210	\203\304!\210\202\305!\210\306\207" [url-handler-mode dnd-open-file-other-window require url-handlers find-file-other-window find-file private] 4 (#$ . 5229)])
#@304 Open a local or remote file.
The file is opened in the current window, or a new window if
`dnd-open-file-other-window' is set.  URI is the url for the file,
and must have the format file://hostname/file-name.  ACTION is ignored.
The last / in file://hostname/ is part of the file name.

(fn URI ACTION)
(defalias 'dnd-open-file #[514 "\301!\211\203\f\302\"\207\203\"\207\303\304!\207" [dnd-open-remote-file-function dnd-get-local-file-uri dnd-open-local-file error "Remote files not supported"] 6 (#$ . 5741)])
#@172 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.

(fn WINDOW ACTION TEXT)
(defalias 'dnd-insert-text #[771 "\204\n\301!\204\302!\210\303\304\305\306!\"\210\202\211c\210\207" [buffer-read-only windowp kill-new message "%s" substitute-command-keys "The dropped text can be accessed with \\[yank]"] 7 (#$ . 6269)])
(provide 'dnd)

Youez - 2016 - github.com/yon3zu
LinuXploit