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: Wed, 20 Feb 2008 07:58:56 +0900 Message-ID: <87y79gmu33.fsf@catnip.gol.com> References: <87odaifv16.fsf@mundaneum.com> <87r6fd5q12.fsf@uwakimon.sk.tsukuba.ac.jp> <47B6B3CC.1080101@gnu.org> <87wsp5xhz4.fsf@uwakimon.sk.tsukuba.ac.jp> <47B6D1ED.6020601@gmail.com> <87r6fcxms7.fsf@uwakimon.sk.tsukuba.ac.jp> <47B8452F.6090504@gmail.com> <87odafxluc.fsf@uwakimon.sk.tsukuba.ac.jp> <87bq6fnrpt.fsf@catnip.gol.com> <87hcg7xh2h.fsf@uwakimon.sk.tsukuba.ac.jp> <87ablyye32.fsf@uwakimon.sk.tsukuba.ac.jp> <8763wlxvn3.fsf@uwakimon.sk.tsukuba.ac.jp> <87zltwwte1.fsf@uwakimon.sk.tsukuba.ac.jp> 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 1203461980 20185 80.91.229.12 (19 Feb 2008 22:59:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 22:59:40 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org, "Lennart Borgman \(gmail\)" , Edward O'Connor , Stefan Monnier To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 00:00:03 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 1JRbR9-00057z-68 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 23:59:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRbQe-0005f6-Gv for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 17:59:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRbQa-0005dr-Aq for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:59:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRbQY-0005an-Kw for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:59:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRbQY-0005aR-Db for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:59:06 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRbQY-0003gt-Bk for emacs-devel@gnu.org; Tue, 19 Feb 2008 17:59:06 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JRbQX-00018E-Of for emacs-pretest-bug@gnu.org; Tue, 19 Feb 2008 17:59:05 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JRbQV-0003gQ-2i for emacs-pretest-bug@gnu.org; Tue, 19 Feb 2008 17:59:06 -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 1JRbQU-0003fq-GT; Tue, 19 Feb 2008 17:59:02 -0500 Original-Received: from 203-216-97-013.dsl.gol.ne.jp ([203.216.97.13] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1JRbQP-0006en-Sx; Wed, 20 Feb 2008 07:58:58 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 0A4A12FF7; Wed, 20 Feb 2008 07:58:56 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87zltwwte1.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed, 20 Feb 2008 06:03:50 +0900") Original-Lines: 43 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:89611 gmane.emacs.pretest.bugs:21234 Archived-At: "Stephen J. Turnbull" writes: > > I proposed _adding_ some functionality that _uses_ > > prefer-coding-system (or more likely, uses whatever underlying > > mechanism prefer-coding-system uses). No functionality would be > > removed. > > Not removed, disabled (in some cases). Specifically, if the *user* or > some application programmer uses `prefer-coding-system' with a > non-Unicode (non-UTF-8?) argument, he won't get the result he expects > for some XML files. That is already the case. My suggestion would not make it worse. If anything, improve the situation by allowing prefer-coding-system to work more often. In any case, no hamstringing. > In case you're forgotten, this is precisely the kind of behavior that > distresses the OP. And my suggestion would likely _improve_ the situtation from the point of the OP. Maybe not entirely to his satisfaction -- there are probably cases where latin1 can be mistaken for utf8, and do fix that would likely require more explicit action on his part -- but more automatically. You're probably right that to make things really work the way the OP wants, some mechanism to help him set up the desired file associations would be more reliable. However I do not think it's a good idea to make simple _visiting_ of a file modify that file. That would be _really_ annoying. If it's deemed desirable to use some sort of user query to set up encoding info in a funny case like this, the information should be kept in memory (of course it could be made permanent if the user chose to save that file for other reasons). -Miles -- The automobile has not merely taken over the street, it has dissolved the living tissue of the city. Its appetite for space is absolutely insatiable; moving and parked, it devours urban land, leaving the buildings as mere islands of habitable space in a sea of dangerous and ugly traffic. [James Marston Fitch, New York Times, 1 May 1960]