From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Martin Blais Newsgroups: gmane.emacs.help Subject: pasting accented characters from mozilla into emasc (workaround) Date: Thu, 20 Mar 2003 22:12:10 +1100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200303202212.10681.blais@iro.umontreal.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1048159247 31393 80.91.224.249 (20 Mar 2003 11:20:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 11:20:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 12:20:46 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vy6C-0008A1-00 for ; Thu, 20 Mar 2003 12:20:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vy3V-0002bB-04 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2003 06:17:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vy31-0001sn-00 for help-gnu-emacs@gnu.org; Thu, 20 Mar 2003 06:17:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vxyK-0007lZ-00 for help-gnu-emacs@gnu.org; Thu, 20 Mar 2003 06:12:34 -0500 Original-Received: from ppp146.dyn143.pacific.net.au ([210.23.143.146] helo=jekyll.safehouse.com.au) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18vxxg-0006eB-00 for help-gnu-emacs@gnu.org; Thu, 20 Mar 2003 06:11:53 -0500 Original-Received: from toenail.como (ppp150.dyn143.pacific.net.au [210.23.143.150]) h2KBCB3h010603; Thu, 20 Mar 2003 22:12:12 +1100 Original-Received: from toenail.como (localhost.localdomain [127.0.0.1]) by toenail.como (8.12.8/8.12.8) with ESMTP id h2KBCA0v009973; Thu, 20 Mar 2003 22:12:10 +1100 Original-Received: from localhost (localhost [[UNIX: localhost]]) by toenail.como (8.12.8/8.12.8/Submit) id h2KBCAGO009971; Thu, 20 Mar 2003 22:12:10 +1100 Original-To: help-gnu-emacs@gnu.org User-Agent: KMail/1.4.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7747 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7747 hi again. for all it's worth, i've managed to build an ugly workaround for the problem described in my previous email (not tested very=20 long, still have to use this for a while to see if all still works=20 as expected): ;;-----------------------------------------------------------------------= -------- ;; hack to convert mozilla's selection when pasting in. (defun user-mouse-yank-at-click (click arg) (interactive "e\nP") (let ((decoded (decode-coding-string =09=09 (x-get-selection 'PRIMARY 'UTF8_STRING) 'utf-8))) (x-set-selection 'PRIMARY decoded) (mouse-yank-at-click click arg) )) (substitute-key-definition 'mouse-yank-at-click 'user-mouse-yank-at-click (current-global-map)) ;; (add-to-list 'selection-converter-alist '(UTF8_STRING . xselect-conver= t-to-string))