From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: Cannot copy/cut from emacs Date: Sat, 03 Jul 2004 10:57:03 -0700 (PDT) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040703.105703.01370309.Takaaki.Ota@am.sony.com> References: <20040702.091153.01370603.Takaaki.Ota@am.sony.com> <200407030014.JAA09519@etlken.m17n.org> <20040702.180140.207584002.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1088877450 4999 80.91.224.253 (3 Jul 2004 17:57:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Jul 2004 17:57:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jul 03 19:57:21 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgolN-0005GI-00 for ; Sat, 03 Jul 2004 19:57:21 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgolM-0002Sd-00 for ; Sat, 03 Jul 2004 19:57:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgonE-00077u-VT for emacs-devel@quimby.gnus.org; Sat, 03 Jul 2004 13:59:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgonA-00077p-Cs for emacs-devel@gnu.org; Sat, 03 Jul 2004 13:59:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bgon8-00077c-BO for emacs-devel@gnu.org; Sat, 03 Jul 2004 13:59:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bgon8-00077Z-8X for emacs-devel@gnu.org; Sat, 03 Jul 2004 13:59:10 -0400 Original-Received: from [160.33.98.75] (helo=mail8.fw-bc.sony.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bgol9-0006hY-3u for emacs-devel@gnu.org; Sat, 03 Jul 2004 13:57:07 -0400 Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail8.fw-bc.sony.com (8.12.11/8.12.11) with ESMTP id i63Hv5sZ000135; Sat, 3 Jul 2004 17:57:05 GMT Original-Received: from localhost ([43.134.220.49]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id i63Hv4I3008383; Sat, 3 Jul 2004 17:57:04 GMT Original-To: handa@m17n.org In-Reply-To: <20040702.180140.207584002.Takaaki.Ota@am.sony.com> X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-4.0.66 on Emacs-21.3.50.1 (i386-msvc-nt5.1.2600) of 2004-07-02 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25414 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25414 Sorry it must have been a false alarm since I no longer be able to reproduce the problem. However, I DID have the problem in copying/cutting from emacs right after updating from the CVS which included your change. Please forget about this for now. -Tak Fri, 02 Jul 2004 18:01:40 -0700 (PDT): Tak Ota wrote: > After rebuilding emacs with your change again I'm having hard time > reproducing the problem. Let me spend some more time on this. > > -Tak > > Sat, 3 Jul 2004 09:14:10 +0900 (JST): Kenichi Handa wrote: > > > In article <20040702.091153.01370603.Takaaki.Ota@am.sony.com>, Tak Ota writes: > > > > > 2004-07-01 Kenichi Handa > > > * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly > > > after getting a new string by pre-write-conversion. > > > > > This change breaks copying from emacs to the system clipboard. > > > The newly added following "+ 1" garble the clipboard content when > > > emacs performs kill/copy operation. > > > > > nbytes = SBYTES (string) + 1; > > > > > Removing the "+ 1" restores the correct operation. > > > > Hmm, strange. How does it "garble the clipboard content"? > > > > At the beginning of Fw32_set_clipboard_data, nbytes is set > > as this: > > > > nbytes = SBYTES (string) + 1; > > > > So, I installed the above change to make nbytes contain the > > terminating null even when pre-write-conversion is called. > > > > Please try: > > > > (coding-system-put selection-coding-sytem 'pre-write-conversion nil) > > > > Does it change the behaviour? > > > > --- > > Ken'ichi HANDA > > handa@m17n.org > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel