From: Karl Voit <devnull@Karl-Voit.at>
To: help-gnu-emacs@gnu.org
Subject: Re: Operating on yanked region
Date: Thu, 9 Jun 2016 11:43:20 +0200 [thread overview]
Message-ID: <2016-06-09T11-39-42@devnull.Karl-Voit.at> (raw)
In-Reply-To: 83twhv2qng.fsf@gnu.org
* Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Karl Voit <devnull@Karl-Voit.at>
>> 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
next prev parent reply other threads:[~2016-06-09 9:43 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
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 [this message]
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
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=2016-06-09T11-39-42@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--cc=help-gnu-emacs@gnu.org \
--cc=news1142@Karl-Voit.at \
/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).