charset-after may be undefined.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sun, 12 Dec 1999 15:25:38 +0000 (15:25 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sun, 12 Dec 1999 15:25:38 +0000 (15:25 +0000)
lisp/ChangeLog
lisp/mm-util.el

index c1eb9a2..de0ef1d 100644 (file)
@@ -1,3 +1,7 @@
+1999-12-12 10:17:42  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-util.el (mm-charset-after): `charset-after' may not be defined.
+
 1999-12-12  Florian Weimer  <fw@s.netic.de>
 
        * rfc2047.el (rfc2047-encodable-p): New parameter header used to
index 22a4b76..265cb86 100644 (file)
@@ -213,7 +213,9 @@ used as the line break code type of the coding system."
 If POS is nil, it defauls to the current point.
 If POS is out of range, the value is nil.
 If the charset is `composition', return the actual one."
-  (let ((charset (charset-after pos)))
+  (let ((charset (if (fboundp 'charset-after)
+                    (charset-after pos)
+                  (char-charset (char-after pos)))))
     (if (eq charset 'composition)
        (let ((p (or pos (point))))
          (cadr (find-charset-region p (1+ p))))