From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23009: 25.0.92; xterm-mouse-mode should not assume UTF-8 coordinates Date: Sat, 02 Apr 2016 12:43:13 +0300 Message-ID: <83lh4ws5vy.fsf@gnu.org> References: <83y49lc8o8.fsf@gnu.org> <83d1qvbp59.fsf@gnu.org> <83io0a273o.fsf@gnu.org> <83shzdyux7.fsf@gnu.org> <83fuvcymjd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459590259 22097 80.91.229.3 (2 Apr 2016 09:44:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 09:44:19 +0000 (UTC) Cc: 23009@debbugs.gnu.org, p.stephani2@gmail.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 11:44:09 2016 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 1amI6D-0007go-Gs for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 11:44:09 +0200 Original-Received: from localhost ([::1]:48727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amI6C-0006Pm-Lp for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 05:44:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amI67-0006OG-5E for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 05:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amI66-0002ex-2u for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 05:44:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amI65-0002eo-VL for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 05:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amI65-0006eb-OG for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 05:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 09:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23009 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23009-submit@debbugs.gnu.org id=B23009.145959023625558 (code B ref 23009); Sat, 02 Apr 2016 09:44:01 +0000 Original-Received: (at 23009) by debbugs.gnu.org; 2 Apr 2016 09:43:56 +0000 Original-Received: from localhost ([127.0.0.1]:47788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amI5z-0006e9-NP for submit@debbugs.gnu.org; Sat, 02 Apr 2016 05:43:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amI5y-0006dw-8b for 23009@debbugs.gnu.org; Sat, 02 Apr 2016 05:43:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amI5s-0002XW-6G for 23009@debbugs.gnu.org; Sat, 02 Apr 2016 05:43:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amI5o-0002Vx-DJ; Sat, 02 Apr 2016 05:43:44 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4563 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1amI5n-0005h6-Mj; Sat, 02 Apr 2016 05:43:44 -0400 In-reply-to: <83fuvcymjd.fsf@gnu.org> (message from Eli Zaretskii on Sun, 27 Mar 2016 18:21:10 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115862 Archived-At: > Date: Sun, 27 Mar 2016 18:21:10 +0300 > From: Eli Zaretskii > Cc: 23009@debbugs.gnu.org > > > From: Philipp Stephani > > Date: Sat, 26 Mar 2016 22:26:17 +0000 > > Cc: 23009@debbugs.gnu.org > > > > Hmm... what does current-input-mode return on HTerm in "emacs -Q"? > > > > (t nil 0 7) > > > > I > > expect to see a non-nil, non-t value in the 3rd element of its return > > value. If that's so, then testing that value for identity with the > > one we want to pass to set-input-meta-mode, and avoiding the latter > > call if the mode is already what we want, might avoid the flickering. > > > > Yes, that's already the case (set-input-meta-mode doesn't reinitialize the terminal if the meta mode doesn't > > change), and it's why I use latin-1 instead of no-conversion. With latin-1, a single mouse click results in 8 > > invocations of (set-input-meta-mode 8) (two mouse events with two coordinates each, and a set and reset > > per coordinate). With no-conversion, the same click results in four sequences of (set-input-meta-mode t) > > (set-input-meta-mode 8), which causes the flicker. > > Then I guess I'm confused about the reason for (set-input-meta-mode t) > in the case of no-conversion -- don't we want Emacs to pass the 8th > bit through without interpreting it? Perhaps Handa-san could comment > on this, as I'm otherwise inclined to add raw-text to the list of the > coding-system types that want a non-nil, non-t value to be passed to > set-input-meta-mode. Ping! Philipp, can you try adding raw-text to that list, and see if the result works correctly?