From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18638: 24.3.94; resizing of whindow by dragging the modeline does not work under xterm Date: Thu, 09 Oct 2014 09:54:21 -0400 Message-ID: References: <87bnpq2qee.fsf@blaubaer.i-did-not-set--mail-host-address--so-tickle-me> <4p38az7vnp.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412862932 13796 80.91.229.3 (9 Oct 2014 13:55:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2014 13:55:32 +0000 (UTC) Cc: olaf , 18638-done@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 15:55:23 2014 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 1XcEBe-0004yR-N5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2014 15:55:22 +0200 Original-Received: from localhost ([::1]:42672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcEBe-0007F5-9I for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2014 09:55:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcEBT-0007EM-I3 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 09:55:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcEBL-0003RO-W5 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 09:55:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcEBL-0003RG-TM for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 09:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XcEBL-0007hc-3j for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 09:55:03 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Oct 2014 13:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18638 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Mail-Followup-To: 18638@debbugs.gnu.org, monnier@iro.umontreal.ca, olaf.rogalsky@t-online.de Original-Received: via spool by 18638-done@debbugs.gnu.org id=D18638.141286286629545 (code D ref 18638); Thu, 09 Oct 2014 13:55:01 +0000 Original-Received: (at 18638-done) by debbugs.gnu.org; 9 Oct 2014 13:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:38699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcEAj-0007gT-Oj for submit@debbugs.gnu.org; Thu, 09 Oct 2014 09:54:26 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:11763) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcEAh-0007gL-VV for 18638-done@debbugs.gnu.org; Thu, 09 Oct 2014 09:54:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNFxKjo/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALDiYSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IPAS-Result: ArYGAIDvNVNFxKjo/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALDiYSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="93688520" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 09 Oct 2014 09:54:22 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0497C85A3; Thu, 9 Oct 2014 09:54:21 -0400 (EDT) In-Reply-To: <4p38az7vnp.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 07 Oct 2014 11:21:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:94335 >> Result: At the release of the mouse button the upper window will get a >> hight of 3 lines, irrespective of the dragging amount. > I see this in 24.3.94 but not 24.3, so it seems to be a new issue. Indeed, the reason is that mouse.el now uses mouse-pixel-position instead of mouse-position in mouse-drag-line, and xt-mouse.el uses mouse-position-function to convince mouse-position to return useful info in xterm frames, whereas there was no such hook for mouse-pixel-position. I installed a patch which fixes this by making mouse-pixel-position call mouse-position-function as well. I think a better patch would be to make mouse-drag-line use the event's own position info rather than calling mouse-pixel-position, but the corresponding patch is a bit more fiddly, so I'll keep it for after 24.4. Stefan