summaryrefslogtreecommitdiff
path: root/lisp/url
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-10-16 15:02:02 +0000
committerRichard M. Stallman <rms@gnu.org>2004-10-16 15:02:02 +0000
commit32d3ca3a30542c91cf8d53fcf92dc632388ead89 (patch)
tree5ee4d82230a94709b0b33b76c03d65c74c586744 /lisp/url
parentf5d4d259396f273f14c30d40daa54d5d67145f43 (diff)
downloademacs-32d3ca3a30542c91cf8d53fcf92dc632388ead89.tar.gz
(url-passwd-entry-func): Var deleted.
(mm-mime-mule-charset-alist): Remove compatibility code for old Gnus. (url-weekday-alist): Renamed from weekday-alist. (url-monthabbrev-alist): Renamed from monthabbrev-alist. (url-vars-unload-hook): Initialize hook var to hold the function.
Diffstat (limited to 'lisp/url')
-rw-r--r--lisp/url/url-vars.el37
1 files changed, 4 insertions, 33 deletions
diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el
index a33d8ba43e3..97a9b8dc252 100644
--- a/lisp/url/url-vars.el
+++ b/lisp/url/url-vars.el
@@ -191,19 +191,6 @@ from the ACCESS_proxy environment variables."
(string :tag "Proxy")))
:group 'url)
-(defcustom url-passwd-entry-func nil
- "*Symbol indicating which function to call to read in a password.
-It will be set up depending on whether you are running EFS or ange-ftp
-at startup if it is nil. This function should accept the prompt
-string as its first argument, and the default value as its second
-argument."
- :type '(choice (const :tag "Guess" :value nil)
- (const :tag "Use Ange-FTP" :value ange-ftp-read-passwd)
- (const :tag "Use EFS" :value efs-read-passwd)
- (const :tag "Use Password Package" :value read-passwd)
- (function :tag "Other"))
- :group 'url-hairy)
-
(defcustom url-standalone-mode nil
"*Rely solely on the cache?"
:type 'boolean
@@ -240,24 +227,6 @@ Should be an assoc list of headers/contents.")
(defvar url-mime-encoding-string nil
"*String to send in the Accept-encoding: field in HTTP requests.")
-;; `mm-mime-mule-charset-alist' in Gnus 5.8/9 contains elements whose
-;; cars aren't valid MIME charsets/coding systems, at least in Emacs.
-;; This gets it correct by construction in Emacs. Fixme: DTRT for
-;; XEmacs -- its `coding-system-list' doesn't have the BASE-ONLY arg.
-(when (and (not (featurep 'xemacs))
- (fboundp 'coding-system-list))
- (setq mm-mime-mule-charset-alist
- (apply
- 'nconc
- (mapcar
- (lambda (cs)
- (when (and (coding-system-get cs 'mime-charset)
- (not (eq t (coding-system-get cs 'safe-charsets))))
- (list (cons (coding-system-get cs 'mime-charset)
- (delq 'ascii
- (coding-system-get cs 'safe-charsets))))))
- (coding-system-list 'base-only)))))
-
;; Perhaps the first few should actually be given decreasing `q's and
;; the list should be trimmed significantly.
;; Fixme: do something sane if we don't have `sort-coding-systems'
@@ -381,14 +350,14 @@ Currently supported methods:
(defvar url-setup-done nil "Has setup configuration been done?")
-(defconst weekday-alist
+(defconst url-weekday-alist
'(("Sunday" . 0) ("Monday" . 1) ("Tuesday" . 2) ("Wednesday" . 3)
("Thursday" . 4) ("Friday" . 5) ("Saturday" . 6)
("Tues" . 2) ("Thurs" . 4)
("Sun" . 0) ("Mon" . 1) ("Tue" . 2) ("Wed" . 3)
("Thu" . 4) ("Fri" . 5) ("Sat" . 6)))
-(defconst monthabbrev-alist
+(defconst url-monthabbrev-alist
'(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4) ("May" . 5) ("Jun" . 6)
("Jul" . 7) ("Aug" . 8) ("Sep" . 9) ("Oct" . 10) ("Nov" . 11)
("Dec" . 12)))
@@ -425,6 +394,8 @@ This should be set, e.g. by mail user agents rendering HTML to avoid
(defun url-vars-unload-hook ()
(remove-hook 'set-language-environment-hook 'url-set-mime-charset-string))
+(add-hook 'url-vars-unload-hook 'url-vars-unload-hook)
+
(provide 'url-vars)
;;; arch-tag: 29205e5f-c5ce-433c-8d5d-38cbaed64b49