* pasting accented characters from mozilla into emasc (workaround)
@ 2003-03-20 11:12 Martin Blais
0 siblings, 0 replies; only message in thread
From: Martin Blais @ 2003-03-20 11:12 UTC (permalink / raw)
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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-20 11:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-20 11:12 pasting accented characters from mozilla into emasc (workaround) Martin Blais
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).