%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/net/ |
Current File : //usr/local/share/emacs/27.2/lisp/net/webjump.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\301&\207" [require browse-url custom-declare-group webjump nil "Programmable Web hotlist." :prefix "webjump-" :group] 8) #@86 Sample hotlist for WebJump. See the documentation for `webjump' and `webjump-sites'. (defconst webjump-sample-sites '(("GNU Project FTP Archive" . [mirrors "https://ftp.gnu.org/pub/gnu/" "https://ftpmirror.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=""]) ("DuckDuckGo" . [simple-query "duckduckgo.com" "duckduckgo.com/?q=" #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#]) ("National Weather Service" . 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/")) (#$ . 584)) (defconst 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. (custom-declare-variable 'webjump-sites 'webjump-sample-sites '(#$ . 3269) :type '(alist :key-type (string :tag "Name") :value-type (choice :tag "URL" (string :tag "URL") function (vector :tag "Builtin" (symbol :tag "Name") (repeat :inline t :tag "Arguments" string)) (sexp :tag "Expression to eval")))) (defalias 'webjump-to-iwin #[(name) "\305\306 \307\310\311\n\"#\211\205 \306 \312\313#\211\203# \314\315\f\260\202/ \203. \316Q\202/ +\207" [prefix name webjump-state-to-postal-alist state opt "http://www.nws.noaa.gov/view/" webjump-read-choice "state" append (("Puerto Rico" . "pr") ("Guam" . "gu") ("American Samoa" . "as") ("District of Columbia" . "dc") ("US Virgin Islands" . "vi")) "option" (("Hourly Report" . "hourly") ("State Forecast" . "state") ("Zone Forecast" . "zone") ("Short-Term Forecast" . "shortterm") ("Forecast Discussion" . "discussion") ("Weather Summary" . "summary") ("Public Information" . "public") ("Climatic Data" . "climate") ("Hydro Products" . "hydro") ("Watches" . "watches") ("Special Weather" . "special") ("Warnings and Advisories" . "warnings") ("Fire Weather" . "firewx")) "prodsByState.php?state=" "&prodtype=" "states.php?state="] 7]) (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&