From 0199c9c8cbb321a62e8227de43a390a4ee3634fb Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Thu, 11 Nov 2010 01:42:48 +0000 Subject: [PATCH] gnus-art.el (article-treat-non-ascii): Make it work for XEmacs (at least 21.5). smime.el (from): Declare it again for XEmacs. --- lisp/ChangeLog | 7 +++++++ lisp/gnus-art.el | 6 ++++-- lisp/smime.el | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9e15ab31a..2c5eded3d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2010-11-11 Katsumi Yamaoka + + * gnus-art.el (article-treat-non-ascii): Make it work for XEmacs (at + least 21.5). + + * smime.el (from): Declare it again for XEmacs. + 2010-11-10 Lars Magne Ingebrigtsen * message.el (message-resend): Don't disable encoding unless it's diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el index 327ba39f8..82de5b464 100644 --- a/lisp/gnus-art.el +++ b/lisp/gnus-art.el @@ -2120,7 +2120,7 @@ try this wash." "Translate many Unicode characters into their ASCII equivalents." (interactive) (require 'org-entities) - (let ((table (make-char-table nil))) + (let ((table (make-char-table (if (featurep 'xemacs) 'generic)))) (dolist (elem org-entities) (when (and (listp elem) (= (length (nth 6 elem)) 1)) @@ -2132,7 +2132,9 @@ try this wash." (let ((inhibit-read-only t) replace) (while (not (eobp)) - (if (not (setq replace (aref table (following-char)))) + (if (not (setq replace (if (featurep 'xemacs) + (get-char-table (following-char) table) + (aref table (following-char))))) (forward-char 1) (delete-char 1) (insert replace)))))))) diff --git a/lisp/smime.el b/lisp/smime.el index 18b5dbd26..3045e76ce 100644 --- a/lisp/smime.el +++ b/lisp/smime.el @@ -426,6 +426,8 @@ Any details (stdout and stderr) are left in the buffer specified by (insert-buffer-substring smime-details-buffer) nil)) +(defvar from) ;; Necessary for XEmacs to silence the byte compiler. + (defun smime-decrypt-region (b e keyfile) "Decrypt S/MIME message in region between B and E with key in KEYFILE. On success, replaces region with decrypted data and return non-nil. -- 2.34.1