| Server IP : 217.160.0.135 / Your IP : 216.73.217.37 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/url/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(require 'url-parse)
#@60 Convert URL to a fully specified URL, and canonicalize it.
(autoload 'url-expand-file-name "url-expand" '(#$ . 105))
#@63 Dissect the current buffer and return a list of MIME handles.
(autoload 'mm-dissect-buffer "mm-decode" '(#$ . 228))
#@31 Get PROPERTY of a URL SCHEME.
(autoload 'url-scheme-get-property "url-methods" '(#$ . 350))
(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 :type boolean :group url] 12)
#@857 Handle URLs as if they were file names throughout Emacs.
After switching on this minor mode, Emacs file primitives handle
URLs. For instance:
This is a minor mode. If called interactively, toggle the
`Url-Handler mode' mode. If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is `toggle'. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the
mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate `(default-value \='url-handler-mode)'.
The mode's hook is called both when the mode is enabled and when it is
disabled.
(file-exists-p "https://www.gnu.org/")
=> t
and `C-x C-f https://www.gnu.org/ RET' will give you the HTML at
that URL in a buffer.
(fn &optional ARG)
(defalias 'url-handler-mode #[256 "\304 \305\302\306=\203 \307\302!?\202! \247\203 \310W\203 \311\202! \312\"\210\313\300!\2038 \314\302\"\307\302!\2038 \302B\314\315\316 \" \"\n\203J \316B B\317\320\307\302!\203V \321\202W \322\"\210\323\324!\203 \325\302!\210\304 \203o \211\304 \232\203 \326\327\307\302!\203{ \330\202| \331\332#\210\210\333 \210\307\302!\207" [global-minor-modes file-name-handler-alist url-handler-mode url-handler-regexp current-message set-default toggle default-value 1 nil t boundp 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] 6 (#$ . 983) (byte-code "\203\n \301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar url-handler-mode-hook nil)
(byte-code "\301\302N\204\f \303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205# \310\211%\210\314\315\316\317\320DD\321\322\323\324\325\326\327\330\331&\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.)" custom-type hook standard-value nil add-minor-mode url-handler-mode boundp custom-declare-variable url-handler-regexp funcall function #[0 "\300\207" ["\\`\\(?:https?\\|ftp\\|file\\|nfs\\|ssh\\|scp\\|rsync\\|telnet\\)://"] 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 (#$ . 3987)])
#@27 Check for recursive load.
(defvar url-file-handler-load-in-progress nil (#$ . 4183))
#@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\242 \321N\322\204p \323\324\325\326\"!!\203p \327\330\"\210\203\205 \331 \332\333\"\216\317\")\262\202\211 \305\"\262\334\335\336\203\226 \337\202\227 \340&\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-closure #[0 "\301\300\302\"\207" [V0 set-match-data evaporate] 3] url-debug handlers "%s %S%S => %S" "Hooked" "Real"] 11 (#$ . 4275)])
#@26
(fn ARG &rest IGNORED)
(defalias 'url-file-handler-identity #[385 "\207" [] 3 (#$ . 5401)])
(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 (#$ . 6242)])
#@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 (#$ . 6444)])
#@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 (#$ . 6630)])
#@12
(fn DIR)
(defalias 'url-handler-file-name-directory #[257 "\301!\302!>\204 \303\304\305D\"\210\211\306H\307\232\204: \302!>\204) \303\304\305D\"\210\211\310H\211\311\230\262\203: \312\313P!\207\314\315C\"\207" [cl-struct-url-tags url-generic-parse-url type-of signal wrong-type-argument url 1 "file" 6 "" url-handler-file-name-directory "/" url-run-real-handler file-name-directory] 6 (#$ . 6972)])
#@52
(fn FILENAME &optional IDENTIFICATION CONNECTED)
(defalias 'url-handler-file-remote-p #[769 "\301!\302!>\204 \303\304\305D\"\210\211\306H\205\302!>\204'