MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 3.144.113.235
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/net/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/net/webjump.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:39 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/net/webjump.el
;;; in Emacs version 24.3.1
;;; 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 'browse-url)
#@113 Sample hotlist for WebJump.  See the documentation for the `webjump'
function and the `webjump-sites' variable.
(defvar webjump-sample-sites '(("GNU Project FTP Archive" . [mirrors "ftp://ftp.gnu.org/pub/gnu/" "ftp://mirrors.kernel.org/gnu" "ftp://gatekeeper.dec.com/pub/GNU/" "ftp://ftp.keystealth.org/pub/gnu/" "ftp://mirrors.usc.edu/pub/gnu/" "ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/" "ftp://ftp.cise.ufl.edu/pub/mirrors/GNU/" "ftp://uiarchive.cso.uiuc.edu/pub/ftp/ftp.gnu.org/gnu/" "ftp://gnu.cs.lewisu.edu/gnu/" "ftp://ftp.in-span.net/pub/mirrors/ftp.gnu.org/" "ftp://gnu.ms.uky.edu/pub/mirrors/gnu/" "ftp://ftp.algx.net/pub/gnu/" "ftp://aeneas.mit.edu/pub/gnu/" "ftp://ftp.egr.msu.edu/pub/gnu/" "ftp://ftp.wayne.edu/pub/gnu/" "ftp://wuarchive.wustl.edu/mirrors/gnu/" "ftp://gnu.teleglobe.net/ftp.gnu.org/" "ftp://ftp.cs.columbia.edu/archives/gnu/prep/" "ftp://ftp.ece.cornell.edu/pub/mirrors/gnu/" "ftp://ftp.ibiblio.org/pub/mirrors/gnu/" "ftp://ftp.cis.ohio-state.edu/mirror/gnu/" "ftp://ftp.club.cc.cmu.edu/gnu/" "ftp://ftp.sunsite.utk.edu/pub/gnu/ftp/" "ftp://thales.memphis.edu/pub/gnu/" "ftp://gnu.wwc.edu" "ftp://ftp.twtelecom.net/pub/GNU/" "ftp://ftp.sun.ac.za/mirrorsites/ftp.gnu.org" "ftp://ftp.unicamp.br/pub/gnu/" "ftp://master.softaplic.com.br/pub/gnu/" "ftp://ftp.matrix.com.br/pub/gnu/" "ftp://ftp.pucpr.br/gnu" "ftp://ftp.linorg.usp.br/gnu" "ftp://ftp.cs.ubc.ca/mirror2/gnu/" "ftp://cs.ubishops.ca/pub/ftp.gnu.org/" "ftp://ftp.inf.utfsm.cl/pub/gnu/" "ftp://sunsite.ulatina.ac.cr/Mirrors/GNU/" "ftp://www.gnu.unam.mx/pub/gnu/software/" "ftp://gnu.cem.itesm.mx/pub/mirrors/gnu.org/" "ftp://ftp.azc.uam.mx/mirrors/gnu/" "ftp://mirror.aarnet.edu.au/pub/gnu/" "ftp://gnu.mirror.pacific.net.au/gnu/" "ftp://ftp.cs.cuhk.edu.hk/pub/gnu/gnu/" "ftp://sunsite.ust.hk/pub/gnu/" "ftp://ftp.gnupilgrims.org/pub/gnu" "ftp://www.imtech.res.in/mirror/gnuftp/" "ftp://kambing.vlsm.org/gnu" "ftp://ftp.cs.huji.ac.il/mirror/GNU/" "ftp://tron.um.u-tokyo.ac.jp/pub/GNU/" "ftp://core.ring.gr.jp/pub/GNU/" "ftp://ftp.ring.gr.jp/pub/GNU/" "ftp://mirrors.hbi.co.jp/gnu/" "ftp://ftp.cs.titech.ac.jp/pub/gnu/" "ftp://ftpmirror.hanyang.ac.kr/GNU/" "ftp://ftp.linux.sarang.net/mirror/gnu/gnu/" "ftp://ftp.xgate.co.kr/pub/mirror/gnu/" "ftp://ftp://gnu.xinicks.com/" "ftp://ftp.isu.net.sa/pub/gnu/" "ftp://ftp.nctu.edu.tw/UNIX/gnu/" "ftp://coda.nctu.edu.tw/UNIX/gnu/" "ftp://ftp1.sinica.edu.tw/pub3/GNU/gnu/" "ftp://gnu.cdpa.nsysu.edu.tw/gnu" "ftp://ftp.nectec.or.th/pub/mirrors/gnu/" "ftp://ftp.gnu.vbs.at/" "ftp://ftp.univie.ac.at/packages/gnu/" "ftp://gd.tuwien.ac.at/gnu/gnusrc/" "ftp://ftp.belnet.be/mirror/ftp.gnu.org/" "ftp://gnu.blic.net/pub/gnu/" "ftp://ftp.fi.muni.cz/pub/gnu/" "ftp://ftp.dkuug.dk/pub/gnu/" "ftp://sunsite.dk/mirrors/gnu" "ftp://ftp.funet.fi/pub/gnu/prep/" "ftp://ftp.irisa.fr/pub/gnu/" "ftp://ftp.cs.univ-paris8.fr/mirrors/ftp.gnu.org/" "ftp://ftp.cs.tu-berlin.de/pub/gnu/" "ftp://ftp.leo.org/pub/comp/os/unix/gnu/" "ftp://ftp.informatik.rwth-aachen.de/pub/gnu/" "ftp://ftp.de.uu.net/pub/gnu/" "ftp://ftp.freenet.de/pub/ftp.gnu.org/gnu/" "ftp://ftp.cs.uni-bonn.de/pub/gnu/" "ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.gnu.org/" "ftp://ftp.stw-bonn.de/pub/mirror/ftp.gnu.org/" "ftp://ftp.math.uni-bremen.de/pub/gnu" "ftp://ftp.forthnet.gr/pub/gnu/" "ftp://ftp.ntua.gr/pub/gnu/" "ftp://ftp.duth.gr/pub/gnu/" "ftp://ftp.physics.auth.gr/pub/gnu/" "ftp://ftp.esat.net/pub/gnu/" "ftp://ftp.heanet.ie/mirrors/ftp.gnu.org" "ftp://ftp.lugroma2.org/pub/gnu/" "ftp://ftp.gnu.inetcosmos.org/pub/gnu/" "ftp://ftp.digitaltrust.it/pub/gnu" "ftp://ftp://rm.mirror.garr.it/mirrors/gnuftp" "ftp://ftp.nluug.nl/pub/gnu/" "ftp://ftp.mirror.nl/pub/mirror/gnu/" "ftp://ftp.nl.uu.net/pub/gnu/" "ftp://mirror.widexs.nl/pub/gnu/" "ftp://ftp.easynet.nl/mirror/GNU/" "ftp://ftp.win.tue.nl/pub/gnu" "ftp://gnu.mirror.vuurwerk.net/pub/GNU/" "ftp://gnu.kookel.org/pub/ftp.gnu.org/" "ftp://ftp.uninett.no/pub/gnu/" "ftp://ftp.task.gda.pl/pub/gnu/" "ftp://sunsite.icm.edu.pl/pub/gnu/" "ftp://ftp.man.poznan.pl/pub/gnu" "ftp://ftp.ist.utl.pt/pub/GNU/gnu/" "ftp://ftp.telepac.pt/pub/gnu/" "ftp://ftp.timisoara.roedu.net/mirrors/ftp.gnu.org/pub/gnu" "ftp://ftp.chg.ru/pub/gnu/" "ftp://gnuftp.axitel.ru/" "ftp://ftp.arnes.si/software/gnu/" "ftp://ftp.etsimo.uniovi.es/pub/gnu/" "ftp://ftp.rediris.es/pub/gnu/" "ftp://ftp.chl.chalmers.se/pub/gnu/" "ftp://ftp.isy.liu.se/pub/gnu/" "ftp://ftp.luth.se/pub/unix/gnu/" "ftp://ftp.stacken.kth.se/pub/gnu/" "ftp://ftp.sunet.se/pub/gnu/" "ftp://sunsite.cnlab-switch.ch/mirror/gnu/" "ftp://ftp.ulak.net.tr/gnu/" "ftp://ftp.gnu.org.ua" "ftp://ftp.mcc.ac.uk/pub/gnu/" "ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/" "ftp://ftp.warwick.ac.uk/pub/gnu/" "ftp://ftp.hands.com/ftp.gnu.org/" "ftp://gnu.teleglobe.net/ftp.gnu.org/"]) ("GNU Project Home Page" . "www.gnu.org") ("Emacs Home Page" . "www.gnu.org/software/emacs/emacs.html") ("Savannah Emacs page" . "savannah.gnu.org/projects/emacs") ("Emacs Lisp List" . "www.damtp.cam.ac.uk/user/eglen/emacs/ell.html") ("Emacs Wiki" . [simple-query "www.emacswiki.org" "www.emacswiki.org/cgi-bin/wiki/" #1=""]) ("Google" . [simple-query "www.google.com" "www.google.com/search?q=" #1#]) ("Google Groups" . [simple-query "groups.google.com" "groups.google.com/groups?q=" #1#]) ("Yahoo" . [simple-query "www.yahoo.com" "search.yahoo.com/search?p=" #1#]) ("Yahoo: Reference" . "www.yahoo.com/Reference/") ("Wikipedia" . [simple-query "wikipedia.org" "wikipedia.org/wiki/" #1#]) ("Interactive Weather Information Network" . webjump-to-iwin) ("Usenet FAQs" . "www.faqs.org/faqs/") ("RTFM Usenet FAQs by Group" . "ftp://rtfm.mit.edu/pub/usenet-by-group/") ("RTFM Usenet FAQs by Hierarchy" . "ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/") ("X Consortium Archive" . "ftp.x.org") ("Association for Computing Machinery" . "www.acm.org") ("Computer Professionals for Social Responsibility" . "www.cpsr.org") ("Electronic Frontier Foundation" . "www.eff.org") ("IEEE Computer Society" . "www.computer.org") ("Risks Digest" . webjump-to-risks) ("Supplemental Web site list for webjump" . "www.neilvandyke.org/webjump/")) (#$ . 577))
(defvar webjump-state-to-postal-alist '(("Alabama" . "al") ("Alaska" . "ak") ("Arizona" . "az") ("Arkansas" . "ar") ("California" . "ca") ("Colorado" . "co") ("Connecticut" . "ct") ("Delaware" . "de") ("Florida" . "fl") ("Georgia" . "ga") ("Hawaii" . "hi") ("Idaho" . "id") ("Illinois" . "il") ("Indiana" . "in") ("Iowa" . "ia") ("Kansas" . "ks") ("Kentucky" . "ky") ("Louisiana" . "la") ("Maine" . "me") ("Maryland" . "md") ("Massachusetts" . "ma") ("Michigan" . "mi") ("Minnesota" . "mn") ("Mississippi" . "ms") ("Missouri" . "mo") ("Montana" . "mt") ("Nebraska" . "ne") ("Nevada" . "nv") ("New Hampshire" . "nh") ("New Jersey" . "nj") ("New Mexico" . "nm") ("New York" . "ny") ("North Carolina" . "nc") ("North Dakota" . "nd") ("Ohio" . "oh") ("Oklahoma" . "ok") ("Oregon" . "or") ("Pennsylvania" . "pa") ("Rhode Island" . "ri") ("South Carolina" . "sc") ("South Dakota" . "sd") ("Tennessee" . "tn") ("Texas" . "tx") ("Utah" . "ut") ("Vermont" . "vt") ("Virginia" . "va") ("Washington" . "wa") ("West Virginia" . "wv") ("Wisconsin" . "wi") ("Wyoming" . "wy")))
#@1644 Hotlist for WebJump.

The hotlist is represented as an association list, with the CAR of each cell
being the name of the Web site, and the CDR being the definition for the URL of
that site.  The URL definition can be a string (the URL), a vector (specifying
a special "builtin" which returns a URL), a symbol (name of a function which
returns a URL), or a list (which when `eval'ed yields a URL).

