From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 05 11:32:01 2010 Received: (at submit) by debbugs.gnu.org; 5 Aug 2010 15:32:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh2QK-0003IT-Qi for submit@debbugs.gnu.org; Thu, 05 Aug 2010 11:32:01 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh2PL-0003Hh-PO for submit@debbugs.gnu.org; Thu, 05 Aug 2010 11:31:01 -0400 Received: from lists.gnu.org ([199.232.76.165]:35238) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oh2Pn-00048z-E9 for submit@debbugs.gnu.org; Thu, 05 Aug 2010 11:31:27 -0400 Received: from [140.186.70.92] (port=32954 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oh2Pl-0003Xx-NS for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 11:31:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oh2Pk-0003Fx-3q for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 11:31:25 -0400 Received: from mail.openintegra.com ([193.68.120.3]:60545) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh2Pj-0003Ev-Ol for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 11:31:24 -0400 Received: from millennium-falsehood (localhost [127.0.0.127] (may be forged)) by mail.openintegra.com (8.13.8/8.13.8) with ESMTP id o75Dudfs005770 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 5 Aug 2010 16:56:41 +0300 Received: from kaloian by millennium-falsehood with local (Exim 4.69) (envelope-from ) id 1Oh0w2-0003bf-9W for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 16:56:38 +0300 From: Kaloian Doganov To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes Date: Thu, 05 Aug 2010 16:56:32 +0300 Message-ID: <87mxt1go33.fsf@doganov.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gNewSense gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 05 Aug 2010 11:31:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) 0. Start Emacs using `emacs -Q'. 1. Open some other X application (gedit, GNOME Terminal, etc.) and enter the following text: =D0=9F=D1=80=D0=BE=D0=B1=D0=B0 2. Select the text using the mouse and yank it using mouse-2 in a scratch buffer in Emacs. 3. The result is: \u041f\u0440\u043e\u0431\u0430 instead of the expected: =D0=9F=D1=80=D0=BE=D0=B1=D0=B0 In GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2010-08-05 on gana, modified for gNewSense (Unofficial gNewSense emacs-snapshot package, version 1:20100805-gns1) Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--build=3Di486-linux-gnu' '--prefix=3D/usr' '= --sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/= var' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' '--with-pop= =3Dyes' '--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local= /share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/= emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-inf= o' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' 'build_alias=3Di486-linux-gnu'= 'CFLAGS=3D-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=3D5000 -g -Wall -Wno-pointer-= sign -fno-crossjumping -I/usr/include/GNUstep -O2' 'LDFLAGS=3D-g -Wl,-znoco= mbreloc -Wl,-z,defs -Wl,--as-needed' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: bg_BG.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Org Minor modes in effect: shell-dirtrack-mode: t type-break-mode-line-message-mode: t show-paren-mode: t iswitchb-mode: t display-battery-mode: t desktop-save-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m Recent messages: Using schema /usr/share/emacs/24.0.50/etc/schema/xslt.rnc [2 times] Using vacuous schema Using schema /usr/share/emacs/24.0.50/etc/schema/xslt.rnc [6 times] Using vacuous schema Loading arc-mode...done Parsing archive file...done. Using vacuous schema Wrote /home/kaloian/.emacs.desktop.lock Desktop: 128 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs-snapshot/site-lisp/mit-scheme/xscheme hides /usr/share/ema= cs/site-lisp/mit-scheme/xscheme /usr/share/emacs/24.0.50/site-lisp/debian-startup hides /usr/share/emacs/si= te-lisp/debian-startup /usr/local/share/emacs/site-lisp/remember hides /usr/share/emacs/24.0.50/li= sp/textmodes/remember /usr/share/emacs-snapshot/site-lisp/mit-scheme/xscheme hides /usr/share/ema= cs/24.0.50/lisp/progmodes/xscheme Features: (shadow sort gnus-cite mail-extr emacsbug arc-mode archive-mode sql parse-time vc-cvs tex-mode compile shell scheme sh-script executable view tar-mode flyspell ispell dired-aux dired make-mode python-21 python jka-compr nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok imenu cc-mode cc-fonts cc-menus cc-cmds vc-dispatcher vc-svn org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex org-bbdb package type-break paren iswitchb battery desktop cus-start cus-load cc-styles cc-align cc-engine cc-vars cc-defs org-nnml nnml org byte-opt warnings bytecomp byte-compile ob-emacs-lisp ob-keys ob-comint comint ring ob-tangle ob-ref ob-lob ob-table ob org-footnote org-src org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode remember info-look info advice help-fns advice-preload spam spam-stat bbdb-com cl cl-19 bbdb timezone gnus-uu yenc gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime password-cache dig mailcap gnus-sum nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader gnus-util wid-edit message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader edmacro kmacro ps-mule ps-print ps-def lpr regexp-opt cal-menu easymenu calendar cal-loaddefs time server bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=20 Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 21:45:45 2010 Received: (at 6802) by debbugs.gnu.org; 9 Aug 2010 01:45:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiHQu-0000et-On for submit@debbugs.gnu.org; Sun, 08 Aug 2010 21:45:44 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiHQs-0000eo-QR for 6802@debbugs.gnu.org; Sun, 08 Aug 2010 21:45:43 -0400 Received: from [87.198.55.108] (87-198-55-108.ptr.magnet.ie [87.198.55.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 646DF683D1; Mon, 9 Aug 2010 02:46:19 +0100 (IST) Message-ID: <4C5F5DED.5010006@harpegolden.net> Date: Mon, 09 Aug 2010 02:46:21 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: Kaloian Doganov Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes References: <87mxt1go33.fsf@doganov.org> In-Reply-To: <87mxt1go33.fsf@doganov.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6802 Cc: 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 05/08/10 14:56, Kaloian Doganov wrote: > 0. Start Emacs using `emacs -Q'. > > 1. Open some other X application (gedit, GNOME Terminal, etc.) and ente= r > the following text: > > =D0=9F=D1=80=D0=BE=D0=B1=D0=B0 > > 2. Select the text using the mouse and yank it using mouse-2 in a > scratch buffer in Emacs. > > 3. The result is: > > \u041f\u0440\u043e\u0431\u0430 > > instead of the expected: > > =D0=9F=D1=80=D0=BE=D0=B1=D0=B0 > This is a known issue (#6635) and there is a patch, but I guess it=20 hasn't made it in-tree yet. See link below for a file that you can load=20 to fix this issue: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6720#17 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 22:56:38 2010 Received: (at 6802) by debbugs.gnu.org; 9 Aug 2010 02:56:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiIXV-0001lW-Q7 for submit@debbugs.gnu.org; Sun, 08 Aug 2010 22:56:38 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiIXT-0001lR-8O for 6802@debbugs.gnu.org; Sun, 08 Aug 2010 22:56:36 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o792vDMc026457; Mon, 9 Aug 2010 11:57:13 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o792vDW5004679; Mon, 9 Aug 2010 11:57:13 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id o792vCos004019; Mon, 9 Aug 2010 11:57:12 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OiIY4-0001nL-FN; Mon, 09 Aug 2010 11:57:12 +0900 From: Kenichi Handa To: Kaloian Doganov Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes In-Reply-To: <87mxt1go33.fsf@doganov.org> (message from Kaloian Doganov on Thu, 05 Aug 2010 16:56:32 +0300) References: <87mxt1go33.fsf@doganov.org> Date: Mon, 09 Aug 2010 11:57:12 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6802 Cc: 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <87mxt1go33.fsf@doganov.org>, Kaloian Doganov writes: > 0. Start Emacs using `emacs -Q'. > 1. Open some other X application (gedit, GNOME Terminal, etc.) and enter > the following text: > $B'1'b'`'R'Q(B > 2. Select the text using the mouse and yank it using mouse-2 in a > scratch buffer in Emacs. > 3. The result is: > \u041f\u0440\u043e\u0431\u0430 > instead of the expected: > $B'1'b'`'R'Q(B I can reproduce this bug. In Emacs 23 mouse-2 was bound to mouse-yank-at-click which calls (x-get-selection 'PRIMARY 'UTF8_STRING) with this calling sequence. mouse-yank-at-click ->yank->current-kill ->x-cut-buffer-or-selection-value ->x-get-buffer But, now mouse-2 is bound to mouse-yank-primary which directly calls (x-get-selection 'PRIMARY). As the second optional arg DATA-TYPE is omitted, x-get-selection uses 'STRING for that. And, for such a data-type request, Gnome applications returns something like this: \u041f\u0440\u043e\u0431\u0430 There are various ways to fix it, and each is fairly easy once we decide the precise spec of each functions. But as I have not followed the discussions in the thread "Cut and paste with C-w/mouse-2 not working?", I don't know which is the best. One easy way is this: === modified file 'lisp/mouse.el' --- lisp/mouse.el 2010-08-08 21:57:34 +0000 +++ lisp/mouse.el 2010-08-09 02:54:23 +0000 @@ -1265,7 +1265,7 @@ ;; the middle of an active region. (deactivate-mark)) (or mouse-yank-at-point (mouse-set-point click)) - (let ((primary (x-get-selection 'PRIMARY))) + (let ((primary (x-get-selection 'PRIMARY 'TEXT))) (if primary (insert primary) (error "No primary selection")))) --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 10:07:16 2010 Received: (at 6802) by debbugs.gnu.org; 9 Aug 2010 14:07:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiT0W-0007BZ-2G for submit@debbugs.gnu.org; Mon, 09 Aug 2010 10:07:16 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiT0U-0007BS-9f for 6802@debbugs.gnu.org; Mon, 09 Aug 2010 10:07:14 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o79E7qou001808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Aug 2010 14:07:54 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o794OZMg005221; Mon, 9 Aug 2010 14:07:51 GMT Received: from abhmt013.oracle.com by acsmt355.oracle.com with ESMTP id 499028661281362821; Mon, 09 Aug 2010 07:07:01 -0700 Received: from dradamslap1 (/10.159.243.183) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Aug 2010 07:07:01 -0700 From: "Drew Adams" To: "'Kenichi Handa'" , "'Kaloian Doganov'" References: <87mxt1go33.fsf@doganov.org> Subject: RE: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicodeescapes Date: Mon, 9 Aug 2010 07:06:57 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acs3cCeS+oNnuok1S2+g/s90tbsHHwAW27Ew In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 6802 Cc: 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) > In Emacs 23 mouse-2 was bound to mouse-yank-at-click > But, now mouse-2 is bound to mouse-yank-primary It is not so nice to change the binding. That breaks 3rd-party and user-customization code. Consider key-binding code that uses [remap], for example. Or code that advises `mouse-yank-at-click'. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 12:33:42 2010 Received: (at 6802) by debbugs.gnu.org; 9 Aug 2010 16:33:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiVIE-0008KY-BL for submit@debbugs.gnu.org; Mon, 09 Aug 2010 12:33:42 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiVIB-0008KT-Ko for 6802@debbugs.gnu.org; Mon, 09 Aug 2010 12:33:40 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L6W00D008OTPI00@a-mtaout21.012.net.il> for 6802@debbugs.gnu.org; Mon, 09 Aug 2010 19:34:21 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.102.143]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6W00D8Y8P8FH80@a-mtaout21.012.net.il>; Mon, 09 Aug 2010 19:34:21 +0300 (IDT) Date: Mon, 09 Aug 2010 19:34:23 +0300 From: Eli Zaretskii Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes In-reply-to: X-012-Sender: halo1@inter.net.il To: Kenichi Handa Message-id: <83wrrzvj74.fsf@gnu.org> References: <87mxt1go33.fsf@doganov.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6802 Cc: kaloian@gnu.org, 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Kenichi Handa > Date: Mon, 09 Aug 2010 11:57:12 +0900 > Cc: 6802@debbugs.gnu.org > > I can reproduce this bug. In Emacs 23 mouse-2 was bound to > mouse-yank-at-click which calls (x-get-selection 'PRIMARY > 'UTF8_STRING) with this calling sequence. > > mouse-yank-at-click > ->yank->current-kill > ->x-cut-buffer-or-selection-value > ->x-get-buffer > > But, now mouse-2 is bound to mouse-yank-primary which > directly calls (x-get-selection 'PRIMARY). As the second > optional arg DATA-TYPE is omitted, x-get-selection uses > 'STRING for that. Why does x-get-selection default to 'STRING? Is that sensible behavior? > - (let ((primary (x-get-selection 'PRIMARY))) > + (let ((primary (x-get-selection 'PRIMARY 'TEXT))) Would it make sense to have x-get-selection default to 'TEXT instead? From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 13:26:00 2010 Received: (at 6802) by debbugs.gnu.org; 9 Aug 2010 17:26:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiW6q-0000I0-0c for submit@debbugs.gnu.org; Mon, 09 Aug 2010 13:26:00 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiW6o-0000Hu-U3 for 6802@debbugs.gnu.org; Mon, 09 Aug 2010 13:25:59 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 3F1FCEBCDA for <6802@debbugs.gnu.org>; Mon, 9 Aug 2010 19:26:40 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aow7AAbXX0xV4S0jPGdsb2JhbACHZ5hdDAEBAQE1LcRDhToE X-IronPort-AV: E=Sophos;i="4.55,344,1278280800"; d="scan'208";a="117237455" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 09 Aug 2010 19:26:39 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 0AC337FA05A; Mon, 9 Aug 2010 19:26:39 +0200 (CEST) Message-ID: <4C603A4F.20006@swipnet.se> Date: Mon, 09 Aug 2010 19:26:39 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> In-Reply-To: <83wrrzvj74.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 6802 Cc: kaloian@gnu.org, 6802@debbugs.gnu.org, Kenichi Handa X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) Eli Zaretskii skrev 2010-08-09 18.34: > Why does x-get-selection default to 'STRING? Is that sensible > behavior? > >> - (let ((primary (x-get-selection 'PRIMARY))) >> + (let ((primary (x-get-selection 'PRIMARY 'TEXT))) > > Would it make sense to have x-get-selection default to 'TEXT instead? TEXT can be in any encoding which can make it diffcult. Nowdays I think the default should be UTF8_STRING, and if that fails, try TEXT and then STRING. But I think the application should not offer STRING (which implies Latin-1) if the data isn't in latin-1. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 22:29:12 2010 Received: (at 6802) by debbugs.gnu.org; 10 Aug 2010 02:29:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OieaW-0004R1-5t for submit@debbugs.gnu.org; Mon, 09 Aug 2010 22:29:12 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OieaT-0004Qv-Fc for 6802@debbugs.gnu.org; Mon, 09 Aug 2010 22:29:11 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o7A2TnHK009762; Tue, 10 Aug 2010 11:29:49 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o7A2Tnpa008852; Tue, 10 Aug 2010 11:29:49 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id o7A2TmTr009940; Tue, 10 Aug 2010 11:29:48 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1Oieb6-0005l8-OM; Tue, 10 Aug 2010 11:29:48 +0900 From: Kenichi Handa To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes In-Reply-To: <4C603A4F.20006@swipnet.se> (message from =?us-ascii?Q?=3D=3F?= =?us-ascii?Q?ISO-8859-1=3FQ=3FJan=5FDj=3DE4rv=3F=3D?= on Mon, 09 Aug 2010 19:26:39 +0200) References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> Date: Tue, 10 Aug 2010 11:29:48 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6802 Cc: eliz@gnu.org, kaloian@gnu.org, 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <4C603A4F.20006@swipnet.se>, Jan Dj=E4rv wr= ites: > Eli Zaretskii skrev 2010-08-09 18.34: > > Why does x-get-selection default to 'STRING? Is that sensible > > behavior? I just didn't change it from Emacs 19. Perhaps it's not sensible nowadays. >>> - (let ((primary (x-get-selection 'PRIMARY))) >>> + (let ((primary (x-get-selection 'PRIMARY 'TEXT))) > > > > Would it make sense to have x-get-selection default to 'TEXT instead? > TEXT can be in any encoding which can make it diffcult. Ah, yes. > Nowdays I think the=20 > default should be UTF8_STRING, and if that fails, try TEXT and then STRIN= G. Why not COMPOUND_TEXT instead of TEXT above? Please see the docstring of x-select-request-type. Anyway, the current selection-related codes mix an abstract layer (something like interprogram-cut/paste-function) and X-specific layer in a chaos manner. It seems that overhaul and re-design is necessary. > But I think the application should not offer STRING (which > implies Latin-1) if the data isn't in latin-1. Fully agreed. --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 10 02:14:30 2010 Received: (at 6802) by debbugs.gnu.org; 10 Aug 2010 06:14:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oii6Y-0005vN-7k for submit@debbugs.gnu.org; Tue, 10 Aug 2010 02:14:30 -0400 Received: from smtprelay-h32.telenor.se ([213.150.131.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oii6X-0005vI-7q for 6802@debbugs.gnu.org; Tue, 10 Aug 2010 02:14:29 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id D9107EAEE2 for <6802@debbugs.gnu.org>; Tue, 10 Aug 2010 08:15:11 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkgvAAaLYExV4S0jPGdsb2JhbACHZ5huDAEBAQE1LcIEhToEjBg X-IronPort-AV: E=Sophos;i="4.55,346,1278280800"; d="scan'208";a="559704655" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 10 Aug 2010 08:15:11 +0200 Received: from [10.225.32.15] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id EC4797FA05A; Tue, 10 Aug 2010 08:15:09 +0200 (CEST) Message-ID: <4C60EE6C.9040009@swipnet.se> Date: Tue, 10 Aug 2010 08:15:08 +0200 From: "Jan D." User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Kenichi Handa Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 6802 Cc: eliz@gnu.org, kaloian@gnu.org, 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) On 2010-08-10 04:29, Kenichi Handa wrote: > In article<4C603A4F.20006@swipnet.se>, Jan Dj=E4rv = writes: >> Nowdays I think the >> default should be UTF8_STRING, and if that fails, try TEXT and then ST= RING. > > Why not COMPOUND_TEXT instead of TEXT above? Please see the > docstring of x-select-request-type. I forgot about that. It is better to try that before TEXT. > > Anyway, the current selection-related codes mix an abstract > layer (something like interprogram-cut/paste-function) and > X-specific layer in a chaos manner. It seems that overhaul > and re-design is necessary. > It is a bit of a mess. Separation of interprogram cut/paste and X=20 selections would be nice. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 08:07:45 2010 Received: (at 6802) by debbugs.gnu.org; 28 Oct 2010 12:07:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBRGi-0008Hx-Te for submit@debbugs.gnu.org; Thu, 28 Oct 2010 08:07:45 -0400 Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBRGh-0008Hs-NR for 6802@debbugs.gnu.org; Thu, 28 Oct 2010 08:07:44 -0400 Received: by fxm9 with SMTP id 9so1860575fxm.3 for <6802@debbugs.gnu.org>; Thu, 28 Oct 2010 05:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=yXERruonJzy9GHTrqsswPwkY8BJJ5blp9IE192JffNc=; b=Sk+2zC1ui7YJeYx1xlUokl2wVfySFAqcjlZ6f3PpJXC3q2L2wEqYWA6BAYaR/4cgAu ZGzBx5Jb66PJyd1R3B9IHEDNdbOHaDnHuj2TRLihufIf5iMkmb403uH/GrvOUNT1qV9I LvVlMhQjpjRcVsj8tJfHeNpEP77wfs7Q4c2EQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=srcGf/DuMvtxyKCmBgd68p4HcpfZLK9ngUAD3hQpgeHEAw2Q97qd3SCDf2jj9vtTms oG7xN4WSXyCB8Q+DTUd5myMtQIAtycAjTYPhQne5BtnVfrsRgQ9aVOGaiCXWyYKyN4YQ NQDAKoAzuCmR4t13V8ppj+cnTirZNLdNM6V0s= Received: by 10.223.116.5 with SMTP id k5mr2126226faq.123.1288267912213; Thu, 28 Oct 2010 05:11:52 -0700 (PDT) Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id m8sm435362faj.35.2010.10.28.05.11.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Oct 2010 05:11:51 -0700 (PDT) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: "Jan D." Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes In-Reply-To: <4C60EE6C.9040009@swipnet.se> (Jan D.'s message of "Tue, 10 Aug 2010 08:15:08 +0200") References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> <4C60EE6C.9040009@swipnet.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Thu, 28 Oct 2010 14:10:31 +0200 Message-ID: <87fwvq4ix4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 6802 Cc: kaloian@gnu.org, 6802@debbugs.gnu.org, Kenichi Handa X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) "Jan D." writes: > On 2010-08-10 04:29, Kenichi Handa wrote: >> In article<4C603A4F.20006@swipnet.se>, Jan Dj=C3=A4rv writes: >>> Nowdays I think the >>> default should be UTF8_STRING, and if that fails, try TEXT and then STR= ING. >> >> Why not COMPOUND_TEXT instead of TEXT above? Please see the >> docstring of x-select-request-type. > > I forgot about that. It is better to try that before TEXT. > >> >> Anyway, the current selection-related codes mix an abstract >> layer (something like interprogram-cut/paste-function) and >> X-specific layer in a chaos manner. It seems that overhaul >> and re-design is necessary. >> > > It is a bit of a mess. Separation of interprogram cut/paste and X select= ions > would be nice. > > Jan D. This is (and has been for quite a while now) a rather show-stopperish bug. Is anybody working on fixing it? (A refresher: you now get \u0ca0_\u0ca0 instead of =E0=B2=A0_=E0=B2=A0 when= pasting from another X app.) =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 22:14:47 2010 Received: (at 6802) by debbugs.gnu.org; 29 Oct 2010 02:14:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBeUR-0006iZ-Ay for submit@debbugs.gnu.org; Thu, 28 Oct 2010 22:14:47 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBeUO-0006iU-Q7 for 6802@debbugs.gnu.org; Thu, 28 Oct 2010 22:14:46 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o9T2Irhf024692; Fri, 29 Oct 2010 11:18:53 +0900 (JST) env-from (handa@m17n.org) Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o9T2IrAh019703; Fri, 29 Oct 2010 11:18:53 +0900 (JST) env-from (handa@m17n.org) Received: by smtp3.aist.go.jp with ESMTP id o9T2IqFC012435; Fri, 29 Oct 2010 11:18:52 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1PBeYO-0000jo-CA; Fri, 29 Oct 2010 11:18:52 +0900 From: Kenichi Handa To: =?iso-2022-jp-2?B?GyQoRCpeGyhCdBskKEQrNRsoQnAbJChEKyEbKEJuIE4=?= =?iso-2022-jp-2?B?GyQoRCs1GyhCbWVj?= Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes In-Reply-To: <87fwvq4ix4.fsf@gmail.com> (message from =?us-ascii?Q?=3D=3Fu?= =?us-ascii?Q?tf-8=3FB=3FxaB0xJtww6FuIE7Em21lYw=3D=3D=3F=3D?= on Thu, 28 Oct 2010 14:10:31 +0200) References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> <4C60EE6C.9040009@swipnet.se> <87fwvq4ix4.fsf@gmail.com> Date: Fri, 29 Oct 2010 11:18:52 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp-2 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6802 Cc: kaloian@gnu.org, jan.h.d@swipnet.se, 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) In article <87fwvq4ix4.fsf@gmail.com>, $(D*^(Bt$(D+5(Bp$(D+!(Bn N$(D+5(Bmec writes: >>> Anyway, the current selection-related codes mix an abstract >>> layer (something like interprogram-cut/paste-function) and >>> X-specific layer in a chaos manner. It seems that overhaul >>> and re-design is necessary. >>> > > > > It is a bit of a mess. Separation of interprogram cut/paste and X selections > > would be nice. > > > > Jan D. > This is (and has been for quite a while now) a rather show-stopperish > bug. Is anybody working on fixing it? As I have been using my private version of mouse-yank-primary (calling (x-selection-value-internal nil) instead of (x-get-selection ...)), I didn't notice that this problem has not yet been solved. :-( I wrote: > It seems that overhaul and re-design is necessary. but I don't have a time to work on it at the moment. Any volunteer? --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 20:33:58 2010 Received: (at 6802) by debbugs.gnu.org; 31 Oct 2010 00:33:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCLrx-0001zZ-PJ for submit@debbugs.gnu.org; Sat, 30 Oct 2010 20:33:57 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCLru-0001zS-BS for 6802@debbugs.gnu.org; Sat, 30 Oct 2010 20:33:54 -0400 Received: from [87.198.55.209] (87-198-55-209.ptr.magnet.ie [87.198.55.209]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 2FDB1684AB; Sun, 31 Oct 2010 01:38:05 +0100 (IST) Message-ID: <4CCCBA6F.8060900@harpegolden.net> Date: Sun, 31 Oct 2010 01:38:07 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.14) Gecko/20101026 Icedove/3.0.9 MIME-Version: 1.0 To: 6802@debbugs.gnu.org Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> <4C60EE6C.9040009@swipnet.se> <87fwvq4ix4.fsf@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6802 Cc: Kenichi Handa X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 29/10/10 03:18, Kenichi Handa wrote: > I wrote: > >> It seems that overhaul and re-design is necessary. > > but I don't have a time to work on it at the moment. Any > volunteer? (I suppose I have some familiarity with the general area at this stage, but my emacs time is currently rather limited too, until late december. I'm quite likely to make some suggestion then ...at least if problems remain - from thread "Re: moving x-select*" on emacs-devel a few days ago it looks like there is some amount of source cleanup/refactoring ongoing.) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 31 12:01:39 2010 Received: (at 6802-done) by debbugs.gnu.org; 31 Oct 2010 16:01:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCaLi-00024O-RG for submit@debbugs.gnu.org; Sun, 31 Oct 2010 12:01:39 -0400 Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCaLg-00024H-3K for 6802-done@debbugs.gnu.org; Sun, 31 Oct 2010 12:01:36 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id BADD1E9021 for <6802-done@debbugs.gnu.org>; Sun, 31 Oct 2010 17:05:52 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQ8ABQwzUxV4S1kPGdsb2JhbACDCYRRmW4MAQEBATUtqT6RBIEigy9zBI1c X-IronPort-AV: E=Sophos;i="4.58,268,1286143200"; d="scan'208";a="146150631" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 31 Oct 2010 17:05:52 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id B3DDD7FA05A; Sun, 31 Oct 2010 17:05:51 +0100 (CET) Message-ID: <4CCD93DF.5030509@swipnet.se> Date: Sun, 31 Oct 2010 17:05:51 +0100 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: David De La Harpe Golden Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> <4C60EE6C.9040009@swipnet.se> <87fwvq4ix4.fsf@gmail.com> <4CCCBA6F.8060900@harpegolden.net> In-Reply-To: <4CCCBA6F.8060900@harpegolden.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6802-done Cc: 6802-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) 2010-10-31 02:38, David De La Harpe Golden skrev: > On 29/10/10 03:18, Kenichi Handa wrote: >> I wrote: >> >>> It seems that overhaul and re-design is necessary. >> >> but I don't have a time to work on it at the moment. Any >> volunteer? > > (I suppose I have some familiarity with the general area at this stage, but my > emacs time is currently rather limited too, until late december. I'm quite > likely to make some suggestion then ...at least if problems remain - from > thread "Re: moving x-select*" on emacs-devel a few days ago it looks like > there is some amount of source cleanup/refactoring ongoing.) For the purpose of fixing this bug, such an overhaul isn't needed. I made a simple fix that makes mouse-2 use the same mechanism as yank from clipboard for X, i.e. try UTF8_STRING and COMPOUND_TEXT before STRING. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 07:53:43 2010 Received: (at 6802) by debbugs.gnu.org; 5 Nov 2010 11:53:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PEKrX-0004ms-FQ for submit@debbugs.gnu.org; Fri, 05 Nov 2010 07:53:43 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PEKrU-0004mm-KX for 6802@debbugs.gnu.org; Fri, 05 Nov 2010 07:53:42 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id oA5Bw8eZ000875; Fri, 5 Nov 2010 20:58:08 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id oA5Bw8FU000482; Fri, 5 Nov 2010 20:58:08 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id oA5Bw7Jo028392; Fri, 5 Nov 2010 20:58:07 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1PEKvn-0003TK-9G; Fri, 05 Nov 2010 20:58:07 +0900 From: Kenichi Handa To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes In-Reply-To: <4CCD93DF.5030509@swipnet.se> (message from Jan =?us-ascii?Q?=3D=3FUTF-8=3FQ=3FDj=3DC3=3DA4rv=3F=3D?= on Sun, 31 Oct 2010 17:05:51 +0100) References: <87mxt1go33.fsf@doganov.org> <83wrrzvj74.fsf@gnu.org> <4C603A4F.20006@swipnet.se> <4C60EE6C.9040009@swipnet.se> <87fwvq4ix4.fsf@gmail.com> <4CCCBA6F.8060900@harpegolden.net> <4CCD93DF.5030509@swipnet.se> Date: Fri, 05 Nov 2010 20:58:07 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6802 Cc: jan.h.d@swipnet.se, 6802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) In article <4CCD93DF.5030509@swipnet.se>, Jan Dj=E4rv = writes: > For the purpose of fixing this bug, such an overhaul isn't needed. That's always true. > I made a=20 > simple fix that makes mouse-2 use the same mechanism as yank from clipboa= rd=20 > for X, i.e. try UTF8_STRING and COMPOUND_TEXT before STRING. Ah, thank you. It is better to update the comment in mouse-yank-primary. Anyway, we have these functions: x-get-selection x-get-selection-internal x-get-selection-value x-selection-value x-selection-value-internal What a mess... --- Kenichi Handa handa@m17n.org =20 From unknown Sat Aug 09 15:54:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Dec 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 19:26:55 2011 Received: (at control) by debbugs.gnu.org; 6 Oct 2011 23:26:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBxL4-0006AI-Pb for submit@debbugs.gnu.org; Thu, 06 Oct 2011 19:26:54 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBxL3-0006AC-IR for control@debbugs.gnu.org; Thu, 06 Oct 2011 19:26:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBxKs-0003KP-Bw for control@debbugs.gnu.org; Thu, 06 Oct 2011 19:26:42 -0400 Date: Thu, 06 Oct 2011 19:26:42 -0400 Message-Id: Subject: control message for bug 6635 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) unarchive 6802 forcemerge 6802 6635 From unknown Sat Aug 09 15:54:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Nov 2011 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator