]> code.delx.au - gnu-emacs/commitdiff
Gnus: fix XEmacs compilation
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 27 Nov 2014 01:33:09 +0000 (01:33 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 27 Nov 2014 01:33:09 +0000 (01:33 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el
lisp/gnus/gnus-sum.el
lisp/gnus/message.el

index f53bf02d259c55d00b24abefde4714d15c8fcb73..736cb4ee29ac9842bb21b0cd14485b5753635f3e 100644 (file)
@@ -1,3 +1,12 @@
+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):
index 3b343adb2fdd68c967adb749afea5a40ab0e30c1..b45638bd5c3d85372c333e4cad6490291bd3572d 100644 (file)
@@ -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."
index 69bb106728c79f9755b7e71d7aceeb54d1d7d66f..29f693fa9ce94c198b9e3c15d9a36fd4b0bf5b59 100644 (file)
@@ -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)")
index 0af47843d464edb6264f256b6cf959f075d4d89c..c1322154f198994e407ece8b617d978cecaa89a6 100644 (file)
@@ -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