If the URL definition is a vector, then a "builtin" is used.  A builtin has a
Lisp-like syntax, with the name as the first element of the vector, and any
arguments as the following elements.  The three current builtins are `name',
which returns the name of the site as the URL, `simple-query', which
returns a URL that is a function of a query entered by the user, and `mirrors',
which allows the user to select from among multiple mirror sites for the same
content.

The first argument to the `simple-query' builtin is a static URL to use if the
user enters a blank query.  The second and third arguments are the prefix and
suffix, respectively, to add to the encoded query the user enters.  This
builtin covers Web sites that have single-string searches with the query
embedded in the URL.

The arguments to the `mirrors' builtin are URLs of mirror sites.

If the symbol of a function is given, then the function will be called with the
Web site name (the one you specified in the CAR of the alist cell) as a
parameter.  This might come in handy for various kludges.

For convenience, if the `http://', `ftp://', or `file://' prefix is missing
from a URL, WebJump will make a guess at what you wanted and prepend it before
submitting the URL.
(defvar webjump-sites webjump-sample-sites (#$ . 7746))
(defalias 'webjump-to-iwin #[(name) "\304\305\306\307\310	\"#\n\203\311\n\312\305\313\314\315$\316\260\202 *\207" [name webjump-state-to-postal-alist state prefix "http://iwin.nws.noaa.gov/" webjump-read-choice "state" append (("Puerto Rico" . "pr")) "iwin/" "/" "option" (("Hourly Report" . "hourly") ("State Forecast" . "state") ("Local Forecast" . "local") ("Zone Forecast" . "zone") ("Short-Term Forecast" . "shortterm") ("Weather Summary" . "summary") ("Public Information" . "public") ("Climatic Data" . "climate") ("Aviation Products" . "aviation") ("Hydro Products" . "hydro") ("Special Weather" . "special") ("Watches and Warnings" . "warnings")) "zone" ".html"] 9])
(defalias 'webjump-to-risks #[(name) "\303\211\304\n\305P!\211\203 \304\n\306P!\211\203 \307\310	#\202!\311*\207" [volume issue name nil webjump-read-number " volume" " issue" format "catless.ncl.ac.uk/Risks/%d.%02d.html" "catless.ncl.ac.uk/Risks/"] 4])
#@233 Jumps to a Web site from a programmable hotlist.

See the documentation for the `webjump-sites' variable for how to customize the
hotlist.

Please submit bug reports and other feedback to the author, Neil W. Van Dyke
<nwv@acm.org>.
(defalias 'webjump #[nil "\305\306\307\310	\311\305$	\305#\211@\nA\312\313\f\204\314\202Z\f;\203&\f\202Z\315\f!\2033\316\f\"\202Z\f<\203>\317\f!\202Z\f9\203V\320\f!\203O\f!\202Z\321\322\f\"\202Z\321\323\"!!,\207" [completion-ignore-case webjump-sites item name expr t assoc-string completing-read "WebJump to site: " nil browse-url webjump-url-fix "" vectorp webjump-builtin eval fboundp error "WebJump URL function \"%s\" undefined" "WebJump URL expression for \"%s\" invalid"] 7 (#$ . 10400) nil])
(defalias 'webjump-builtin #[(expr name) "G\303W\203\f\304\305	\"\210\306H\211\307=\203-G\303U\203\"\304\310	\"\210\311	\312\313\"A\"\202W\n\301=\2037	\202W\n\314=\203R\315	\316#\210\317	\303H\320H\316H$\202W\304\321\n	#)\207" [expr name builtin 1 error "WebJump URL builtin for \"%s\" empty" 0 mirrors "WebJump URL builtin \"mirrors\" for \"%s\" needs at least 1 arg" webjump-choose-mirror append nil simple-query webjump-builtin-check-args 3 webjump-do-simple-query 2 "WebJump URL builtin \"%s\" for \"%s\" invalid"] 7])
(defalias 'webjump-builtin-check-args #[(expr name count) "G	TU\206\303\304\305H\n	$\207" [expr count name error "WebJump URL builtin \"%s\" for \"%s\" needs %d args" 0] 5])
(defalias 'webjump-choose-mirror #[(name urls) "\302\303P	\304	!#\207" [name urls webjump-read-url-choice " mirror" webjump-mirror-default] 5])
(defalias 'webjump-do-simple-query #[(name noquery-url query-prefix query-suffix) "\305\306P!\211\203\n\307	!Q\202\f)\207" [name query query-prefix query-suffix noquery-url webjump-read-string " query" webjump-url-encode] 4])
(defalias 'webjump-mirror-default #[(urls) "@\207" [urls] 1])
(defalias 'webjump-read-choice #[(name what choices &optional default) "\306\307	\310\n\311R\312\306$\313\f!\203
\202\314\f\"A*\207" [completion-ignore-case name what choices choice default t completing-read " " ": " nil webjump-null-or-blank-string-p assoc] 5])
(defalias 'webjump-read-number #[(prompt) "\302!\211\205\303	!)\207" [prompt input webjump-read-string string-to-number] 3])
(defalias 'webjump-read-string #[(prompt) "\302\303P!\304	!?\205	)\207" [prompt input read-string ": " webjump-null-or-blank-string-p] 3])
(defalias 'webjump-read-url-choice #[(what urls &optional default) "\305\306\"\307\n\310P	\311\312$\313!\203\f\202\314	\"@*\207" [urls completions what input default mapcar #[(n) "\211B\207" [n] 2] completing-read ": " nil t webjump-null-or-blank-string-p assoc] 5])
(defalias 'webjump-null-or-blank-string-p #[(str) "?\206	\301\302\"\207" [str string-match "^[ 	]*$"] 3])
(defalias 'webjump-url-encode #[(str) "\301\302\303\304\"\305#\207" [str mapconcat #[(c) "\302!\211\303\230\203\304\202\305\306	\"\203	\202\307\310\"\226)\207" [c s char-to-string " " "+" string-match "[a-zA-Z_.-/]" format "%%%02x"] 4] encode-coding-string utf-8 ""] 5])
(defalias 'webjump-url-fix #[(url) "\301!\203\302\207\303\304\305\"\203\202>\304\306\"\203!\307P\202>\304\310\"\203=\311\312\"\227\313\230\2036\313\2027\314\315Q\202>!\207" [url webjump-null-or-blank-string-p "" webjump-url-fix-trailing-slash string-match "^[a-zA-Z]+:" "^/" "file://" "^\\([^\\./]+\\)" match-string 1 "ftp" "http" "://"] 4])
(defalias 'webjump-url-fix-trailing-slash #[(url) "\301\302\"\203\303P\207\207" [url string-match "^[a-zA-Z]+://[^/]+$" "/"] 3])
(provide 'webjump)

MMCT - 2023