bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clean mess encrusted on to Chinese pastes cut from outside emacs


From: Eli Zaretskii
Subject: Re: clean mess encrusted on to Chinese pastes cut from outside emacs
Date: Sat, 23 Jun 2001 10:56:26 +0300

> From: Dan Jacobson <jidanni@kimo.FiXcomTHiS.tw>
> Newsgroups: gnu.emacs.bug
> Date: 22 Jun 2001 16:53:19 +0800
> 
> (defun dan-cleancrap-encrusted-onto-big5-chinese-pastes ()
> "Cleanup mess encrusted onto Chinese characters when pasting items cut
> from outside of emacs... wonder why there is such mess?  This version
> tested 1 whole minute.  Should I really use \\\\t?"
>   (interactive)
>   (query-replace-regexp
>    "\e%/2\200\211BIG5-0\C-b\200\211BIG5-0\C-b\\([^ \\t]+\\)\e(B" "\\1" nil))

What is your selection-coding-system set to, and what was the
application which put the text into the X selection?  (Some
applications are known to produce wrong encoding of the text they put
into the X selections; Emacs cannot do much about that.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]