emacs-devel
[Top][All Lists]
Advanced

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

Re: [HELP] (bug?) Saving a buffer without any conversion?


From: Kenichi Handa
Subject: Re: [HELP] (bug?) Saving a buffer without any conversion?
Date: Fri, 17 Jan 2003 11:35:55 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, address@hidden (Kim F. Storm) writes:
> Well, I added something to set-process-filter,

Thank you.

> but I'm quite unsure what to add to `insert's doc string
> which already says this about the issue:

>   If the current buffer is multibyte, unibyte strings are converted
>   to multibyte for insertion (see `unibyte-char-to-multibyte').
>   If the current buffer is unibyte, multibyte strings are converted
>   to unibyte for insertion.

> It seems very odd that we have to suggest to use string-as-multibyte
> (or string-as-unibyte) to convert strings prior to insertion when the
> doc string says it does that automatically.  I guess it has to say
> something about buffer coding systems here, but what ...?

> Handa-san, maybe you can tell the "true story" ?

Coding systems is not relevant in `insert'.

There are two ways to convert unibyte string to multibyte;
string-make-multibyte and string-as-multibyte .  Emacs'
default behaviour for converting unibyte to multibyte
(including the case of `insert') is by
string-make-multibyte.  But, if one want to preserve the
original bytes, he must use string-as-multibyte.

---
Ken'ichi HANDA
address@hidden




reply via email to

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