summaryrefslogtreecommitdiff
path: root/lisp/url
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-07-09 03:44:06 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-09 03:44:13 +0200
commit0990ae5a8b769a0db7a9c9abd05bd5d89db44d45 (patch)
treed42e57f721bc69737ec2d9432159ae78a3c3e017 /lisp/url
parent84047666a7e04dab959ab4e6d471d2677bc31dac (diff)
downloademacs-0990ae5a8b769a0db7a9c9abd05bd5d89db44d45.tar.gz
Don't set url-mime-charset-string from set-language-environment
* lisp/url/url-vars.el (url-set-mime-charset-string): Make obsolete and don't add to set-language-environment-hook (bug#36268). If you loaded url-vars before calling set-language-environment, you would suddenly get an unusable long url-mime-charset-string.
Diffstat (limited to 'lisp/url')
-rw-r--r--lisp/url/url-vars.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el
index 28f876554bb..134404c9984 100644
--- a/lisp/url/url-vars.el
+++ b/lisp/url/url-vars.el
@@ -272,9 +272,8 @@ The MIME charset corresponding to the most preferred coding system is
given priority 1 and the rest are given priority 0.5.")
(defun url-set-mime-charset-string ()
+ (declare (obsolete nil "27.1"))
(setq url-mime-charset-string (url-mime-charset-string)))
-;; Regenerate if the language environment changes.
-(add-hook 'set-language-environment-hook 'url-set-mime-charset-string)
;; Fixme: set from the locale.
(defcustom url-mime-language-string nil