From fdf14191747d274358cc9eedb8efa03f60380ca8 Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Wed, 10 Nov 2010 06:23:53 +0000 Subject: [PATCH] gnus-art.el (article-treat-non-ascii): Use put-char-table instead of set-char-table-range for XEmacs. --- lisp/gnus/ChangeLog | 5 +++++ lisp/gnus/gnus-art.el | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index dd7ebe71052..f732daf30bf 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2010-11-10 Katsumi Yamaoka + + * gnus-art.el (article-treat-non-ascii): Use put-char-table instead of + set-char-table-range for XEmacs. + 2010-11-10 Glenn Morris * smime.el (from): Remove unused declaration. diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 9e2cb15d24e..327ba39f824 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -2124,9 +2124,9 @@ try this wash." (dolist (elem org-entities) (when (and (listp elem) (= (length (nth 6 elem)) 1)) - (set-char-table-range table - (aref (nth 6 elem) 0) - (nth 4 elem)))) + (if (featurep 'xemacs) + (put-char-table (aref (nth 6 elem) 0) (nth 4 elem) table) + (set-char-table-range table (aref (nth 6 elem) 0) (nth 4 elem))))) (save-excursion (when (article-goto-body) (let ((inhibit-read-only t) -- 2.39.5