diff options
| author | Katsumi Yamaoka | 2014-11-27 01:33:09 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2014-11-27 01:33:09 +0000 |
| commit | b121ef10f500c0377c2ce665e8ccd8b97a6aedfd (patch) | |
| tree | 291656f96728a153bd7649303d870dbd07b28d6c | |
| parent | 666e90e5ccef2d2b19428b6a5cb41a2efe7d46db (diff) | |
| download | emacs-b121ef10f500c0377c2ce665e8ccd8b97a6aedfd.tar.gz emacs-b121ef10f500c0377c2ce665e8ccd8b97a6aedfd.zip | |
Gnus: fix XEmacs compilation
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 18 |
4 files changed, 22 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f53bf02d259..736cb4ee29a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2014-11-27 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-use-idna): | ||
| 4 | * gnus-sum.el (gnus-summary-idna-message): | ||
| 5 | * message.el (message-use-idna): | ||
| 6 | Protect against nil value for idna-program. | ||
| 7 | |||
| 8 | * message.el (message-use-idna): Load Mule-UCS for XEmacs 21.4. | ||
| 9 | |||
| 1 | 2014-11-25 Glenn Morris <rgm@gnu.org> | 10 | 2014-11-25 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * gnus-start.el (gnus-save-newsrc-file-check-timestamp): | 12 | * gnus-start.el (gnus-save-newsrc-file-check-timestamp): |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 3b343adb2fd..b45638bd5c3 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1628,6 +1628,7 @@ It is a string, such as \"PGP\". If nil, ask user." | |||
| 1628 | 1628 | ||
| 1629 | (defcustom gnus-use-idna (and (condition-case nil (require 'idna) (file-error)) | 1629 | (defcustom gnus-use-idna (and (condition-case nil (require 'idna) (file-error)) |
| 1630 | (mm-coding-system-p 'utf-8) | 1630 | (mm-coding-system-p 'utf-8) |
| 1631 | idna-program | ||
| 1631 | (executable-find idna-program)) | 1632 | (executable-find idna-program)) |
| 1632 | "Whether IDNA decoding of headers is used when viewing messages. | 1633 | "Whether IDNA decoding of headers is used when viewing messages. |
| 1633 | This requires GNU Libidn, and by default only enabled if it is found." | 1634 | This requires GNU Libidn, and by default only enabled if it is found." |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 69bb106728c..29f693fa9ce 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -9870,6 +9870,7 @@ installed for this command to work." | |||
| 9870 | (if (not (and (condition-case nil (require 'idna) | 9870 | (if (not (and (condition-case nil (require 'idna) |
| 9871 | (file-error)) | 9871 | (file-error)) |
| 9872 | (mm-coding-system-p 'utf-8) | 9872 | (mm-coding-system-p 'utf-8) |
| 9873 | (symbol-value 'idna-program) | ||
| 9873 | (executable-find (symbol-value 'idna-program)))) | 9874 | (executable-find (symbol-value 'idna-program)))) |
| 9874 | (gnus-message | 9875 | (gnus-message |
| 9875 | 5 "GNU Libidn not installed properly (`idn' or `idna.el' missing)") | 9876 | 5 "GNU Libidn not installed properly (`idn' or `idna.el' missing)") |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 0af47843d46..c1322154f19 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -1756,13 +1756,17 @@ no, only reply back to the author." | |||
| 1756 | :type '(radio (const :format "%v " nil) | 1756 | :type '(radio (const :format "%v " nil) |
| 1757 | (string :format "FQDN: %v"))) | 1757 | (string :format "FQDN: %v"))) |
| 1758 | 1758 | ||
| 1759 | (defcustom message-use-idna (and (condition-case nil (require 'idna) | 1759 | (defcustom message-use-idna |
| 1760 | (file-error)) | 1760 | (and (or (mm-coding-system-p 'utf-8) |
| 1761 | (mm-coding-system-p 'utf-8) | 1761 | (condition-case nil |
| 1762 | (executable-find idna-program) | 1762 | (let (mucs-ignore-version-incompatibilities) |
| 1763 | (string= (idna-to-ascii "räksmörgås") | 1763 | (require 'un-define)) |
| 1764 | "xn--rksmrgs-5wao1o") | 1764 | (error))) |
| 1765 | t) | 1765 | (condition-case nil (require 'idna) (file-error)) |
| 1766 | idna-program | ||
| 1767 | (executable-find idna-program) | ||
| 1768 | (string= (idna-to-ascii "räksmörgås") "xn--rksmrgs-5wao1o") | ||
| 1769 | t) | ||
| 1766 | "Whether to encode non-ASCII in domain names into ASCII according to IDNA. | 1770 | "Whether to encode non-ASCII in domain names into ASCII according to IDNA. |
| 1767 | GNU Libidn, and in particular the elisp package \"idna.el\" and | 1771 | GNU Libidn, and in particular the elisp package \"idna.el\" and |
| 1768 | the external program \"idn\", must be installed for this | 1772 | the external program \"idn\", must be installed for this |