bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: write-region saves in emacs-mule coding system thus unreadable to ot


From: Eli Zaretskii
Subject: Re: write-region saves in emacs-mule coding system thus unreadable to other programs
Date: Sun, 8 Jul 2001 11:21:17 +0300

On 5 Jul 2001, Dan Jacobson wrote:

> Doing write-region or write-file inside a message-mode buffer saves it
> in emacs-mule coding system instead of what the user expects, e.g.,
> big5.

What does the following print in the message-mode buffer?

  M-: buffer-file-coding-system RET

Does it say emacs-mule-unix or some such?

The documentation string of write-region says this:

    This does code conversion according to the value of
    `coding-system-for-write', `buffer-file-coding-system', or
    `file-coding-system-alist', and sets the variable
    `last-coding-system-used' to the coding system actually used.

So I'd say it's up to the application (message-mode) to set the buffer
to the right coding system, or else it should intercept write-region
and bind coding-system-for-write to an appropriate value.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]