?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/dnd.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:51 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/dnd.el ;;; in Emacs version 24.3 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\300\312\313\314\304\305\306\315\310\311& \210\300\316\317\320\304\305\306\321\310\311& \207" [custom-declare-variable dnd-protocol-alist `((,(purecopy "^file:///") . dnd-open-local-file) (,(purecopy "^file://") . dnd-open-file) (,(purecopy "^file:") . dnd-open-local-file) (,(purecopy "^\\(https?\\|ftp\\|file\\|nfs\\)://") . dnd-open-file)) "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))) :group dnd dnd-open-remote-file-function (if (eq system-type 'windows-nt) 'dnd-open-local-file 'dnd-open-remote-url) "The function to call when opening a file on a remote machine.\nThe function will be called with two arguments; URI and ACTION. See\n`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." function dnd-open-file-other-window nil "If non-nil, always use find-file-other-window to open dropped files." boolean] 10) #@437 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, and the value of `browse-url-browser-function' is a pair of (REGEXP . FUNCTION), those regexps are tried 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. (defalias 'dnd-handle-one-url #[(window action url) "\305\306!\210\307\310\311\215\204 \312 !\204 \310\313\215\204 \314\n\f#\210\315)\207" [ret browse-url-browser-function window action url require browse-url nil done (byte-code "\306\211\203% \n@\307 @\"\203 A\f\"\310\311\312\"\210\nA\211\204 *\306\207" [dnd-protocol-alist bf --dolist-tail-- url action ret nil string-match throw done t] 4) functionp (byte-code "\306\211\203' \n@\307 @\"\203 \310 A \"\210\311\312\313\"\210\nA\211\204 *\306\207" [browse-url-browser-function bf --dolist-tail-- url ret action nil string-match private throw done t] 4) dnd-insert-text private] 4 (#$ . 2473)]) #@107 Return an uri converted to file:/// syntax if uri is a local file. Return nil if URI is not a local file. (defalias 'dnd-get-local-file-uri #[(uri) "\304\305\"\205\f \306\307\"\227\304\310 \"\203 \306\311 \"\202 \227\211\205>