From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: What does `undecided' do for encoding text?
Date: Mon, 16 Feb 2009 20:44:44 +0900 [thread overview]
Message-ID: <E1LZ1u0-0004QQ-9M@etlken> (raw)
In-Reply-To: <jwvwsbykkzu.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Tue, 10 Feb 2009 17:04:15 -0500)
In article <jwvwsbykkzu.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>>> It looks like `undecided' works the same as `raw-text' for encoding
>>> text. Is that true in general?
> > Yes. More exactly, it is the same as `raw-text-unix'.
> Which I prefer calling `binary'.
What do you mean by "calling"?
raw-text-unix and binary are different when
coding-system-change-text-conversion and
coding-system-change-eol-conversion are called.
>>> I think this should be reflected in the ELisp manual.
> > I don't think so because it is just a fallback behavior, and
> > Elisp programmer should avoid specifying `undecided' on
> > encoding.
> Then why do we even allow it? We should signal an error.
It seems difficult to find a good point of signaling an
error. At least, visiting an ascii only file, inputting
ascii only, and saving it should be a valid operation. At
that time, buffer-file-coding-system is undecided-unix.
---
Kenichi Handa
handa@m17n.org
next prev parent reply other threads:[~2009-02-16 11:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-07 15:32 What does `undecided' do for encoding text? Eli Zaretskii
2009-02-10 7:01 ` Kenichi Handa
2009-02-10 9:22 ` Eli Zaretskii
2009-02-10 11:16 ` Kenichi Handa
2009-02-10 11:47 ` Eli Zaretskii
2009-02-11 9:20 ` Kenichi Handa
2009-02-10 22:04 ` Stefan Monnier
2009-02-16 11:44 ` Kenichi Handa [this message]
2009-02-16 13:47 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LZ1u0-0004QQ-9M@etlken \
--to=handa@m17n.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.