From: Katsumi Yamaoka <yamaoka@jpl.org> Date: Wed, 10 Nov 2010 06:23:53 +0000 (+0000) Subject: gnus-art.el (article-treat-non-ascii): Use put-char-table instead of set-char-table... X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~316 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fdf14191747d274358cc9eedb8efa03f60380ca8;p=emacs.git gnus-art.el (article-treat-non-ascii): Use put-char-table instead of set-char-table-range for XEmacs. --- 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 <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. 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)