From: Martin Blais <blais@iro.umontreal.ca>
Subject: pasting accented characters from mozilla into emasc (workaround)
Date: Thu, 20 Mar 2003 22:12:10 +1100 [thread overview]
Message-ID: <200303202212.10681.blais@iro.umontreal.ca> (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))
reply other threads:[~2003-03-20 11:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200303202212.10681.blais@iro.umontreal.ca \
--to=blais@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.