all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot copy/cut from emacs
@ 2004-07-02 16:11 Tak Ota
  2004-07-03  0:14 ` Kenichi Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Tak Ota @ 2004-07-02 16:11 UTC (permalink / raw)


2004-07-01  Kenichi Handa  <handa@m17n.org>

	* 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cannot copy/cut from emacs
  2004-07-02 16:11 Cannot copy/cut from emacs Tak Ota
@ 2004-07-03  0:14 ` Kenichi Handa
  2004-07-03  1:01   ` Tak Ota
  0 siblings, 1 reply; 4+ messages in thread
From: Kenichi Handa @ 2004-07-03  0:14 UTC (permalink / raw)
  Cc: emacs-devel

In article <20040702.091153.01370603.Takaaki.Ota@am.sony.com>, Tak Ota <Takaaki.Ota@am.sony.com> writes:

> 2004-07-01  Kenichi Handa  <handa@m17n.org>
> 	* 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cannot copy/cut from emacs
  2004-07-03  0:14 ` Kenichi Handa
@ 2004-07-03  1:01   ` Tak Ota
  2004-07-03 17:57     ` Tak Ota
  0 siblings, 1 reply; 4+ messages in thread
From: Tak Ota @ 2004-07-03  1:01 UTC (permalink / raw)
  Cc: emacs-devel

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 <handa@m17n.org> wrote:

> In article <20040702.091153.01370603.Takaaki.Ota@am.sony.com>, Tak Ota <Takaaki.Ota@am.sony.com> writes:
> 
> > 2004-07-01  Kenichi Handa  <handa@m17n.org>
> > 	* 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cannot copy/cut from emacs
  2004-07-03  1:01   ` Tak Ota
@ 2004-07-03 17:57     ` Tak Ota
  0 siblings, 0 replies; 4+ messages in thread
From: Tak Ota @ 2004-07-03 17:57 UTC (permalink / raw)
  Cc: emacs-devel

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 <Takaaki.Ota@am.sony.com> 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 <handa@m17n.org> wrote:
> 
> > In article <20040702.091153.01370603.Takaaki.Ota@am.sony.com>, Tak Ota <Takaaki.Ota@am.sony.com> writes:
> > 
> > > 2004-07-01  Kenichi Handa  <handa@m17n.org>
> > > 	* 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-03 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-02 16:11 Cannot copy/cut from emacs Tak Ota
2004-07-03  0:14 ` Kenichi Handa
2004-07-03  1:01   ` Tak Ota
2004-07-03 17:57     ` Tak Ota

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.