%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/url/ |
Current File : //usr/local/share/emacs/27.2/lisp/url/url-handlers.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'url-parse) #@60 Convert URL to a fully specified URL, and canonicalize it. (autoload 'url-expand-file-name "url-expand" '(#$ . 429)) #@63 Dissect the current buffer and return a list of MIME handles. (autoload 'mm-dissect-buffer "mm-decode" '(#$ . 552)) #@31 Get PROPERTY of a URL SCHEME. (autoload 'url-scheme-get-property "url-methods" '(#$ . 674)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315&\207" [custom-declare-variable url-handler-mode funcall function #[0 "\300\207" [nil] 1] "Non-nil if Url-Handler mode is enabled.\nSee the `url-handler-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `url-handler-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :group url :type boolean] 12) #@330 Toggle using `url' library for URL filenames (URL Handler mode). If called interactively, enable Url-Handler mode if ARG is positive, and disable it if ARG is zero or negative. If called from Lisp, also enable the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'; disable the mode otherwise. (fn &optional ARG) (defalias 'url-handler-mode #[256 "\303 \304\301\305=\203 \306\301!?\202 \307!\310V\"\210\311\312\313\"\" \203* \n\313BB\314\315\306\301!\2036 \316\2027 \317\"\210\320\321!\203a \322\301!\210\303 \203O \211\303 \232\203a \323\324\325\306\301!\203\\ \326\202] \327#\266\210\330 \210\306\301!\207" [file-name-handler-alist url-handler-mode url-handler-regexp current-message set-default toggle default-value prefix-numeric-value 0 delq rassq url-file-handler run-hooks url-handler-mode-hook url-handler-mode-on-hook url-handler-mode-off-hook called-interactively-p any customize-mark-as-set "" message "Url-Handler mode %sabled%s" "en" "dis" force-mode-line-update] 7 (#$ . 1304) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) (defvar url-handler-mode-hook nil) (byte-code "\301\302N\204\f \303\301\302\304#\210\305\306\307\310\300!\205 \307\211%\210\311\312\313\314\315DD\316\317\320\321\322\323\324\325\326&\207" [url-handler-mode-map url-handler-mode-hook variable-documentation put "Hook run after entering or leaving `url-handler-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" add-minor-mode url-handler-mode nil boundp custom-declare-variable url-handler-regexp funcall function #[0 "\300\207" [#1="\\`\\(?:https?\\|ftp\\|file\\|nfs\\|ssh\\|scp\\|rsync\\|telnet\\)://"] 1 #1#] "Regular expression for URLs handled by `url-handler-mode'.\nWhen URL Handler mode is enabled, this regular expression is\nadded to `file-name-handler-alist'.\n\nSome valid URL protocols just do not make sense to visit\ninteractively (about, data, info, irc, mailto, etc.). This\nregular expression avoids conflicts with local files that look\nlike URLs (Gnus is particularly bad at this)." :group url :type regexp :version "25.1" :set #[514 "\300\301!\210\302\"\210\211\205 \300 \207" [url-handler-mode 0 set-default] 6 "\n\n(fn SYMBOL VALUE)"]] 12) #@23 (fn OPERATION ARGS) (defalias 'url-run-real-handler #[514 "\302=\205 B\303\"*\207" [inhibit-file-name-operation inhibit-file-name-handlers url-file-handler apply] 5 (#$ . 3594)]) #@27 Check for recursive load. (defvar url-file-handler-load-in-progress nil (#$ . 3790)) #@214 Function called from the `file-name-handler-alist' routines. OPERATION is what needs to be done (`file-exists-p', etc.). ARGS are the arguments that would have been passed to OPERATION. (fn OPERATION &rest ARGS) (defalias 'url-file-handler #[385 "\203 \203 \305\"\207\3062L \nB\211\205I \211@\211;\203B \307!\310!>\2043 \311\312\313D\"\210\211\314H\262\f\235\203B \315\306\316\"\210A\266\202\202 \2620\203W \317\320#\202\251 \321N\322\204p \323\324\325\326\"!!\203p \327\330\"\210\203\214 \331 \332\333\334\335\336!\337\"\340$\216\317\")\262\202\220 \305\"\262\341\342\343\203\235 \344\202\236 \345&\210\262)\207" [load-in-progress url-file-handler-load-in-progress default-directory cl-struct-url-tags url-tramp-protocols url-run-real-handler :do url-generic-parse-url type-of signal wrong-type-argument url 1 throw t apply url-tramp-file-handler url-file-handlers nil fboundp intern-soft format "url-%s" error "Missing URL handler mapping for %s" match-data make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 url-debug handlers "%s %S%S => %S" "Hooked" "Real"] 11 (#$ . 3882)]) #@26 (fn ARG &rest IGNORED) (defalias 'url-file-handler-identity #[385 "\207" [] 3 (#$ . 5041)]) (byte-code "\300\301\302\303#\210\300\304\302\305#\210\300\306\302\307#\210\300\310\302\311#\210\300\312\302\313#\210\300\314\302\315#\210\300\316\302\317#\210\300\320\302\321#\210\300\322\302\323#\210\300\324\302\323#\210\300\325\302\323#\207" [put file-readable-p url-file-handlers url-file-exists-p substitute-in-file-name url-file-handler-identity file-name-absolute-p #[128 "\300\207" [t] 2 "\n\n(fn &rest IGNORED)"] expand-file-name url-handler-expand-file-name directory-file-name url-handler-directory-file-name file-name-directory url-handler-file-name-directory unhandled-file-name-directory url-handler-unhandled-file-name-directory file-remote-p url-handler-file-remote-p file-writable-p ignore file-symlink-p vc-registered] 4) #@28 (fn FILE &optional BASE) (defalias 'url-handler-expand-file-name #[513 "\300!\203 \301\302\"\207\303\"\207" [file-name-absolute-p expand-file-name "/" url-expand-file-name] 5 (#$ . 5882)]) #@12 (fn DIR) (defalias 'url-handler-directory-file-name #[257 "\300\301\"\203 \207\302\303C\"\207" [string-suffix-p "//" url-run-real-handler directory-file-name] 4 (#$ . 6084)]) #@17 (fn FILENAME) (defalias 'url-handler-unhandled-file-name-directory #[257 "\301!\302!>\204 \303\304\305D\"\210\211\306H\307\232\2052 \310\302!>\204* \303\304\305D\"\210\311H!\2062 \312\207" [cl-struct-url-tags url-generic-parse-url type-of signal wrong-type-argument url 1 "file" file-name-as-directory 6 "/"] 7 (#$ . 6270)]) #@12 (fn DIR) (defalias 'url-handler-file-name-directory #[257 "\301!\302!>\204 \303\304\305D\"\210\211\306H\307\232\204<