Commit b121ef10 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

Gnus: fix XEmacs compilation

parent 666e90e5
2014-11-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (gnus-use-idna):
* gnus-sum.el (gnus-summary-idna-message):
* message.el (message-use-idna):
Protect against nil value for idna-program.
* message.el (message-use-idna): Load Mule-UCS for XEmacs 21.4.
2014-11-25 Glenn Morris <rgm@gnu.org>
 
* gnus-start.el (gnus-save-newsrc-file-check-timestamp):
......
......@@ -1628,6 +1628,7 @@ It is a string, such as \"PGP\". If nil, ask user."
(defcustom gnus-use-idna (and (condition-case nil (require 'idna) (file-error))
(mm-coding-system-p 'utf-8)
idna-program
(executable-find idna-program))
"Whether IDNA decoding of headers is used when viewing messages.
This requires GNU Libidn, and by default only enabled if it is found."
......
......@@ -9870,6 +9870,7 @@ installed for this command to work."
(if (not (and (condition-case nil (require 'idna)
(file-error))
(mm-coding-system-p 'utf-8)
(symbol-value 'idna-program)
(executable-find (symbol-value 'idna-program))))
(gnus-message
5 "GNU Libidn not installed properly (`idn' or `idna.el' missing)")
......
......@@ -1756,13 +1756,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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment