From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.devel Subject: Re: per-buffer language environments Date: Sat, 18 Dec 2010 07:29:37 +0100 (CET) Message-ID: <20101218.072937.305030077.wl@gnu.org> References: <874oadqv8r.fsf@uwakimon.sk.tsukuba.ac.jp> <8362ushb1c.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292653803 22092 80.91.229.12 (18 Dec 2010 06:30:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2010 06:30:03 +0000 (UTC) Cc: stephen@xemacs.org, handa@m17n.org, emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 18 07:29:58 2010 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.69) (envelope-from ) id 1PTqIm-0003kO-N5 for ged-emacs-devel@m.gmane.org; Sat, 18 Dec 2010 07:29:56 +0100 Original-Received: from localhost ([127.0.0.1]:42158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTqIl-00035m-Q0 for ged-emacs-devel@m.gmane.org; Sat, 18 Dec 2010 01:29:55 -0500 Original-Received: from [140.186.70.92] (port=50638 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTqIY-00032h-KH for emacs-devel@gnu.org; Sat, 18 Dec 2010 01:29:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTqIX-0008U2-LF for emacs-devel@gnu.org; Sat, 18 Dec 2010 01:29:42 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:37890 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PTqIX-0008Tv-8E for emacs-devel@gnu.org; Sat, 18 Dec 2010 01:29:41 -0500 Original-Received: (qmail invoked by alias); 18 Dec 2010 06:29:36 -0000 Original-Received: from 178-191-247-15.adsl.highway.telekom.at (EHLO localhost) [178.191.247.15] by mail.gmx.net (mp061) with SMTP; 18 Dec 2010 07:29:36 +0100 X-Authenticated: #54312696 X-Provags-ID: V01U2FsdGVkX1+UPHIP796UmKN2uKcEtgiAaDmqwZUBdf9WTYR1pT n2swl/UeI33t02 In-Reply-To: <8362ushb1c.fsf@gnu.org> X-Mailer: Mew version 6.3.50 on Emacs 24.0.50.1 / Mule 6.0 (HANACHIRUSATO) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:133782 Archived-At: > . There's any number of possible use-cases for needing this kind > of feature. They are all quite rare (if they weren't, we would > have many complaints about not having such a feature, which we > don't). I would rather say that these use-cases are all quite new. Previously, Emacs didn't do too well with Unicode, and only recently free CJK fonts (especially for Japanese) are available as TrueType fonts so that the user has a choice to select between well-crafted fonts. > The current heuristics encoded in the global language environment > does not cover well rare and marginal use-cases, being just that > -- a set of heuristics. It is therefore quite probable that just > making the language environment buffer-local and keeping all the > rest of its machinery and semantics would do the wrong thing for a > large portion of the use-cases which need such a buffer-local > feature. I don't think so, however, people on this list should submit more use-cases if possible so that we can decide this issue easier. > Setting the language can surely identify a small set of > appropriate encodings, but I very much doubt that it can > correctly select The Right One. Note that I'm specifically talking about Unicode. IMHO, handling of all other encodings should stay as-is since they will be extinct soon anyway. Werner