X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fmessage.el;h=828dfdeb53d13eed0f0d99528a837d013c18cb95;hp=a0ac44973bb4b35e1a4f7024b3a8f33f4a9dc067;hb=54b3844ec0d9b1fd25b4f00f927853ff72ba5274;hpb=ba115d03543f5f95fb3251a619d42aa9f7177327 diff --git a/lisp/message.el b/lisp/message.el index a0ac44973..828dfdeb5 100644 --- a/lisp/message.el +++ b/lisp/message.el @@ -1800,13 +1800,17 @@ no, only reply back to the author." :type '(radio (const :format "%v " nil) (string :format "FQDN: %v"))) -(defcustom message-use-idna (and (condition-case nil (require 'idna) - (file-error)) - (mm-coding-system-p 'utf-8) - (executable-find idna-program) - (string= (idna-to-ascii "räksmörgås") - "xn--rksmrgs-5wao1o") - t) +(defcustom message-use-idna + (and (or (mm-coding-system-p 'utf-8) + (condition-case nil + (let (mucs-ignore-version-incompatibilities) + (require 'un-define)) + (error))) + (condition-case nil (require 'idna) (file-error)) + idna-program + (executable-find idna-program) + (string= (idna-to-ascii "räksmörgås") "xn--rksmrgs-5wao1o") + t) "Whether to encode non-ASCII in domain names into ASCII according to IDNA. GNU Libidn, and in particular the elisp package \"idna.el\" and the external program \"idn\", must be installed for this