From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem with clipboard
Date: Mon, 05 Mar 2007 06:31:49 +0200 [thread overview]
Message-ID: <uzm6smhu2.fsf@gnu.org> (raw)
In-Reply-To: <124486459.20070305093410@nkmk.ru> (neverov_dg@nkmk.ru)
> Date: Mon, 5 Mar 2007 09:34:10 +0700
> From: neverov_dg@nkmk.ru
>
> I'm running emacs on WinXP and have problems with inserting text from
> clipboard. When I select text in MS Word or Firefox and paste it into
> emacs it inserts symbols in latin-1 encoding, but I want him to insert
> text in windows-1251-dos encoding.
>
> When I use:
>
> M-x set-next-selection-coding-system RET windows-1251-dos RET
>
> and paste text all work fine, but just one time. I try to use
>
> M-x set-selection-coding-system RET windows-1251-dos RET
>
> but it doesn't help, text is inserted in latin-1 encoding.
>
> Encoding-specific section in my .emacs:
>
> (set-language-environment "Russian")
> (define-coding-system-alias 'windows-1251 'cp1251)
> (set-buffer-file-coding-system 'cp1251-dos)
> (set-default-coding-systems 'cp1251-dos)
> (set-terminal-coding-system 'windows-1251-dos)
> (set-selection-coding-system 'cp1251-dos)
> (prefer-coding-system 'cp1251-dos)
What happens if you try this in "emacs -Q"?
(On Windows XP, it's almost never the right thing to force Emacs into
some specific encoding when working with the clipboard.)
next prev parent reply other threads:[~2007-03-05 4:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 2:34 Problem with clipboard neverov_dg
2007-03-05 4:31 ` Eli Zaretskii [this message]
2007-03-05 4:55 ` Re[2]: " neverov_dg
2007-03-05 20:59 ` Eli Zaretskii
2007-03-06 1:28 ` Re[2]: " neverov_dg
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=uzm6smhu2.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.
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).