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: Dan Jacobson
Subject: Re: clean mess encrusted on to Chinese pastes cut from outside emacs
Date: 14 Jul 2001 10:46:11 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

[i am resending messages because pubnews closed down]

>>>>> "Kenichi" == Kenichi Handa <handa@etl.go.jp> writes:
Kenichi> Emacs 21.1 still can't handle this kind of extension to
Kenichi> Compound Text.  To handle it, we need the followings.

Hi, In the meantime since you understand the spec, could you help me
correct my function so for cleaning up after a paste?  My regular
expression doesn't seem to match all the time.  This could be put in
etc/PROBLEMS as a stopgap measure.

(defun dan-clean-crap-encrusted-onto-big5-chinese-pastes ()
"Cleanup mess encrusted onto Chinese characters when pasting items cut
from outside of emacs... works sometimes"
  (interactive)
  (query-replace-regexp
   "\e%/2\200\211BIG5-0\C-b\200\211BIG5-0\C-b\\([^ \\t]+\\)\e(B" "\\1" nil))
posted & mailed
-- 
http://www.geocities.com/jidanni Tel+886-4-25854780 e-mail:restore .com.



reply via email to

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