Mercurial > emacs
diff lisp/gnus/gnus-art.el @ 111481:91870c82d547
gnus-art.el (article-treat-non-ascii): Make it work for XEmacs (at least 21.5).
smime.el (from): Declare it again for XEmacs.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Thu, 11 Nov 2010 01:45:05 +0000 |
parents | 94518a0a4096 |
children | ebad3de62d57 |
line wrap: on
line diff
--- a/lisp/gnus/gnus-art.el Wed Nov 10 23:57:24 2010 +0000 +++ b/lisp/gnus/gnus-art.el Thu Nov 11 01:45:05 2010 +0000 @@ -2120,7 +2120,7 @@ "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 @@ (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))))))))