From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robin Hu Newsgroups: gmane.emacs.devel Subject: Re: Emacs failes to communicate with other X clients Date: Sat, 24 May 2003 11:10:06 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3405-Fri23May2003202207+0300-eliz@elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053775394 9860 80.91.224.249 (24 May 2003 11:23:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 24 May 2003 11:23:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 24 13:23:12 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 19JX7I-0002Yt-00 for ; Sat, 24 May 2003 13:23:12 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19JXJV-0006dq-00 for ; Sat, 24 May 2003 13:35:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JX8E-0006tu-45 for emacs-devel@quimby.gnus.org; Sat, 24 May 2003 07:24:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JX31-0002uo-FQ for emacs-devel@gnu.org; Sat, 24 May 2003 07:18:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JWz1-0000uA-Ts for emacs-devel@gnu.org; Sat, 24 May 2003 07:14:40 -0400 Original-Received: from [210.77.38.126] (helo=ns.turbolinux.com.cn) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JWup-00084Q-Up for emacs-devel@gnu.org; Sat, 24 May 2003 07:10:20 -0400 Original-Received: from LOADLIN ([211.157.205.69]) (authenticated bits=0) by ns.turbolinux.com.cn (8.12.5/8.12.5) with ESMTP id h4OBEF8q009343; Sat, 24 May 2003 19:14:27 +0800 Original-To: "Eli Zaretskii" In-Reply-To: <3405-Fri23May2003202207+0300-eliz@elta.co.il> (Eli Zaretskii's message of "Fri, 23 May 2003 20:22:08 +0300") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) 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:14190 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14190 >>>>> "Eli" == Eli Zaretskii writes: >> From: Robin Hu Date: Fri, 23 May 2003 >> 09:19:10 +0000 Eli> I'm not sure I understand correctly the situation, but IIRC, Eli> gbk is not supported by compound-text-with-extensions. If you Eli> want to add such a support, you need to modify the alist of Eli> non-standard ICCCM encodings used by Emacs to match known Eli> coding-systems to the encoding name mentioned in the X Eli> selection encoding. See mule.el for the definitions of those Eli> alists. Yeah, icccm list had been appended with GBK-0, that's why my emacs can decode some gbk characters correctly, but problems are still there. In the example I gived in the previous post, one embeded gbk character will make all characters fail to be decoded. ;-( Eli> How can Emacs leave that to X? We need to convert the X Eli> selection text into the internal representation of characters Eli> used by Emacs; X knows nothing about that representation. Am I Eli> missing something? But selection-coding-sytem can do this translation. For example, we can leave X to decode compound text to gbk locale coding, then set-selection-coding-system to chinese-gbk, then everything should go fine. Why don't we just totally leave this copy/paste working to be transparent to Emacs, to make this work just like a keyboard? If I understand the source corrently, ntEmacs works in this way. Any comments?