all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Cannot copy/cut from emacs
Date: Sat, 3 Jul 2004 09:14:10 +0900 (JST)	[thread overview]
Message-ID: <200407030014.JAA09519@etlken.m17n.org> (raw)
In-Reply-To: <20040702.091153.01370603.Takaaki.Ota@am.sony.com> (message from Tak Ota on Fri, 02 Jul 2004 09:11:53 -0700 (PDT))

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

  reply	other threads:[~2004-07-03  0:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-02 16:11 Cannot copy/cut from emacs Tak Ota
2004-07-03  0:14 ` Kenichi Handa [this message]
2004-07-03  1:01   ` Tak Ota
2004-07-03 17:57     ` Tak Ota

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200407030014.JAA09519@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.