From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: windows-1251 language environment Date: 15 Oct 2003 10:55:49 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310032356.54476.pogonyshev@gmx.net> <200310060013.52049.pogonyshev@gmx.net> <200310070254.LAA11795@etlken.m17n.org> <200310081040.TAA15162@etlken.m17n.org> <200310132350.IAA23839@etlken.m17n.org> <200310151344.WAA26445@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066230082 18962 80.91.224.253 (15 Oct 2003 15:01:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 15:01:22 +0000 (UTC) Cc: d.love@dl.ac.uk, jasonr@f2s.com, emacs-devel@gnu.org, rms@gnu.org, pogonyshev@gmx.net Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 15 17:01:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9n9K-0005XK-00 for ; Wed, 15 Oct 2003 17:01:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9n9K-0000t5-00 for ; Wed, 15 Oct 2003 17:01:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9n6S-0002iD-KM for emacs-devel@quimby.gnus.org; Wed, 15 Oct 2003 10:58:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9n5b-0002fS-24 for emacs-devel@gnu.org; Wed, 15 Oct 2003 10:57:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9n52-0002Z8-KW for emacs-devel@gnu.org; Wed, 15 Oct 2003 10:57:23 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9n4G-0002Ry-Vt; Wed, 15 Oct 2003 10:56:05 -0400 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h9FEtnKS022913; Wed, 15 Oct 2003 10:55:50 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id A41F13C63E; Wed, 15 Oct 2003 10:55:49 -0400 (EDT) Original-To: Kenichi Handa In-Reply-To: <200310151344.WAA26445@etlken.m17n.org> Original-Lines: 39 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-MailScanner-DIRO: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17115 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17115 > Currently, a user must define his own language environment > from scratch. But, usually what they want is to prefer the > diffent default input method, prefer the different coding > system than the existing one. In such a case, what he have > to do is, currently, see source code of > lisp/language/XXX.el, copy > (set-language-info-alist ....) > into his .emacs, and modify some part of it. If we allow > inheritance, he can do something like: > (define-language-environment Japanese-utf-8 > '((inherit . "Japanese") > (coding-sytem utf-8 iso-2022-jp euc-jp))) I've never seen anyone do that. Instead, people do: (set-language-environment "foo") (prefer-coding-system 'bar) (setq default-input-method "baz") That doesn't look particularly bad to me, except for the fact that some things are set via `setq' others via `set-foo-bar', etc... And of course the fact that it can only be done in elisp but not in `custom'. > Yes, but in the above buffer, it seems that "inherit" and > "copy" button is helpful. For instance, clicking "inherit" > and selecting LANG will show the default values for each > slots. Clicking "copy" and selecting LANG fills all slots > by values of LANG. I don't think users who are unable to use elisp will be able to make any use of the subtle distinction between `inherit' and `copy'. I think only `inherit' makes sense in a user-interface. Stefan