From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Olaf Rogalsky Newsgroups: gmane.emacs.bugs Subject: bug#19416: 25.0.50; enhancement of xterm mouse tracking: draging the mouse now generates mouse-movement events Date: Sat, 21 Feb 2015 00:05:48 +0100 Message-ID: <871tlk420j.fsf@gmail.com> References: <87d27fqjfw.fsf@gmail.com> <87egr6xqwr.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1424473588 3548 80.91.229.3 (20 Feb 2015 23:06:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 23:06:28 +0000 (UTC) Cc: olaf.rogalsky@gmail.com, 19416@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 00:06:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YOweB-0004go-H4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2015 00:06:11 +0100 Original-Received: from localhost ([::1]:34491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOweA-0002Q3-Mx for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 18:06:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOwe6-0002PR-7o for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 18:06:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOwe2-0005Rf-TK for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 18:06:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOwe2-0005R8-PH for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 18:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOwe2-00013K-Dz for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 18:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Olaf Rogalsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Feb 2015 23:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19416 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19416-submit@debbugs.gnu.org id=B19416.14244735554032 (code B ref 19416); Fri, 20 Feb 2015 23:06:02 +0000 Original-Received: (at 19416) by debbugs.gnu.org; 20 Feb 2015 23:05:55 +0000 Original-Received: from localhost ([127.0.0.1]:49755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOwdu-00012x-Cs for submit@debbugs.gnu.org; Fri, 20 Feb 2015 18:05:54 -0500 Original-Received: from mail-we0-f177.google.com ([74.125.82.177]:41070) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOwds-00012p-6w for 19416@debbugs.gnu.org; Fri, 20 Feb 2015 18:05:52 -0500 Original-Received: by wevm14 with SMTP id m14so8191782wev.8 for <19416@debbugs.gnu.org>; Fri, 20 Feb 2015 15:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; bh=7FiVfcG08/wOwIKKo9oJZ2r9sbIPeXsMlmvoEkPOzPE=; b=awhQ1XR+lElz/fMofpa5GnBg9uLjyesdLmPK+UNN7YjAd5RuqKCkGo3JR5JfWIPft2 TgRhlkzsOpiAq5XTmPvis30W5ls5Os+Zm/wCPj7CtiP5ElWaNF6nbGsjTex26qFhwdcD Qy6lBzF+rxpaaSvdxeZSLxvQ9OoyMPV3yBhWabbMrcmGES7Rzw+8vtg/CJmWN+jLMYbM roB8x+4d0fxysechx97xfV1ZwM0NOH5G0HfFWzBRKGoSRH1p62ss65Ebmd6+hPDbYxnn DqwBOyj3jp5Ahr5mcUfbAt0hMBsTJYWk0cvHz2rIPUESWP4QhKHP7JnZQtKSkmQlD+cF 0FxQ== X-Received: by 10.180.198.37 with SMTP id iz5mr405245wic.95.1424473551612; Fri, 20 Feb 2015 15:05:51 -0800 (PST) Original-Received: from blaubaer (p5B21CD5F.dip0.t-ipconnect.de. [91.33.205.95]) by mx.google.com with ESMTPSA id er13sm44104335wjc.11.2015.02.20.15.05.49 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 20 Feb 2015 15:05:50 -0800 (PST) In-reply-to: <87egr6xqwr.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99663 Archived-At: Stefan, now, that the assignment finally has been signed by both sides, I changed my code to use set-keyboard-coding-system to read utf-8 characters. But there is still have one glitch, which I haven't been able to resolve: Dragging the vertical line between two side-by-side windows works as expected (changing window sizes), but only if the mouse stays on the same terminal line during the mouse drag. Otherwise emacs responds with a "bell" and the window resizing stops. Dragging the modeline does not show this kind of behaviour. Any ideas? Regards, Olaf Olaf Rogalsky writes: > 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 Germany