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: 10 Oct 2003 13:42:42 -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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065807965 31852 80.91.224.253 (10 Oct 2003 17:46:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2003 17:46:05 +0000 (UTC) Cc: pogonyshev@gmx.net, emacs-devel@gnu.org, jasonr@f2s.com, Kenichi Handa Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Oct 10 19:46:03 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 1A81L1-0006es-00 for ; Fri, 10 Oct 2003 19:46:03 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A81L0-0002JL-00 for ; Fri, 10 Oct 2003 19:46:02 +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 1A81Io-0006KL-0C for emacs-devel@quimby.gnus.org; Fri, 10 Oct 2003 13:43:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A81IZ-0006Ht-2S for emacs-devel@gnu.org; Fri, 10 Oct 2003 13:43:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A81I2-0005fl-Iw for emacs-devel@gnu.org; Fri, 10 Oct 2003 13:43:29 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A81I2-0005f5-5I for emacs-devel@gnu.org; Fri, 10 Oct 2003 13:42:58 -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 h9AHggKS000974; Fri, 10 Oct 2003 13:42:43 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id A8BA23C549; Fri, 10 Oct 2003 13:42:42 -0400 (EDT) Original-To: Dave Love In-Reply-To: Original-Lines: 34 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:17021 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17021 >> For instance, in such a case, we can allow people to create >> a new lang. env. by inheriting, for instance, Russian, and >> modifying coding-system to windows-1251. > Is this actually better than allowing them to specify (the equivalent > of) the locale ru_RU.windows-1251? Completely agreed. Locales are pretty limited, but language environments even more so. And locales are more likely to be already properly setup (for other applications). Language environments might make sense internally, but I think we should encourage people to configure their Emacs by doing: - 1st and foremost, set your locale properly, or call `set-locale-environment' in your .emacs. - If that's not quite right, fix the parts you don't like directly by specifying preferred coding systems, preferred language for tutorial, preferred input systems, ... Also I wonder what would be the point of doing: (define-derived-language "foo" "bar" bla bla bla) (set-language-environment "foo") rather than (set-language-environment "bar") bla bla bla Or do you expect define-derived-language to be used elsewhere than in a .emacs ? Stefan