changeset 111467:94518a0a4096

gnus-art.el (article-treat-non-ascii): Use put-char-table instead of set-char-table-range for XEmacs.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 10 Nov 2010 06:23:53 +0000
parents c208e8e46177
children b6da43d9e0f5
files lisp/gnus/ChangeLog lisp/gnus/gnus-art.el
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Tue Nov 09 21:24:48 2010 -0800
+++ b/lisp/gnus/ChangeLog	Wed Nov 10 06:23:53 2010 +0000
@@ -1,3 +1,8 @@
+2010-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+	* gnus-art.el (article-treat-non-ascii): Use put-char-table instead of
+	set-char-table-range for XEmacs.
+
 2010-11-10  Glenn Morris  <rgm@gnu.org>
 
 	* smime.el (from): Remove unused declaration.
--- a/lisp/gnus/gnus-art.el	Tue Nov 09 21:24:48 2010 -0800
+++ b/lisp/gnus/gnus-art.el	Wed Nov 10 06:23:53 2010 +0000
@@ -2124,9 +2124,9 @@
     (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)