From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: [HELP] (bug?) Saving a buffer without any conversion?
Date: Fri, 17 Jan 2003 11:35:55 +0900 (JST) [thread overview]
Message-ID: <200301170235.LAA12574@etlken.m17n.org> (raw)
In-Reply-To: <5xd6mwoggt.fsf@kfs2.cua.dk> (storm@cua.dk)
In article <5xd6mwoggt.fsf@kfs2.cua.dk>, storm@cua.dk (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
handa@m17n.org
next prev parent reply other threads:[~2003-01-17 2:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-13 17:52 [HELP] (bug?) Saving a buffer without any conversion? Mario Lang
2003-01-14 1:00 ` Kim F. Storm
2003-01-14 6:06 ` Eli Zaretskii
2003-01-14 6:46 ` Mario Lang
2003-01-14 18:37 ` Eli Zaretskii
2003-01-14 16:19 ` Stefan Monnier
2003-01-15 1:16 ` Kenichi Handa
2003-01-15 11:02 ` Kim F. Storm
2003-01-15 10:59 ` Kenichi Handa
2003-01-15 13:27 ` Kim F. Storm
2003-01-15 16:30 ` Eli Zaretskii
2003-01-16 22:52 ` Kim F. Storm
2003-01-17 2:35 ` Kenichi Handa [this message]
2003-01-16 1:18 ` Kenichi Handa
2003-01-17 9:23 ` Richard Stallman
2003-01-17 11:07 ` Kenichi Handa
2003-01-15 16:59 ` Mario Lang
2003-01-15 23:27 ` Richard Stallman
2003-01-16 6:45 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200301170235.LAA12574@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).