all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs 24.5.1 has wrong charset on yanked text with Windows (was: Operating on yanked region)
Date: Wed, 18 May 2016 21:14:13 +0300	[thread overview]
Message-ID: <83posj2pze.fsf@gnu.org> (raw)
In-Reply-To: <2016-05-18T17-35-17@devnull.Karl-Voit.at> (message from Karl Voit on Wed, 18 May 2016 17:53:51 +0200)

> From: Karl Voit <devnull@Karl-Voit.at>
> Date: Wed, 18 May 2016 17:53:51 +0200
> 
> ,----
> | selection-coding-system is a variable defined in `select.el'.
> | Its value is iso-latin-1-dos
> | Original value was nil
> `----
> 
> I once set this to 'utf-8 in my init.el. The Emacs help further
> suggests setting it to 'utf-16le-dos instead when running on
> Windows. With switching to this setting, the clipboard gets yanked
> properly! :-)

You shouldn't set selection-coding-system to any value on MS-Windows,
just leave it alone.  It will work regardless.  Setting it to anything
is asking for trouble, as it forces Emacs to use that encoding instead
of using UTF-16 when available in the clipboard.

> Can you still show me how I yank and operate (string-replace) only
> on the yanked text?

Turn on transient-mark-mode, I think.



  reply	other threads:[~2016-05-18 18:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18 11:07 Operating on yanked region Karl Voit
2016-05-18 11:30 ` Yuri Khan
2016-05-18 12:13   ` Emacs 24.5.1 has wrong charset on yanked text with Windows (was: Operating on yanked region) Karl Voit
2016-05-18 12:31     ` tomas
2016-05-18 15:53       ` Karl Voit
2016-05-18 18:14         ` Eli Zaretskii [this message]
2016-05-18 20:30           ` Karl Voit
2016-05-19  4:28             ` Eli Zaretskii
2016-05-19  8:38         ` tomas
2016-06-09 10:10           ` Karl Voit
2016-06-09 10:18             ` tomas
2016-05-18 13:25     ` Yuri Khan
2016-05-18 18:02   ` Operating on yanked region Eli Zaretskii
2016-05-18 17:59 ` Eli Zaretskii
2016-06-09  9:43   ` Karl Voit
2016-06-09 12:33     ` Eli Zaretskii

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=83posj2pze.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.