annotate lisp/w3/url-vars.el @ 125:8b0638b347ec

Added tag r20-1b15 for changeset 9b50b4588a93
author cvs
date Mon, 13 Aug 2007 09:26:41 +0200
parents 9b50b4588a93
children 34a5b81f86ba
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
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
3 ;; Created: 1997/04/11 14:49:23
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
4 ;; Version: 1.52
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
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
29 (eval-and-compile
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
30 (condition-case ()
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
31 (require 'custom)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
32 (error nil))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
33 (if (and (featurep 'custom) (fboundp 'custom-declare-variable))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
34 nil ;; We've got what we needed
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
35 ;; We have the old custom-library, hack around it!
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
36 (defmacro defgroup (&rest args)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
37 nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
38 (defmacro defcustom (var value doc &rest args)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
39 (` (defvar (, var) (, value) (, doc))))))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
40
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
41 (defconst url-version (let ((x "p3.0.82"))
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
42 (if (string-match "State: \\([^ \t\n]+\\)" x)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
43 (substring x (match-beginning 1) (match-end 1))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
44 x))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
45 "Version # of URL package.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
46
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
47 (defgroup url nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
48 "Uniform Resource Locator tool"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
49 :group 'hypermedia)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
50
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
51 (defgroup url-file nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
52 "URL storage"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
53 :prefix "url-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
54 :group 'url)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
55
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
56 (defgroup url-cache nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
57 "URL cache"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
58 :prefix "url-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
59 :prefix "url-cache-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
60 :group 'url)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
61
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
62 (defgroup url-history nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
63 "History variables in the URL package"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
64 :prefix "url-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
65 :group 'url)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
66
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
67 (defgroup url-cookie nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
68 "URL cookies"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
69 :prefix "url-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
70 :prefix "url-cookie-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
71 :group 'url)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
72
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
73 (defgroup url-mime nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
74 "MIME options of URL"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
75 :prefix "url-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
76 :group 'url)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
77
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
78 (defgroup url-hairy nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
79 "Hairy options of URL"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
80 :prefix "url-"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
81 :group 'url)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
82
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
83
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
84 (defvar url-current-can-be-cached t
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
85 "*Whether the current URL can be cached.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
86
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
87 (defvar url-current-object nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
88 "A parsed representation of the current url")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
89
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
90 (defvar url-current-callback-func nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
91 "*The callback function for the current buffer.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
92
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
93 (defvar url-current-callback-data nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
94 "*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
95 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
96
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
97 (mapcar 'make-variable-buffer-local '(
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
98 url-current-callback-data
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
99 url-current-callback-func
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
100 url-current-can-be-cached
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
101 url-current-content-length
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
102 url-current-isindex
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
103 url-current-mime-encoding
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
104 url-current-mime-headers
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
105 url-current-mime-type
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
106 url-current-mime-viewer
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
107 url-current-object
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
108 url-current-referer
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
109
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
110 ;; obsolete
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
111 ;; url-current-file
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
112 ;; url-current-port
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
113 ;; url-current-server
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
114 ;; url-current-type
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
115 ;; url-current-user
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
116 ))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
117
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
118 (defvar url-cookie-storage nil "Where cookies are stored.")
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
119 (defvar url-cookie-secure-storage nil "Where secure cookies are stored.")
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
120 (defcustom url-cookie-file nil "*Where cookies are stored on disk."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
121 :type '(choice (const :tag "Default" :value nil) file)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
122 :group 'url-file
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
123 :group 'url-cookie)
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
124
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
125 (defcustom url-default-retrieval-proc 'url-default-callback
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
126 "*The default action to take when an asynchronous retrieval completes."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
127 :type 'function
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
128 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
129
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
130 (defcustom url-honor-refresh-requests t
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
131 "*Whether to do automatic page reloads at the request of the document
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
132 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
133 If nil, no refresh requests will be honored.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
134 If t, all refresh requests will be honored.
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
135 If non-nil and not t, the user will be asked for each refresh request."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
136 :type '(choice (const :tag "off" nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
137 (const :tag "on" t)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
138 (const :tag "ask" 'ask))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
139 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
140
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
141 (defcustom url-inhibit-mime-parsing nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
142 "Whether to parse out (and delete) the MIME headers from a message."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
143 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
144 :group 'url-mime)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
145
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
146 (defcustom url-automatic-caching nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
147 "*If non-nil, all documents will be automatically cached to the local
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
148 disk."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
149 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
150 :group 'url-cache)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
151
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
152 (defcustom url-cache-expired
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
153 (function (lambda (t1 t2) (>= (- (car t2) (car t1)) 5)))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
154 "*A function (`funcall'able) that takes two times as its arguments, and
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
155 returns non-nil if the second time is 'too old' when compared to the first
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
156 time."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
157 :type 'function
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
158 :group 'url-cache)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
159
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
160 (defvar url-bug-address "wmperry@cs.indiana.edu"
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
161 "Where to send bug reports.")
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
162
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
163 (defcustom url-cookie-confirmation nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
164 "*If non-nil, confirmation by the user is required to accept HTTP cookies."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
165 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
166 :group 'url-cookie)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
167
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
168 (defcustom url-personal-mail-address nil
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
169 "*Your full email address.
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
170 This is what is sent to HTTP/1.0 servers as the FROM field in an HTTP/1.0
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
171 request."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
172 :type '(choice (const nil) string)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
173 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
174
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
175 (defcustom url-directory-index-file "index.html"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
176 "*The filename to look for when indexing a directory.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
177 If this file exists, and is readable, then it will be viewed instead of
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
178 using `dired' to view the directory."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
179 :type 'string
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
180 :group 'url-file)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
181
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
182 (defcustom url-privacy-level '(email)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
183 "*How private you want your requests to be.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
184 HTTP/1.0 has header fields for various information about the user, including
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
185 operating system information, email addresses, the last page you visited, etc.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
186 This variable controls how much of this information is sent.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
187
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
188 This should a symbol or a list.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
189 Valid values if a symbol are:
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
190 none -- Send all information
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
191 low -- Don't send the last location
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
192 high -- Don't send the email address or last location
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
193 paranoid -- Don't send anything
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
194
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
195 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
196 Valid symbols are:
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
197 email -- the email address
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
198 os -- the operating system info
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
199 lastloc -- the last location
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
200 agent -- Do not send the User-Agent string
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
201 cookie -- never accept HTTP cookies
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
202
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
203 Samples:
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
204
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
205 (setq url-privacy-level 'high)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
206 (setq url-privacy-level '(email lastloc)) ;; equivalent to 'high
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
207 (setq url-privacy-level '(os))
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
208
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
209 ::NOTE::
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
210 This variable controls several other variables and is _NOT_ automatically
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
211 updated. Call the function `url-setup-privacy-info' after modifying this
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
212 variable."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
213 :type '(choice (const :tag "None (you believe in the basic goodness of humanity)"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
214 :value none)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
215 (const :tag "Low (do not reveal last location)"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
216 :value low)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
217 (const :tag "High (no email address or last location)"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
218 :value high)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
219 (const :tag "Paranoid (reveal nothing!)"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
220 :value paranoid)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
221 (checklist :tag "Custom"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
222 (const :tag "Email address" :value email)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
223 (const :tag "Operating system" :value os)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
224 (const :tag "Last location" :value lastloc)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
225 (const :tag "Browser identification" :value agent)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
226 (const :tag "No cookies" :value cookie)))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
227 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
228
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
229 (defvar url-history-list nil "List of urls visited this session.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
230
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
231 (defvar url-inhibit-uncompression nil "Do not do decompression if non-nil.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
232
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
233 (defcustom url-keep-history nil
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
234 "*Controls whether to keep a list of all the URLS being visited.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
235 If non-nil, url will keep track of all the URLS visited.
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
236 If eq to `t', then the list is saved to disk at the end of each emacs
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
237 session."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
238 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
239 :group 'url-history)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
240
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
241 (defcustom url-uncompressor-alist '((".z" . "x-gzip")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
242 (".gz" . "x-gzip")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
243 (".uue" . "x-uuencoded")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
244 (".hqx" . "x-hqx")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
245 (".Z" . "x-compress"))
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
246 "*An assoc list of file extensions and the appropriate
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
247 content-transfer-encodings for each."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
248 :type '(repeat (cons (string :tag "Extension") (string :tag "Encoding")))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
249 :group 'url-mime)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
250
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
251 (defcustom url-mail-command 'url-mail
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
252 "*This function will be called whenever url needs to send mail.
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
253 It should enter a mail-mode-like buffer in the current window.
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
254 The commands mail-to and mail-subject should still work in this
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
255 buffer, and it should use mail-header-separator if possible."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
256 :type 'function
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
257 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
258
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
259 (defcustom url-proxy-services nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
260 "*An assoc list of access types and servers that gateway them.
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
261 Looks like ((\"http\" . \"hostname:portnumber\") ....) This is set up
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
262 from the ACCESS_proxy environment variables in url-do-setup."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
263 :type '(repeat (cons (string :tag "Protocol")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
264 (string :tag "Proxy"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
265 :validate widget-field-validate
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
266 :valid-regexp "^[a-z.0-9-:]+$")))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
267 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
268
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
269 (defcustom url-global-history-file nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
270 "*The global history file used by both Mosaic/X and the url package.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
271 This file contains a list of all the URLs you have visited. This file
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
272 is parsed at startup and used to provide URL completion."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
273 :type '(choice (const :tag "Default" :value nil) file)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
274 :group 'url-history)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
275
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
276 (defcustom url-global-history-save-interval 3600
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
277 "*The number of seconds between automatic saves of the history list.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
278 Default is 1 hour. Note that if you change this variable after `url-do-setup'
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
279 has been run, you need to run the `url-setup-save-timer' function manually."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
280 :type 'integer
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
281 :group 'url-history)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
282
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
283 (defvar url-global-history-timer nil)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
284
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
285 (defcustom url-passwd-entry-func nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
286 "*This is a symbol indicating which function to call to read in a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
287 password. It will be set up depending on whether you are running EFS
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
288 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
289 prompt string as its first argument, and the default value as its
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
290 second argument."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
291 :type '(choice (const :tag "Guess" :value nil)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
292 (const :tag "Use Ange-FTP" :value ange-ftp-read-passwd)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
293 (const :tag "Use EFS" :value efs-read-passwd)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
294 (const :tag "Use Password Package" :value read-passwd)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
295 (function :tag "Other"))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
296 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
297
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
298 (defcustom url-gopher-labels
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
299 '(("0" . "(TXT)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
300 ("1" . "(DIR)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
301 ("2" . "(CSO)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
302 ("3" . "(ERR)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
303 ("4" . "(MAC)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
304 ("5" . "(PCB)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
305 ("6" . "(UUX)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
306 ("7" . "(???)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
307 ("8" . "(TEL)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
308 ("T" . "(TN3)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
309 ("9" . "(BIN)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
310 ("g" . "(GIF)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
311 ("I" . "(IMG)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
312 ("h" . "(WWW)")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
313 ("s" . "(SND)"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
314 "*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
315 menus. These can be any string, but HTML/HTML+ entities should be
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
316 used when necessary, or it could disrupt formatting of the document
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
317 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
318 same length after entity references are removed, on a strictly
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
319 stylistic level."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
320 :type '(repeat (cons (string :tag "Type")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
321 (string :tag "Description")))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
322 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
323
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
324 (defcustom url-gopher-icons
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
325 '(
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
326 ("0" . "&text.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
327 ("1" . "&folder;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
328 ("2" . "&index;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
329 ("3" . "&stop;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
330 ("4" . "&binhex.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
331 ("5" . "&binhex.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
332 ("6" . "&uuencoded.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
333 ("7" . "&index;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
334 ("8" . "&telnet;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
335 ("T" . "&tn3270;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
336 ("9" . "&binary.document;")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
337 ("g" . "ℑ")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
338 ("I" . "ℑ")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
339 ("s" . "&audio;"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
340 "*An assoc list of gopher types and the graphic entity references to
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
341 show when possible."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
342 :type '(repeat (cons (string :tag "Type")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
343 (string :tag "Icon")))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
344 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
345
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
346 (defcustom url-standalone-mode nil "*Rely solely on the cache?"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
347 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
348 :group 'url-cache)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
349 (defcustom url-multiple-p t
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
350 "*If non-nil, multiple queries are possible through ` *URL-<i>*' buffers"
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
351 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
352 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
353 (defvar url-default-working-buffer " *URL*" " The default buffer to do all of the processing in.")
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
354 (defvar url-working-buffer url-default-working-buffer
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
355 "The buffer to do all of the processing in.
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
356 It defaults to `url-default-working-buffer' and is bound to *URL-<i>*
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
357 buffers when used for multiple requests, cf. `url-multiple-p'")
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
358 (defvar url-current-referer nil "Referer of this page.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
359 (defvar url-current-content-length nil "Current content length.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
360 (defvar url-current-isindex nil "Is the current document a searchable index?")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
361 (defvar url-current-mime-encoding nil "MIME encoding of current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
362 (defvar url-current-mime-headers nil "An alist of MIME headers.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
363 (defvar url-current-mime-type nil "MIME type of current document.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
364 (defvar url-current-mime-viewer nil "How to view the current MIME doc.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
365 (defvar url-current-passwd-count 0 "How many times password has failed.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
366 (defvar url-gopher-types "0123456789+gIThws:;<"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
367 "A string containing character representations of all the gopher types.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
368 (defvar url-mime-separator-chars (mapcar 'identity
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
369 (concat "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
370 "abcdefghijklmnopqrstuvwxyz"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
371 "0123456789'()+_,-./=?"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
372 "Characters allowable in a MIME multipart separator.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
373
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
374 (defcustom url-bad-port-list
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
375 '("25" "119" "19")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
376 "*List of ports to warn the user about connecting to. Defaults to just
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
377 the mail, chargen, and NNTP ports so you cannot be tricked into sending
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
378 fake mail or forging messages by a malicious HTML document."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
379 :type '(repeat (string :tag "Port"))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
380 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
381
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
382 (defcustom url-be-anal-about-file-attributes nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
383 "*Whether to use HTTP/1.0 to figure out file attributes
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
384 or just guess based on file extension, etc."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
385 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
386 :group 'url-mime)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
387
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
388 (defcustom url-be-asynchronous nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
389 "*Controls whether document retrievals over HTTP should be done in
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
390 the background. This allows you to keep working in other windows
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
391 while large downloads occur."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
392 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
393 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
394 (make-variable-buffer-local 'url-be-asynchronous)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
395
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
396 (defvar url-request-data nil "Any data to send with the next request.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
397
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
398 (defvar url-request-extra-headers nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
399 "A list of extra headers to send with the next request. Should be
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
400 an assoc list of headers/contents.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
401
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
402 (defvar url-request-method nil "The method to use for the next request.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
403
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
404 (defvar url-mime-encoding-string nil
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
405 "*String to send to the server in the Accept-encoding: field in HTTP/1.0
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
406 requests. This is created automatically from mm-content-transfer-encodings.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
407
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
408 (defcustom url-mime-language-string "*"
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
409 "*String to send to the server in the Accept-language: field in
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
410 HTTP/1.0 requests."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
411 :type 'string
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
412 :group 'url-mime
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
413 :group 'i18n)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
414
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
415 (defvar url-mime-accept-string nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
416 "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
417 This is created automatically from url-mime-viewers, after the mailcap file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
418 has been parsed.")
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-history-changed-since-last-save nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
421 "Whether the history list has changed since the last save operation.")
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-proxy-basic-authentication nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
424 "Internal structure - do not modify!")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
425
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
426 (defvar url-registered-protocols nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
427 "Internal structure - do not modify! See `url-register-protocol'")
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-package-version "Unknown" "Version # of package using URL.")
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-package-name "Unknown" "Version # of package using URL.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
432
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
433 (defvar url-system-type nil "What type of system we are on.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
434 (defvar url-os-type nil "What OS we are on.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
435
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
436 (defcustom url-max-password-attempts 5
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
437 "*Maximum number of times a password will be prompted for when a
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
438 protected document is denied by the server."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
439 :type 'integer
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
440 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
441
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
442 (defcustom url-temporary-directory (or (getenv "TMPDIR") "/tmp")
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
443 "*Where temporary files go."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
444 :type 'directory
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
445 :group 'url-file)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
446
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
447 (defcustom url-show-status t
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
448 "*Whether to show a running total of bytes transferred. Can cause a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
449 large hit if using a remote X display over a slow link, or a terminal
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
450 with a slow modem."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
451 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
452 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
453
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
454 (defvar url-using-proxy nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
455 "Either nil or the fully qualified proxy URL in use, e.g.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
456 http://www.domain.com/")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
457
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
458 (defcustom url-news-server nil
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
459 "*The default news server to get newsgroups/articles from if no server
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
460 is specified in the URL. Defaults to the environment variable NNTPSERVER
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
461 or \"news\" if NNTPSERVER is undefined."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
462 :type '(choice (const :tag "None" :value nil) string)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
463 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
464
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
465 (defcustom url-gopher-to-mime
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
466 '((?0 . "text/plain") ; It's a file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
467 (?1 . "www/gopher") ; Gopher directory
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
468 (?2 . "www/gopher-cso-search") ; CSO search
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
469 (?3 . "text/plain") ; Error
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
470 (?4 . "application/mac-binhex40") ; Binhexed macintosh file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
471 (?5 . "application/pc-binhex40") ; DOS binary archive of some sort
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
472 (?6 . "archive/x-uuencode") ; Unix uuencoded file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
473 (?7 . "www/gopher-search") ; Gopher search!
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
474 (?9 . "application/octet-stream") ; Binary file!
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
475 (?g . "image/gif") ; Gif file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
476 (?I . "image/gif") ; Some sort of image
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
477 (?h . "text/html") ; HTML source
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
478 (?s . "audio/basic") ; Sound file
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
479 )
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
480 "*An assoc list of gopher types and their corresponding MIME types."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
481 :type '(repeat (cons sexp string))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
482 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
483
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
484 (defcustom url-use-hypertext-gopher t
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
485 "*Controls how gopher documents are retrieved.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
486 If non-nil, the gopher pages will be converted into HTML and parsed
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
487 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
488 the gopher.el package by Scott Snyder. Using the gopher.el package
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
489 will lose the gopher+ support, and inlined searching."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
490 :type 'boolean
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
491 :group 'url)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
492
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
493 (defvar url-global-history-hash-table nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
494 "Hash table for global history completion.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
495
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
496 (defvar url-nonrelative-link
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
497 "^\\([-a-zA-Z0-9+.]+:\\)"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
498 "A regular expression that will match an absolute URL.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
499
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
500 (defcustom url-confirmation-func 'y-or-n-p
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
501 "*What function to use for asking yes or no functions. Possible
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
502 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
503 single argument (the prompt), and returns t only if a positive answer
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
504 is gotten."
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
505 :type '(choice (const :tag "Short (y or n)" :value y-or-n-p)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
506 (const :tag "Long (yes or no)" :value yes-or-no-p)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
507 (function :tag "Other"))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
508 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
509
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
510 (defcustom url-gateway-method 'native
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
511 "*The type of gateway support to use.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
512 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
513 local machine.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
514
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
515 Currently supported methods:
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
516 'telnet :: Run telnet in a subprocess to connect
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
517 'rlogin :: Rlogin to another machine to connect
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
518 'socks :: Connects through a socks server
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
519 'ssl :: Connection should be made with SSL
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
520 'tcp :: Use the excellent tcp.el package from gnus.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
521 This simply does a (require 'tcp), then sets
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
522 url-gateway-method to be 'native.
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
523 'native :: Use the native open-network-stream in emacs
124
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
524 "
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
525 :type '(radio (const :tag "Telnet to gateway host" :value telnet)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
526 (const :tag "Rlogin to gateway host" :value rlogin)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
527 (const :tag "Use SOCKS proxy" :value socks)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
528 (const :tag "Use SSL for all connections" :value ssl)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
529 (const :tag "Use the `tcp' package" :value tcp)
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
530 (const :tag "Direct connection" :value native))
9b50b4588a93 Import from CVS: tag r20-1b15
cvs
parents: 122
diff changeset
531 :group 'url-hairy)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
532
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
533 (defvar url-running-xemacs (string-match "XEmacs" emacs-version)
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
534 "*Got XEmacs?")
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
535
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
536 (defvar url-default-ports '(("http" . "80")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
537 ("gopher" . "70")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
538 ("telnet" . "23")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
539 ("news" . "119")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
540 ("https" . "443")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
541 ("shttp" . "80"))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
542 "An assoc list of protocols and default port #s")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
543
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
544 (defvar url-setup-done nil "*Has setup configuration been done?")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
545
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
546 (defvar url-source nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
547 "*Whether to force a sourcing of the next buffer. This forces local
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
548 files to be read into a buffer, no matter what. Gets around the
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
549 optimization that if you are passing it to a viewer, just make a
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
550 symbolic link, which looses if you want the source for inlined
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
551 images/etc.")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
552
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
553 (defconst weekday-alist
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
554 '(("Sunday" . 0) ("Monday" . 1) ("Tuesday" . 2) ("Wednesday" . 3)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
555 ("Thursday" . 4) ("Friday" . 5) ("Saturday" . 6)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
556 ("Tues" . 2) ("Thurs" . 4)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
557 ("Sun" . 0) ("Mon" . 1) ("Tue" . 2) ("Wed" . 3)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
558 ("Thu" . 4) ("Fri" . 5) ("Sat" . 6)))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
559
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
560 (defconst monthabbrev-alist
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
561 '(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4) ("May" . 5) ("Jun" . 6)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
562 ("Jul" . 7) ("Aug" . 8) ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
563 )
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
564
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
565 (defvar url-lazy-message-time 0)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
566
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
567 (defvar url-extensions-header "Security/Digest Security/SSL")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
568
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
569 (defvar url-mailserver-syntax-table
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
570 (copy-syntax-table emacs-lisp-mode-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
571 "*A syntax table for parsing the mailserver URL")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
572
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
573 (modify-syntax-entry ?' "\"" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
574 (modify-syntax-entry ?` "\"" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
575 (modify-syntax-entry ?< "(>" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
576 (modify-syntax-entry ?> ")<" url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
577 (modify-syntax-entry ?/ " " url-mailserver-syntax-table)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
578
122
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
579 (defvar url-handle-no-scheme-hook nil
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
580 "*Hooks to be run until one can successfully transform an incomplete URL.
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
581
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
582 Each hook is called with a single argument URL and should return a tranformed
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
583 url with a valid scheme (e.g., \"gnu\" --> \"http://www.gnu.org/\"), or nil
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
584 otherwise.")
d2f30a177268 Import from CVS: tag r20-1b14
cvs
parents: 120
diff changeset
585
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
586 ;;; Make OS/2 happy - yeeks
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
587 (defvar tcp-binary-process-input-services nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
588 "*Make OS/2 happy with our CRLF pairs...")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
589
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents:
diff changeset
590 (provide 'url-vars)