Enable/Disable multibyte might not be safe in Emacs Mule 5 if the
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 6 Oct 2000 13:14:21 +0000 (13:14 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 6 Oct 2000 13:14:21 +0000 (13:14 +0000)
buffer is not empty, but this macro has to be used in some situations
in Emacs Mule 4.

2000-10-06 10:01:08  ShengHuo ZHU  <zsh@cs.rochester.edu>

* mm-util.el (mm-with-unibyte-current-buffer): Don't set unibyte
if eight-bit-control is a charset, e.g. Mule 5 in Emacs 21.

lisp/ChangeLog
lisp/mm-util.el

index 57f0534..e26b48a 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-06 10:01:08  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-util.el (mm-with-unibyte-current-buffer): Don't set unibyte
+       if eight-bit-control is a charset, e.g. Mule 5.0 in Emacs 21.
+
 2000-10-06 09:38:54  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * qp.el (quoted-printable-encode-region): Use
index 70172f4..5ce3dee 100644 (file)
@@ -340,7 +340,8 @@ See also `with-temp-file' and `with-output-to-string'."
   "Evaluate FORMS there like `progn' in current buffer."
   (let ((multibyte (make-symbol "multibyte")))
     `(if (or (featurep 'xemacs)
-            (not (fboundp 'set-buffer-multibyte)))
+            (not (fboundp 'set-buffer-multibyte))
+            (charsetp 'eight-bit-control))
         (progn
           ,@forms)
        (let ((,multibyte (default-value 'enable-multibyte-characters)))