From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: neverov_dg@nkmk.ru Newsgroups: gmane.emacs.help Subject: Problem with clipboard Date: Mon, 5 Mar 2007 09:34:10 +0700 Organization: nkmk Message-ID: <124486459.20070305093410@nkmk.ru> Reply-To: Неверов Дмитрий NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1173062091 14765 80.91.229.12 (5 Mar 2007 02:34:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 02:34:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 05 03:34:44 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HO32C-0007yA-Ff for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2007 03:34:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO32B-0003v4-Ug for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Mar 2007 21:34:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HO31z-0003uy-QJ for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:34:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HO31y-0003ul-91 for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:34:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO31y-0003ui-3w for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:34:30 -0500 Original-Received: from ns.nkmk.ru ([62.231.186.17]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HO31x-0006qU-DW for help-gnu-emacs@gnu.org; Sun, 04 Mar 2007 21:34:29 -0500 Original-Received: from ns.nkmk.ru (root@localhost) by ns.nkmk.ru (8.13.4/8.13.4) with SMTP id l252YEYE038637 for ; Mon, 5 Mar 2007 09:34:14 +0700 (KRAT) (envelope-from neverov_dg@nkmk.ru) Original-Received: from bsd4.kmk (bsd4.kmk [200.1.1.54]) by ns.nkmk.ru (8.13.4/8.13.4) with ESMTP id l252YClf038631 for ; Mon, 5 Mar 2007 09:34:14 +0700 (KRAT) (envelope-from neverov_dg@nkmk.ru) Original-Received: from bsd4.kmk (root@localhost) by bsd4.kmk (8.12.11/8.12.11) with SMTP id l252YCwE047609 for ; Mon, 5 Mar 2007 09:34:12 +0700 (KRAT) (envelope-from neverov_dg@nkmk.ru) Original-Received: from nd.nkmk.ru (nd.nkmk.ru [10.40.8.178]) by bsd4.kmk (8.12.11/8.12.11) with ESMTP id l252YAUK047599 for ; Mon, 5 Mar 2007 09:34:11 +0700 (KRAT) (envelope-from neverov_dg@nkmk.ru) X-Mailer: The Bat! (v3.5) Professional X-Priority: 3 (Normal) X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.2/RELEASE, bases: 05032007 #260255, status: clean X-detected-kernel: FreeBSD 4.6-4.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41659 Archived-At: Hi! 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) My emacs-version is: GNU Emacs 22.0.93.1 (i386-mingw-nt5.1.2600) of 2007-02-01 on LENNART-69DE564 (patched) How can I fix it? ---- Neverov Dmitry