From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: per-buffer language environments Date: Sat, 18 Dec 2010 18:30:39 +0900 Message-ID: <87sjxvpgw0.fsf@uwakimon.sk.tsukuba.ac.jp> References: <20101211.162503.37993912.wl@gnu.org> <83sjy4t9s0.fsf@gnu.org> <20101212.072550.527160732.wl@gnu.org> <838vztj3n0.fsf@gnu.org> <87y67sr3cs.fsf@uwakimon.sk.tsukuba.ac.jp> <87hbefr63n.fsf@uwakimon.sk.tsukuba.ac.jp> <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 X-Trace: dough.gmane.org 1292952056 27240 80.91.229.12 (21 Dec 2010 17:20:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 17:20:56 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 21 18:20:50 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 1PV5tK-0007N7-IB for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2010 18:20:50 +0100 Original-Received: from localhost ([127.0.0.1]:37744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV5rt-000169-4p for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2010 12:19:21 -0500 Original-Received: from [140.186.70.92] (port=51869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV5ro-000164-6g for emacs-devel@gnu.org; Tue, 21 Dec 2010 12:19:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PV5rn-00016o-1g for emacs-devel@gnu.org; Tue, 21 Dec 2010 12:19:16 -0500 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:37867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PV5rl-000159-58; Tue, 21 Dec 2010 12:19:13 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 6472E3FA055C; Sat, 18 Dec 2010 18:33:19 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id BFD271A269C; Sat, 18 Dec 2010 18:30:39 +0900 (JST) In-Reply-To: <8362ushb1c.fsf@gnu.org> X-Mailer: VM undefined under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:133865 Archived-At: Eli Zaretskii writes: > . The issue is what it means to have a separate buffer-local > "language environment". Please, let's postpone this until Handa-san has some time to work on it. I have two comments to make to try to avoid misunderstanding later. First, please note that what Werner needs has little or nothing to do with this discussion of modifying the coding priority list. Werner is in the fairly small set of users for whom encoding selection is a solved problem. If Emacs gets it wrong, he knows what to do about it. *His* problems are harder, and more deeply tied to language itself. The current language environment mechanism is good at what it does and will be somewhat improved by being made buffer-local, but to be really useful to Werner a number of additional attributes need to be added, as well as some functionality that I don't yet really know how to implement (eg, his Romanian s-with-comma-below vs. s-cedilla issue). Second, you wrote: > Since you have the logs to get you straight about the degree of my > knowledge in that issue, you should rather wonder whether I'm missing > your point because I misunderstood what you are saying or because you > failed to explain it clearly. *sigh* OK, then, let me make things perfectly clear. I have so wondered, but the words you have written make me believe that you have a fundamental misunderstanding of how buffer-file-coding-system gets set in Emacsen, and specifically you do not understand the role of the priority lists. Since the details matter (and I believe now differ across the Emacsen), I recommend you look at the source rather than have me explain. But I'll tell you how the general scheme works in XEmacs if you want, and later Handa-san can clarify any differences.