From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Voit Newsgroups: gmane.emacs.help Subject: Re: Operating on yanked region Date: Thu, 9 Jun 2016 11:43:20 +0200 Organization: www.karl-voit.at Message-ID: <2016-06-09T11-39-42@devnull.Karl-Voit.at> References: <2016-05-18T13-02-10@devnull.Karl-Voit.at> <83twhv2qng.fsf@gnu.org> Reply-To: Karl Voit NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465465460 30517 80.91.229.3 (9 Jun 2016 09:44:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 09:44:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 09 11:44:08 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bAwVT-00018A-Nl for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 11:44:07 +0200 Original-Received: from localhost ([::1]:33403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAwVS-0007aL-TQ for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2016 05:44:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAwV4-0007a4-75 for help-gnu-emacs@gnu.org; Thu, 09 Jun 2016 05:43:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAwUz-0000Iv-7B for help-gnu-emacs@gnu.org; Thu, 09 Jun 2016 05:43:41 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAwUz-0000In-14 for help-gnu-emacs@gnu.org; Thu, 09 Jun 2016 05:43:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bAwUw-0000mN-QT for help-gnu-emacs@gnu.org; Thu, 09 Jun 2016 11:43:35 +0200 Original-Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jun 2016 11:43:34 +0200 Original-Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jun 2016 11:43:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: friends.grml.info X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg X-Registered-Linux-User: 224337 X-Confession: Pastafarian http://www.venganza.org/ User-Agent: slrn/pre1.0.0-18 (Linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110390 Archived-At: * Eli Zaretskii wrote: >> From: Karl Voit >> Date: Wed, 18 May 2016 13:07:12 +0200 >> >> When I paste text from a Windows application to my Emacs (running >> mainly Org-mode), I get wrong charset. > > That shouldn't happen, as Emacs uses Unicode to get text from the > clipboard. There should be no charsets involved here. > > Does this happen in "emacs -Q"? If so, what version of Emacs is that, > and is it a native Windows build or a Cygwin build? No, it did not happen in emacs -Q and I am using GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 (binary download). > If this doesn't happen in "emacs -Q", look at your customizations to > find the culprit, especially those related to encoding/decoding > selections. It *is* related to my customizations[1] and a snippet I got from [2]. >> For correcting such wrong character sets, I want to write a function >> that corrects the charset. > > This shouldn't be needed (and if it is, then it's impossible in > general, because Windows attempts to translate characters, and does > that lossily). Suggest instead to find out why Unicode retrieval > doesn't work. With your help in this thread, I fixed my charset issue. However, I was not able to search&replace within the yanked text or within the text before being inserted in order to convert Outlook-list items to Org-mode syntax. [1] https://github.com/novoid/dot-emacs [2] https://www.masteringemacs.org/article/working-coding-systems-unicode-emacs -- All in all, one of the most disturbing things today is the definitive fact that the NSA, GCHQ, and many more government organizations are massively terrorizing the freedom of us and the next generations. http://Karl-Voit.at