From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: MML charset tag regression Date: Fri, 13 Jun 2003 17:37:15 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200306130837.RAA15089@etlken.m17n.org> References: <8465p3kgpl.fsf@lucy.is.informatik.uni-duisburg.de> <84bryuogke.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1055493360 15436 80.91.224.249 (13 Jun 2003 08:36:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2003 08:36:00 +0000 (UTC) Cc: jas@extundo.com Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 13 10:35:55 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 19Qk2B-00040b-00 for ; Fri, 13 Jun 2003 10:35:43 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19QkO3-0004De-00 for ; Fri, 13 Jun 2003 10:58:19 +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 19Qk49-0006eR-3O for emacs-devel@quimby.gnus.org; Fri, 13 Jun 2003 04:37:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Qk3o-0006Yq-D0 for emacs-devel@gnu.org; Fri, 13 Jun 2003 04:37:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Qk3m-0006Rb-6G for emacs-devel@gnu.org; Fri, 13 Jun 2003 04:37:23 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Qk3l-0006Ah-5l; Fri, 13 Jun 2003 04:37:21 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h5D8bHu16360; Fri, 13 Jun 2003 17:37:17 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h5D8bF927549; Fri, 13 Jun 2003 17:37:16 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id RAA15089; Fri, 13 Jun 2003 17:37:15 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sat, 24 May 2003 19:18:53 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: ding@gnus.org Original-cc: emacs-devel@gnu.org 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:15083 gmane.emacs.gnus.general:53135 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15083 Richard Stallman writes: > (1) Modify selection_data_to_lisp_data (in xselect.c) > to simply return a unibyte string generated from selection > data while putting text property `foreign-selection' > (value is a symbol of type). This property is to > distinguish it from the return string of > x_get_local_selection. This property is also used to > decode it properly. > Would it work to return a cons cell (STRING > . CODING-SYSTEM)? That is a little cleaner, I think, than > using a text property. I've just found that selection_data_to_lisp_data returns a cons when a selection data is 32-bit number. I think it is better not to give two meanings for a cons type even if we can distinguish them by checking the type of the car part. So... >> It works if (STRING . RETURN-TYPE) is returned. But, >> can we also change x-get-selection to return that cons? > That would be an incompatible change, but it is in a > low-level function that I think is not used much by users. > So I think it is ok to make an incompatible change here. > I am not certain that approach is better, but if you agree > it is better, please do it. My opinion now is that using text-property both in x-get-selection-internal and x-get-selection is better. If you don't have a farther counterargument, I'll install a change along my original line. --- Ken'ichi HANDA handa@m17n.org