annotate lisp/url/url-vars.el @ 2:ac2d302a0011 r19-15b2

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