From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: utf-translate-cjk-mode question Date: Mon, 21 Apr 2003 20:01:40 +0200 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84adej4tmj.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050953784 28316 80.91.224.249 (21 Apr 2003 19:36:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2003 19:36:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 21 21:36:21 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197h5Q-0007Lu-00 for ; Mon, 21 Apr 2003 21:36:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 197hAL-00035w-00 for ; Mon, 21 Apr 2003 21:41:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197h59-00026U-09 for emacs-devel@quimby.gnus.org; Mon, 21 Apr 2003 15:36:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 197h4H-0001Lb-00 for emacs-devel@gnu.org; Mon, 21 Apr 2003 15:35:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 197h4D-0001Id-00 for emacs-devel@gnu.org; Mon, 21 Apr 2003 15:35:07 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197h2c-0000Fe-00 for emacs-devel@gnu.org; Mon, 21 Apr 2003 15:33:26 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 197h1f-00075K-00 for ; Mon, 21 Apr 2003 21:32:27 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 197h1c-00074s-00 for ; Mon, 21 Apr 2003 21:32:24 +0200 Original-Lines: 41 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:VsxR/m4URBp8Rn+BMlNiHtp7dn0= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13329 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13329 I have some questions about utf-translate-cjk-mode -- I think it might not be working, so I'm trying to understand it. I probably b0rked it when I changed it to use define-minor-mode. It's rather embarrassing :-/ In my ~/.emacs file, I have this piece of code: (when (fboundp 'utf-translate-cjk-mode) (let ((current-language-environment "Chinese-GB")) (utf-translate-cjk-mode 1))) I start Emacs. I open a new file. I say C-u C-\ chinese-py RET. I then type "nihao" into the buffer. I say C-x RET f utf-8 RET. Then I try to save the buffer. Emacs tells me that it can't encode the Chinese characters, and it tried iso-latin-1 and utf-8 as encodings, and now it's suggesting gb2312 as the encoding to use. Is utf-translate-cjk-mode supposed to enable me to store the file as utf-8? The second question contains the code itself. I tried to just copy and paste it from the original defcustom. But maybe I did something wrong. After loading all the subst-foo files, there is a let statement that binds the symbol `table'. But after this, nothing is done with that symbol -- it does not appear to be accessed after being populated. I also looked in version 1.27 (the last version before my change), and there, too, the symbol `table' does not appear to be accessed. What is going on here? Is there some kind of magic? I have the nagging feeling that the `table' needs to be passed to define-translation-table somehow, but I can't find the code that used to do that. -- file-error; Data: (Opening input file no such file or directory ~/.signature)