[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pasting accented characters from mozilla into emasc (workaround)
From: |
Martin Blais |
Subject: |
pasting accented characters from mozilla into emasc (workaround) |
Date: |
Thu, 20 Mar 2003 22:12:10 +1100 |
User-agent: |
KMail/1.4.3 |
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
long, still have to use this for a while to see if all still works
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
(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-convert-to-string))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- pasting accented characters from mozilla into emasc (workaround),
Martin Blais <=