"VV" == Vladimir Volovich writes: VV> Hi, with emacs-20.3.6, i had VV> (set-language-environment "Cyrillic-KOI8") ;... VV> (coding-system-put (get-charset-property 'cyrillic-iso8859-5 VV> 'prefered-coding-system) 'mime-charset 'koi8-r) VV> to set the default MIME charset for posting messages with VV> cyrillic in KOI8-R (instead of ISO-8859-5). This worked fine; but VV> when i upgraded to emacs 20.4, this no longer works (yes, i VV> renamed prefered-coding-system to preferred-coding-system): my VV> messages are sent in iso-8859-5 instead of koi8-r. VV> what should i do in emacs 20.4 to get things working? :-) (1) well, finally the following works: (put-charset-property 'cyrillic-iso8859-5 'prefered-coding-system 'koi8-r) i.e. instead of coding-system-put, use put-charset-property. i wonder, why that change was needed, i.e. what changed between emacs-20.3.6 and emacs-20.4? (2) mm-util.el reads: (defun mm-preferred-coding-system (charset) ;; A typo in some Emacs versions. (or (get-charset-property charset 'prefered-coding-system) (get-charset-property charset 'preffered-coding-system))) in emacs-20.3, the name was prefered-coding-system, in emacs-20.4, it was corrected: preferred-coding-system; but gnus does not check for this name, but instead checks for preffered-coding-system, which seems to be a typo in _gnus_, not in emacs (or is preffered-coding-system really used somewhere?). [i.e. it seems that in mm-util.el, one should either change preffered-coding-system to preferred-coding-system, or add a check for preferred-coding-system]. (3) files in emacs//language/ define preferred mime charsets for coding systems, so gnus probably could extract that info from there instead of insisting to use such things as put-charset-property in .emacs file. i.e. (coding-system-get 'cyrillic-koi8 'mime-charset) returns koi8-r. Also, emacs//lisp/international/ contains some useful stuff for charsets, e.g. mule-cmds.el contains find-coding-systems-for-charsets which could be used in gnus. (find-coding-systems-for-charsets (find-charset-string "test ΤΕΣΤ")) (cyrillic-koi8 cyrillic-iso-8bit x-ctext iso-2022-7bit iso-2022-7bit-lock iso-2022-8bit-ss2 emacs-mule raw-text cyrillic-alternativnyj thai-tis620-with-esc tibetan-iso-8bit-with-esc lao-with-esc korean-iso-8bit-with-esc japanese-iso-8bit-with-esc in-is13194-devanagari-with-esc chinese-iso-8bit-with-esc iso-latin-5-with-esc hebrew-iso-8bit-with-esc greek-iso-8bit-with-esc cyrillic-iso-8bit-with-esc iso-latin-4-with-esc iso-latin-3-with-esc iso-latin-2-with-esc iso-latin-1-with-esc compound-text iso-2022-7bit-ss2)