From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Emacs failes to communicate with other X clients Date: Fri, 23 May 2003 20:22:08 +0300 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3405-Fri23May2003202207+0300-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1053713000 10864 80.91.224.249 (23 May 2003 18:03:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 May 2003 18:03:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 23 20:03:17 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 19JGml-0001fu-00 for ; Fri, 23 May 2003 19:56:55 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19JGyc-0004zM-00 for ; Fri, 23 May 2003 20:09:10 +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 19JGKo-0004MN-Lw for emacs-devel@quimby.gnus.org; Fri, 23 May 2003 13:28:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JGIT-0003xd-FY for emacs-devel@gnu.org; Fri, 23 May 2003 13:25:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JGEm-0002k1-1e for emacs-devel@gnu.org; Fri, 23 May 2003 13:21:50 -0400 Original-Received: from aragorn.inter.net.il ([192.114.186.23]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JGDW-0002Ms-JM for emacs-devel@gnu.org; Fri, 23 May 2003 13:20:30 -0400 Original-Received: from zaretsky (tony08-194-113.inter.net.il [80.230.194.113] (may be forged)) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id ARD18108; Fri, 23 May 2003 20:20:14 +0300 (IDT) Original-To: huxw@knight.6test.edu.cn X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Robin Hu on Fri, 23 May 2003 09:19:10 +0000) 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:14141 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14141 > From: Robin Hu > Date: Fri, 23 May 2003 09:19:10 +0000 > > For example, a chinese word is encoded in compound text > as : "^[$(AV1^[%/2\200\210gbk-0^B\351F;y", as I have provide gbk > coding system myself, emacs can decode the first two characters > correctly, but it miss the last character, because it doesn't know > "\351F;y" should be decoded follow "^[$(AV1". > > I try to correct this bug myself, but it seems quite diffcult in the > exist compound-text-with-extension coding system. ;-( I'm not sure I understand correctly the situation, but IIRC, gbk is not supported by compound-text-with-extensions. If you want to add such a support, you need to modify the alist of non-standard ICCCM encodings used by Emacs to match known coding-systems to the encoding name mentioned in the X selection encoding. See mule.el for the definitions of those alists. > I'd like to know how about leaving this decoding stuff to X itself, I > knew XmbText family can do this kind of thing. How can Emacs leave that to X? We need to convert the X selection text into the internal representation of characters used by Emacs; X knows nothing about that representation. Am I missing something?