annotate lisp/w3/url-vars.el @ 98:0d2f883870bc r20-1b1

Import from CVS: tag r20-1b1
author cvs
date Mon, 13 Aug 2007 09:13:56 +0200
parents 0293115a14e9
children a145efe76779
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
1 ;;; url-vars.el --- Variables for Uniform Resource Locator tool
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
2 ;; Author: wmperry
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 16
diff changeset
3 ;; Created: 1997/02/10 16:15:19
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 16
diff changeset
4 ;; Version: 1.27
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
5 ;; Keywords: comm, data, processes, hypermedia
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
6
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
8 ;;; Copyright (c) 1993-1996 by William M. Perry (wmperry@cs.indiana.edu)
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
9 ;;; Copyright (c) 1996, 1997 Free Software Foundation, Inc.
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
10 ;;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
11 ;;; This file is not part of GNU Emacs, but the same permissions apply.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
12 ;;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
13 ;;; GNU Emacs is free software; you can redistribute it and/or modify
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
14 ;;; it under the terms of the GNU General Public License as published by
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
15 ;;; the Free Software Foundation; either version 2, or (at your option)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
16 ;;; any later version.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
17 ;;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
18 ;;; GNU Emacs is distributed in the hope that it will be useful,
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
19 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
21 ;;; GNU General Public License for more details.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
22 ;;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
23 ;;; You should have received a copy of the GNU General Public License
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
24 ;;; along with GNU Emacs; see the file COPYING. If not, write to the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
25 ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
26 ;;; Boston, MA 02111-1307, USA.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
28
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
29 (defconst url-version (let ((x "Exp"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
30 (if (string-match "State: \\([^ \t\n]+\\)" x)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
31 (substring x (match-beginning 1) (match-end 1))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
32 x))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
33 "Version # of URL package.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
34
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
35 (defvar url-current-can-be-cached t
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
36 "*Whether the current URL can be cached.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
37
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
38 (defvar url-current-object nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
39 "A parsed representation of the current url")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
40
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
41 (defvar url-current-callback-func nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
42 "*The callback function for the current buffer.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
43
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
44 (defvar url-current-callback-data nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
45 "*The data to be passed to the callback function. This should be a list,
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
46 each item in the list will be an argument to the url-current-callback-func.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
47
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
48 (mapcar 'make-variable-buffer-local '(
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
49 url-current-callback-data
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
50 url-current-callback-func
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
51 url-current-can-be-cached
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
52 url-current-content-length
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
53 url-current-file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
54 url-current-isindex
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
55 url-current-mime-encoding
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
56 url-current-mime-headers
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
57 url-current-mime-type
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
58 url-current-mime-viewer
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
59 url-current-object
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
60 url-current-port
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
61 url-current-referer
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
62 url-current-server
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
63 url-current-type
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
64 url-current-user
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
65 ))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
66
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
67 (defvar url-cookie-storage nil "Where cookies are stored.")
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
68 (defvar url-cookie-secure-storage nil "Where secure cookies are stored.")
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
69 (defvar url-cookie-file nil "*Where cookies are stored on disk.")
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
70
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
71 (defvar url-default-retrieval-proc 'url-default-callback
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
72 "*The default action to take when an asynchronous retrieval completes.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
73
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
74 (defvar url-honor-refresh-requests t
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
75 "*Whether to do automatic page reloads at the request of the document
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
76 author or the server via the `Refresh' header in an HTTP/1.0 response.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
77 If nil, no refresh requests will be honored.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
78 If t, all refresh requests will be honored.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
79 If non-nil and not t, the user will be asked for each refresh request.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
80
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
81 (defvar url-emacs-minor-version
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
82 (if (boundp 'emacs-minor-version)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
83 (symbol-value 'emacs-minor-version)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
84 (if (string-match "^[0-9]+\\.\\([0-9]+\\)" emacs-version)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
85 (string-to-int
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
86 (substring emacs-version
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
87 (match-beginning 1) (match-end 1)))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
88 0))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
89 "What minor version of emacs we are using.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
90
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
91 (defvar url-inhibit-mime-parsing nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
92 "Whether to parse out (and delete) the MIME headers from a message.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
93
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
94 (defvar url-automatic-caching nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
95 "*If non-nil, all documents will be automatically cached to the local
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
96 disk.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
97
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
98 (defvar url-cache-expired
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
99 (function (lambda (t1 t2) (>= (- (car t2) (car t1)) 5)))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
100 "*A function (`funcall'able) that takes two times as its arguments, and
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
101 returns non-nil if the second time is 'too old' when compared to the first
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
102 time.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
103
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
104 (defvar url-check-md5s nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
105 "*Whether to check md5s of retrieved documents or not.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
106
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
107 (defvar url-expected-md5 nil "What md5 we expect to see.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
108
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
109 (defvar url-bug-address "wmperry@cs.indiana.edu" "Where to send bug reports.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
110
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
111 (defvar url-cookie-confirmation nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
112 "*If non-nil, confirmation by the user is required before accepting any
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
113 HTTP cookies.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
114
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
115 (defvar url-personal-mail-address nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
116 "*Your full email address. This is what is sent to HTTP/1.0 servers as
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
117 the FROM field. If not set when url-do-setup is run, it defaults to
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
118 the value of url-pgp/pem-entity.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
119
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
120 (defvar url-directory-index-file "index.html"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
121 "*The filename to look for when indexing a directory. If this file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
122 exists, and is readable, then it will be viewed instead of
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
123 automatically creating the directory listing.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
124
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
125 (defvar url-pgp/pem-entity nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
126 "*The users PGP/PEM id - usually their email address.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
127
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
128 (defvar url-privacy-level 'none
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
129 "*How private you want your requests to be.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
130 HTTP/1.0 has header fields for various information about the user, including
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
131 operating system information, email addresses, the last page you visited, etc.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
132 This variable controls how much of this information is sent.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
133
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
134 This should a symbol or a list.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
135 Valid values if a symbol are:
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
136 none -- Send all information
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
137 low -- Don't send the last location
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
138 high -- Don't send the email address or last location
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
139 paranoid -- Don't send anything
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
140
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
141 If a list, this should be a list of symbols of what NOT to send.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
142 Valid symbols are:
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
143 email -- the email address
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
144 os -- the operating system info
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
145 lastloc -- the last location
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
146 agent -- Do not send the User-Agent string
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
147 cookie -- never accept HTTP cookies
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
148
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
149 Samples:
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
150
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
151 (setq url-privacy-level 'high)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
152 (setq url-privacy-level '(email lastloc)) ;; equivalent to 'high
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
153 (setq url-privacy-level '(os))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
154
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
155 ::NOTE::
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
156 This variable controls several other variables and is _NOT_ automatically
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
157 updated. Call the function `url-setup-privacy-info' after modifying this
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
158 variable.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
159 ")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
160
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
161 (defvar url-uudecode-program "uudecode" "*The UUdecode executable.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
162
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
163 (defvar url-uuencode-program "uuencode" "*The UUencode executable.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
164
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
165 (defvar url-history-list nil "List of urls visited this session.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
166
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
167 (defvar url-inhibit-uncompression nil "Do not do decompression if non-nil.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
168
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
169 (defvar url-keep-history nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
170 "*Controls whether to keep a list of all the URLS being visited. If
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
171 non-nil, url will keep track of all the URLS visited.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
172 If eq to `t', then the list is saved to disk at the end of each emacs
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
173 session.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
174
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
175 (defvar url-uncompressor-alist '((".z" . "x-gzip")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
176 (".gz" . "x-gzip")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
177 (".uue" . "x-uuencoded")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
178 (".hqx" . "x-hqx")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
179 (".Z" . "x-compress"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
180 "*An assoc list of file extensions and the appropriate
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
181 content-transfer-encodings for each.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
182
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
183 (defvar url-xterm-command "xterm -title %s -ut -e %s %s %s"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
184 "*Command used to start an xterm window.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
185
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
186 (defvar url-tn3270-emulator "tn3270"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
187 "The client to run in a subprocess to connect to a tn3270 machine.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
188
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
189 (defvar url-use-transparent nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
190 "*Whether to use the transparent package by Brian Tompsett instead of
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
191 the builtin telnet functions. Using transparent allows you to have full
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
192 vt100 emulation in the telnet and tn3270 links.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
193
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
194 (defvar url-mail-command 'url-mail
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
195 "*This function will be called whenever url needs to send mail. It should
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
196 enter a mail-mode-like buffer in the current window.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
197 The commands mail-to and mail-subject should still work in this
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
198 buffer, and it should use mail-header-separator if possible.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
199
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
200 (defvar url-local-exec-path nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
201 "*A list of possible locations for x-exec scripts.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
202
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
203 (defvar url-proxy-services nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
204 "*An assoc list of access types and servers that gateway them.
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
205 Looks like ((\"http\" . \"hostname:portnumber\") ....) This is set up
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
206 from the ACCESS_proxy environment variables in url-do-setup.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
207
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
208 (defvar url-global-history-file nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
209 "*The global history file used by both Mosaic/X and the url package.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
210 This file contains a list of all the URLs you have visited. This file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
211 is parsed at startup and used to provide URL completion.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
212
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
213 (defvar url-global-history-save-interval 3600
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
214 "*The number of seconds between automatic saves of the history list.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
215 Default is 1 hour. Note that if you change this variable after `url-do-setup'
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
216 has been run, you need to run the `url-setup-save-timer' function manually.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
217
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
218 (defvar url-global-history-timer nil)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
219
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
220 (defvar url-passwd-entry-func nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
221 "*This is a symbol indicating which function to call to read in a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
222 password. It will be set up depending on whether you are running EFS
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
223 or ange-ftp at startup if it is nil. This function should accept the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
224 prompt string as its first argument, and the default value as its
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
225 second argument.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
226
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
227 (defvar url-gopher-labels
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
228 '(("0" . "(TXT)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
229 ("1" . "(DIR)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
230 ("2" . "(CSO)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
231 ("3" . "(ERR)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
232 ("4" . "(MAC)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
233 ("5" . "(PCB)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
234 ("6" . "(UUX)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
235 ("7" . "(???)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
236 ("8" . "(TEL)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
237 ("T" . "(TN3)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
238 ("9" . "(BIN)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
239 ("g" . "(GIF)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
240 ("I" . "(IMG)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
241 ("h" . "(WWW)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
242 ("s" . "(SND)"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
243 "*An assoc list of gopher types and how to describe them in the gopher
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
244 menus. These can be any string, but HTML/HTML+ entities should be
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
245 used when necessary, or it could disrupt formatting of the document
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
246 later on. It is also a good idea to make sure all the strings are the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
247 same length after entity references are removed, on a strictly
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
248 stylistic level.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
249
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
250 (defvar url-gopher-icons
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
251 '(
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
252 ("0" . "&text.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
253 ("1" . "&folder;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
254 ("2" . "&index;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
255 ("3" . "&stop;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
256 ("4" . "&binhex.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
257 ("5" . "&binhex.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
258 ("6" . "&uuencoded.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
259 ("7" . "&index;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
260 ("8" . "&telnet;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
261 ("T" . "&tn3270;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
262 ("9" . "&binary.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
263 ("g" . "ℑ")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
264 ("I" . "ℑ")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
265 ("s" . "&audio;"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
266 "*An assoc list of gopher types and the graphic entity references to
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
267 show when possible.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
268
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
269 (defvar url-standalone-mode nil "*Rely solely on the cache?")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
270 (defvar url-multiple-p t
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
271 "*If non-nil, multiple queries are possible through ` *URL-<i>*' buffers")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
272 (defvar url-default-working-buffer " *URL*" " The default buffer to do all of the processing in.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
273 (defvar url-working-buffer url-default-working-buffer " The buffer to do all of the processing in.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
274 (It defaults to `url-default-working-buffer' and is bound to ` *URL-<i>*' buffers
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
275 when used for multiple requests, cf. `url-multiple-p')")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
276 (defvar url-current-referer nil "Referer of this page.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
277 (defvar url-current-content-length nil "Current content length.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
278 (defvar url-current-file nil "Filename of current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
279 (defvar url-current-isindex nil "Is the current document a searchable index?")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
280 (defvar url-current-mime-encoding nil "MIME encoding of current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
281 (defvar url-current-mime-headers nil "An alist of MIME headers.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
282 (defvar url-current-mime-type nil "MIME type of current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
283 (defvar url-current-mime-viewer nil "How to view the current MIME doc.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
284 (defvar url-current-nntp-server nil "What nntp server currently opened.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
285 (defvar url-current-passwd-count 0 "How many times password has failed.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
286 (defvar url-current-port nil "Port # of the current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
287 (defvar url-current-server nil "Server of the current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
288 (defvar url-current-user nil "Username for ftp login.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
289 (defvar url-current-type nil "We currently in http or file mode?")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
290 (defvar url-gopher-types "0123456789+gIThws:;<"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
291 "A string containing character representations of all the gopher types.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
292 (defvar url-mime-separator-chars (mapcar 'identity
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
293 (concat "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
294 "abcdefghijklmnopqrstuvwxyz"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
295 "0123456789'()+_,-./=?"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
296 "Characters allowable in a MIME multipart separator.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
297
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
298 (defvar url-bad-port-list
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
299 '("25" "119" "19")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
300 "*List of ports to warn the user about connecting to. Defaults to just
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
301 the mail, chargen, and NNTP ports so you cannot be tricked into sending
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
302 fake mail or forging messages by a malicious HTML document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
303
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
304 (defvar url-be-anal-about-file-attributes nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
305 "*Whether to use HTTP/1.0 to figure out file attributes
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
306 or just guess based on file extension, etc.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
307
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
308 (defvar url-be-asynchronous nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
309 "*Controls whether document retrievals over HTTP should be done in
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
310 the background. This allows you to keep working in other windows
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
311 while large downloads occur.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
312 (make-variable-buffer-local 'url-be-asynchronous)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
313
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
314 (defvar url-request-data nil "Any data to send with the next request.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
315
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
316 (defvar url-request-extra-headers nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
317 "A list of extra headers to send with the next request. Should be
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
318 an assoc list of headers/contents.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
319
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
320 (defvar url-request-method nil "The method to use for the next request.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
321
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
322 (defvar url-mime-encoding-string nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
323 "String to send to the server in the Accept-encoding: field in HTTP/1.0
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
324 requests. This is created automatically from mm-content-transfer-encodings.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
325
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
326 (defvar url-mime-language-string "*"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
327 "String to send to the server in the Accept-language: field in
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
328 HTTP/1.0 requests.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
329
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
330 (defvar url-mime-accept-string nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
331 "String to send to the server in the Accept: field in HTTP/1.0 requests.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
332 This is created automatically from url-mime-viewers, after the mailcap file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
333 has been parsed.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
334
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
335 (defvar url-history-changed-since-last-save nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
336 "Whether the history list has changed since the last save operation.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
337
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
338 (defvar url-proxy-basic-authentication nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
339 "Internal structure - do not modify!")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
340
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
341 (defvar url-registered-protocols nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
342 "Internal structure - do not modify! See `url-register-protocol'")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
343
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
344 (defvar url-package-version "Unknown" "Version # of package using URL.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
345
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
346 (defvar url-package-name "Unknown" "Version # of package using URL.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
347
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
348 (defvar url-system-type nil "What type of system we are on.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
349 (defvar url-os-type nil "What OS we are on.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
350
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
351 (defvar url-max-password-attempts 5
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
352 "*Maximum number of times a password will be prompted for when a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
353 protected document is denied by the server.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
354
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
355 (defvar url-wais-to-mime
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
356 '(
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
357 ("WSRC" . "application/x-wais-source") ; A database description
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
358 ("TEXT" . "text/plain") ; plain text
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
359 )
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
360 "An assoc list of wais doctypes and their corresponding MIME
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
361 content-types.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
362
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
363 (defvar url-waisq-prog "waisq"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
364 "*Name of the waisq executable on this system. This should be the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
365 waisq program from think.com's wais8-b5.1 distribution.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
366
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
367 (defvar url-wais-gateway-server "www.ncsa.uiuc.edu"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
368 "*The machine name where the WAIS gateway lives.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
369
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
370 (defvar url-wais-gateway-port "8001"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
371 "*The port # of the WAIS gateway.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
372
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
373 (defvar url-temporary-directory "/tmp" "*Where temporary files go.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
374
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
375 (defvar url-show-status t
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
376 "*Whether to show a running total of bytes transferred. Can cause a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
377 large hit if using a remote X display over a slow link, or a terminal
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
378 with a slow modem.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
379
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
380 (defvar url-using-proxy nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
381 "Either nil or the fully qualified proxy URL in use, e.g.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
382 http://www.domain.com/")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
383
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
384 (defvar url-news-server nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
385 "*The default news server to get newsgroups/articles from if no server
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
386 is specified in the URL. Defaults to the environment variable NNTPSERVER
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
387 or \"news\" if NNTPSERVER is undefined.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
388
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
389 (defvar url-gopher-to-mime
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
390 '((?0 . "text/plain") ; It's a file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
391 (?1 . "www/gopher") ; Gopher directory
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
392 (?2 . "www/gopher-cso-search") ; CSO search
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
393 (?3 . "text/plain") ; Error
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
394 (?4 . "application/mac-binhex40") ; Binhexed macintosh file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
395 (?5 . "application/pc-binhex40") ; DOS binary archive of some sort
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
396 (?6 . "archive/x-uuencode") ; Unix uuencoded file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
397 (?7 . "www/gopher-search") ; Gopher search!
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
398 (?9 . "application/octet-stream") ; Binary file!
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
399 (?g . "image/gif") ; Gif file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
400 (?I . "image/gif") ; Some sort of image
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
401 (?h . "text/html") ; HTML source
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
402 (?s . "audio/basic") ; Sound file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
403 )
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
404 "*An assoc list of gopher types and their corresponding MIME types.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
405
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
406 (defvar url-use-hypertext-gopher t
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
407 "*Controls how gopher documents are retrieved.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
408 If non-nil, the gopher pages will be converted into HTML and parsed
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
409 just like any other page. If nil, the requests will be passed off to
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
410 the gopher.el package by Scott Snyder. Using the gopher.el package
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
411 will lose the gopher+ support, and inlined searching.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
412
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
413 (defvar url-global-history-hash-table nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
414 "Hash table for global history completion.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
415
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
416 (defvar url-nonrelative-link
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
417 "^\\([-a-zA-Z0-9+.]+:\\)"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
418 "A regular expression that will match an absolute URL.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
419
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
420 (defvar url-configuration-directory nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
421 "*Where the URL configuration files can be found.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
422
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
423 (defvar url-confirmation-func 'y-or-n-p
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
424 "*What function to use for asking yes or no functions. Possible
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
425 values are 'yes-or-no-p or 'y-or-n-p, or any function that takes a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
426 single argument (the prompt), and returns t only if a positive answer
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
427 is gotten.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
428
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
429 (defvar url-find-this-link nil "Link to go to within a document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
430
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
431 (defvar url-gateway-method 'native
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
432 "*The type of gateway support to use.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
433 Should be a symbol specifying how we are to get a connection off of the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
434 local machine.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
435
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
436 Currently supported methods:
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
437 'telnet :: Run telnet in a subprocess to connect
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
438 'rlogin :: Rlogin to another machine to connect
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
439 'socks :: Connects through a socks server
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
440 'ssl :: Connection should be made with SSL
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
441 'tcp :: Use the excellent tcp.el package from gnus.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
442 This simply does a (require 'tcp), then sets
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
443 url-gateway-method to be 'native.
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
444 'native :: Use the native open-network-stream in emacs
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
445 ")
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
446
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
447 (defvar url-running-xemacs (string-match "XEmacs" emacs-version)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
448 "*In XEmacs?.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
449
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
450 (defvar url-default-ports '(("http" . "80")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
451 ("gopher" . "70")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
452 ("telnet" . "23")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
453 ("news" . "119")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
454 ("https" . "443")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
455 ("shttp" . "80"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
456 "An assoc list of protocols and default port #s")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
457
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
458 (defvar url-setup-done nil "*Has setup configuration been done?")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
459
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
460 (defvar url-source nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
461 "*Whether to force a sourcing of the next buffer. This forces local
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
462 files to be read into a buffer, no matter what. Gets around the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
463 optimization that if you are passing it to a viewer, just make a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
464 symbolic link, which looses if you want the source for inlined
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
465 images/etc.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
466
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
467 (defconst weekday-alist
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
468 '(("Sunday" . 0) ("Monday" . 1) ("Tuesday" . 2) ("Wednesday" . 3)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
469 ("Thursday" . 4) ("Friday" . 5) ("Saturday" . 6)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
470 ("Tues" . 2) ("Thurs" . 4)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
471 ("Sun" . 0) ("Mon" . 1) ("Tue" . 2) ("Wed" . 3)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
472 ("Thu" . 4) ("Fri" . 5) ("Sat" . 6)))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
473
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
474 (defconst monthabbrev-alist
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
475 '(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4) ("May" . 5) ("Jun" . 6)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
476 ("Jul" . 7) ("Aug" . 8) ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
477 )
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
478
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
479 (defvar url-lazy-message-time 0)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
480
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
481 (defvar url-extensions-header "Security/Digest Security/SSL")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
482
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
483 (defvar url-mailserver-syntax-table
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
484 (copy-syntax-table emacs-lisp-mode-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
485 "*A syntax table for parsing the mailserver URL")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
486
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
487 (modify-syntax-entry ?' "\"" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
488 (modify-syntax-entry ?` "\"" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
489 (modify-syntax-entry ?< "(>" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
490 (modify-syntax-entry ?> ")<" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
491 (modify-syntax-entry ?/ " " url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
492
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
493 ;;; Make OS/2 happy - yeeks
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
494 (defvar tcp-binary-process-input-services nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
495 "*Make OS/2 happy with our CRLF pairs...")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
496
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
497 (provide 'url-vars)