>     This said, I agree that Emacs should help more.  E.g. by signalling an
>     error when trying to insert multibyte text into a unibyte buffer.

> This operation converts the string to unibyte.

Indeed.  Using a default (and poorly specified) encoding method.

> It works correctly, provided the characters in that string can be
> expressed in the unibyte buffer.

But which characters can be expressed is poorly specified.  E.g. Tell me
which chars can be expressed in a unibyte buffer in a BIG5 locale?

> If people generally agree it would be better to signal an error,
> we could do that.  However, that would cause trouble trying to use
> M-y to move past multibyte entries in the kill ring to reach the
> unibyte entry you really want.

When the insertion is a user-level operation, the elisp code should make
sure to manually do the encoding/decoding, using e.g. the default file
coding-system.


        Stefan


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to