all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.