unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: yamaoka@jpl.org, romain@orebokech.com, emacs-devel@gnu.org,
	handa@m17n.org
Subject: Re: Cut buffers and character encoding
Date: Tue, 21 Nov 2006 13:47:14 +0100	[thread overview]
Message-ID: <4562F552.4020600@swipnet.se> (raw)
In-Reply-To: <E1GmJ1r-000801-VC@fencepost.gnu.org>



Richard Stallman skrev:
>     > When killing and yanking even non-Latin text within Emacs, Emacs
>     > seems to encode and decode the text using iso-latin-1 now.
>     > 
> 
>     Ah, I misunderstood the check for newness, please try again (don't forget to 
>     recompile x-win.el).
> 
> Didn't someone say that X11 specifies that the cut buffer is always
> supposed to be in latin-1?

Yes, it is in ICCCM.


>  We changed Emacs so that C-x RET c
> would specify another coding system in case you're using one,
> but aside from when C-x RET c is used, Emacs should always treat
> it as Latin 1.  Isn't that so?

Yes it is so.  The problem was that wen you select something in Emacs, 
regardless of coding, Emacs puts it in the cut buffer.  And then when pasting 
in the same Emacs, Emacs compares the contents of the cut buffer with the last 
thing it put there.  If they are the same, Emacs assumes that there is no new 
stuff in the cut buffer and uses data from its kill ring instead.

I messed up so that the contents from the cut buffer always looked new to 
Emacs.  But I've fixed that now.

	Jan D.

  reply	other threads:[~2006-11-21 12:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09  7:39 Cut buffers and character encoding Romain Francoise
2006-11-09 19:10 ` Jan D.
2006-11-09 20:56   ` Romain Francoise
2006-11-10  7:42     ` Jan D.
2006-11-10 10:24       ` Kenichi Handa
2006-11-10 13:39         ` Romain Francoise
2006-11-11 12:40           ` Kenichi Handa
2006-11-12  5:14             ` Richard Stallman
2006-11-18  2:23               ` Kenichi Handa
2006-11-18 13:18                 ` Jan Djärv
2006-11-20  3:23                   ` Katsumi Yamaoka
2006-11-20  7:44                     ` Jan Djärv
2006-11-20  7:57                       ` Katsumi Yamaoka
2006-11-20 23:58                       ` Richard Stallman
2006-11-21 12:47                         ` Jan Djärv [this message]
2006-11-18 16:05                 ` Richard Stallman
2006-11-10 18:41   ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4562F552.4020600@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=romain@orebokech.com \
    --cc=yamaoka@jpl.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).