mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-04 08:47:11 +00:00
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.
This commit is contained in:
parent
84047666a7
commit
0990ae5a8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user