From: Olaf Rogalsky <olaf.rogalsky@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: olaf.rogalsky@gmail.com, 19416@debbugs.gnu.org
Subject: bug#19416: 25.0.50; enhancement of xterm mouse tracking: draging the mouse now generates mouse-movement events
Date: Wed, 07 Jan 2015 21:43:48 +0100 [thread overview]
Message-ID: <87egr6xqwr.fsf@gmail.com> (raw)
In-Reply-To: <jwvk30y8syh.fsf-monnier+emacsbugs@gnu.org>
monnier@iro.umontreal.ca writes:
>> It would be nice, if the patch could find its way into Emacs.
>
> Agreed. For that, we need you to sign some copyright paperwork.
Great
> If that's OK with you, then please fill the form below and send it to
> the FSF as instructed so they can send you the appropriate paperwork
> to sign.
Done
> While this process is going on, we can look at the actual code and see
> how we could improve it. Let's start with read-utf8-char: the handling
> of "keyboard decoding" has seen some changes over the years, and I think
> with the latest code in Emacs's master (which is the same as in
> Emacs-24.4), something like read-utf8-char should be much simpler
> (i.e. just read a char while setting the keyboard-coding-system to
> utf-8 at the same time).
Yes, thats perfectly fine with me. I tried the following, but wasn't successfull:
(defun read-utf8-char (&optional prompt inherit-input-method seconds)
"..."
(let ((tmp (keyboard-coding-system)))
(set-keyboard-coding-system 'utf-8)
(prog1 (read-char prompt inherit-input-method seconds)
(set-keyboard-coding-system tmp))))
(insert (read-utf8-char))
If I now enter AltGr-m (which gives in my xterm-configuration µ =
MICRO-SIGN U+00B5) followed by a space, then I get the following result:
=> "Â" (after pressing AltGr-m)
=> "\265 " (after pressing space)
Obviously I am doing something wrong.
Olaf
--
Olaf Rogalsky
Schwörhausgasse 5
89073 Ulm
next prev parent reply other threads:[~2015-01-07 20:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-20 0:00 bug#19416: 25.0.50; enhancement of xterm mouse tracking: draging the mouse now generates mouse-movement events olaf.rogalsky
2014-12-20 2:55 ` Stefan Monnier
2014-12-20 14:29 ` Olaf Rogalsky
2015-01-07 16:24 ` Stefan Monnier
2015-01-07 20:43 ` Olaf Rogalsky [this message]
2015-01-07 22:46 ` Stefan Monnier
2015-02-20 23:05 ` Olaf Rogalsky
2015-02-22 22:09 ` Stefan Monnier
[not found] ` <87zj7w3del.fsf@gmail.com>
[not found] ` <jwvh9tt8tfj.fsf-monnier+emacsbugs@gnu.org>
2015-03-22 15:51 ` Olaf Rogalsky
2015-03-23 2:06 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egr6xqwr.fsf@gmail.com \
--to=olaf.rogalsky@gmail.com \
--cc=19416@debbugs.gnu.org \
--cc=monnier@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).