]> code.delx.au - gnu-emacs/commitdiff
Default `message-use-idna' to t
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2016 17:14:01 +0000 (19:14 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2016 17:14:12 +0000 (19:14 +0200)
* lisp/gnus/message.el (message-use-idna): Default to t (since
Emacs comes with puny.el now).

lisp/gnus/message.el

index 3b2cf672020e80a666dde6d83850bbc9fcae6dcd..fc339a4585f1f8b0bd5f4ddf3a11b139fcb1e464 100644 (file)
@@ -1756,25 +1756,9 @@ no, only reply back to the author."
   :type '(radio (const :format "%v  " nil)
                (string :format "FQDN: %v")))
 
-(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)
-        (invalid-operation))
-       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
-functionality to work."
-  :version "22.1"
+(defcustom message-use-idna t
+  "Whether to encode non-ASCII in domain names into ASCII according to IDNA."
+  :version "25.2"
   :group 'message-headers
   :link '(custom-manual "(message)IDNA")
   :type '(choice (const :tag "Ask" ask)