lpath.el: Fbind set-char-table-range for XEmacs 21.4 and SXEmacs 22.1.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 10 Nov 2010 04:13:17 +0000 (04:13 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 10 Nov 2010 04:13:17 +0000 (04:13 +0000)
gnus-art.el (article-treat-non-ascii): Use put-char-table instead of set-char-table-range for XEmacs.

lisp/ChangeLog
lisp/gnus-art.el
lisp/lpath.el

index 403740c..7b8ad2b 100644 (file)
@@ -1,5 +1,10 @@
 2010-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * lpath.el: Fbind set-char-table-range for XEmacs 21.4 and SXEmacs 22.1.
+
+       * gnus-art.el (article-treat-non-ascii): Use put-char-table instead of
+       set-char-table-range for XEmacs.
+
        * dgnushack.el: Don't use ignore-errors in the top level form since it
        is unavailable in XEmacs even if cl is loaded.
 
index 9e2cb15..327ba39 100644 (file)
@@ -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)
index a99039a..4fa928b 100644 (file)
@@ -92,8 +92,9 @@
        custom-autoload decode-char display-graphic-p display-images-p
        display-visual-class get-display-table help-function-arglist
        make-temp-file next-single-char-property-change put-display-table
-       select-frame-set-input-focus set-buffer-multibyte string-as-multibyte
-       timer-set-function unicode-precedence-list unicode-to-char))
+       select-frame-set-input-focus set-buffer-multibyte set-char-table-range
+       string-as-multibyte timer-set-function unicode-precedence-list
+       unicode-to-char))
     (maybe-bind
      '(header-line-format
        scroll-margin timer-list)))