From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8) Date: Sat, 16 Feb 2008 12:42:59 +0900 Message-ID: <877ih5va64.fsf@catnip.gol.com> References: <87odaifv16.fsf@mundaneum.com> <47B61830.6020005@gnu.org> <87k5l5yfaj.fsf@catnip.gol.com> <47B6218F.1030701@gnu.org> <87ejbdyeg3.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203133404 19484 80.91.229.12 (16 Feb 2008 03:43:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2008 03:43:24 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Edward O'Connor , emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 04:43:47 2008 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 1JQDxr-00082X-2L for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 04:43:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQDxM-0003Tg-RZ for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 22:43:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQDxG-0003QG-2i for emacs-devel@gnu.org; Fri, 15 Feb 2008 22:43:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQDxD-0003Nx-UR for emacs-devel@gnu.org; Fri, 15 Feb 2008 22:43:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQDxD-0003Nu-Rk for emacs-devel@gnu.org; Fri, 15 Feb 2008 22:43:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQDxD-0006xp-Li for emacs-devel@gnu.org; Fri, 15 Feb 2008 22:43:07 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JQDxD-00026m-8a for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 22:43:07 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JQDxA-0006wn-Aw for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 22:43:07 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JQDx9-0006wH-Lk; Fri, 15 Feb 2008 22:43:04 -0500 Original-Received: from 203-216-97-023.dsl.gol.ne.jp ([203.216.97.23] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1JQDx6-00020F-QZ; Sat, 16 Feb 2008 12:43:00 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id BC3A22FF7; Sat, 16 Feb 2008 12:42:59 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87ejbdyeg3.fsf@catnip.gol.com> (Miles Bader's message of "Sat, 16 Feb 2008 08:42:20 +0900") Original-Lines: 31 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:89216 gmane.emacs.pretest.bugs:21131 Archived-At: Miles Bader writes: > Maybe this could be extended to something like: > > ... > If VAL is a cons of coding systems, the car part is used for decoding, > and the cdr part is used for encoding. The cdr may be a symbol, in > which case it is always used, or a list of coding systems, which are > added to the front of the list used by the normal coding-system > detection mechanism, as if by `prefer-coding-system'. > ... Oh, whoops, I confused the car and the cdr; I meant: If VAL is a cons of coding systems, the car part is used for decoding, and the cdr part is used for encoding. The car may be a symbol, in which case it is always used, or a list of coding systems, which are added to the front of the list used by the normal coding-system detection mechanism, as if by `prefer-coding-system'. That would mean you could use a value like: ((utf-8) . utf-8) to indicate "do normal coding detection on read, but utf-8 is preferred [over the users normal coding list]." -Miles -- Ocean, n. A body of water covering seven-tenths of a world designed for Man - who has no gills.