From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: What does `undecided' do for encoding text? Date: Mon, 16 Feb 2009 20:44:44 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234784699 12582 80.91.229.12 (16 Feb 2009 11:44:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2009 11:44:59 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 16 12:46:14 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZ1vN-0001HB-G4 for ged-emacs-devel@m.gmane.org; Mon, 16 Feb 2009 12:46:10 +0100 Original-Received: from localhost ([127.0.0.1]:60807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ1u3-0006PR-I3 for ged-emacs-devel@m.gmane.org; Mon, 16 Feb 2009 06:44:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZ1ty-0006PL-Ub for emacs-devel@gnu.org; Mon, 16 Feb 2009 06:44:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZ1tx-0006P9-8W for emacs-devel@gnu.org; Mon, 16 Feb 2009 06:44:41 -0500 Original-Received: from [199.232.76.173] (port=43404 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ1tx-0006P6-1F for emacs-devel@gnu.org; Mon, 16 Feb 2009 06:44:41 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:64071) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZ1ts-0006zT-1c; Mon, 16 Feb 2009 06:44:36 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n1GBiWm4022301; Mon, 16 Feb 2009 20:44:32 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n1GBiWav024368; Mon, 16 Feb 2009 20:44:32 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n1GBiVfL013851; Mon, 16 Feb 2009 20:44:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LZ1u0-0004QQ-9M; Mon, 16 Feb 2009 20:44:44 +0900 In-reply-to: (message from Stefan Monnier on Tue, 10 Feb 2009 17:04:15 -0500) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109102 Archived-At: In article , Stefan Monnier 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