From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Clicks map to wrong line with line-spacing > nil. Date: Sat, 01 Aug 2015 12:18:14 +0200 Message-ID: <87a8ubpb15.fsf@gnu.org> References: <836150vx9l.fsf@gnu.org> <831tfnwk56.fsf@gnu.org> <87egjnpibn.fsf@gnu.org> <83si83uy09.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438424316 9815 80.91.229.3 (1 Aug 2015 10:18:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 10:18:36 +0000 (UTC) Cc: koppel@ece.lsu.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 01 12:18:25 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZLTs1-0001XQ-4L for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 12:18:25 +0200 Original-Received: from localhost ([::1]:53204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLTs0-0002p1-5n for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 06:18:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLTrw-0002ow-UJ for emacs-devel@gnu.org; Sat, 01 Aug 2015 06:18:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLTru-0000Q8-HI for emacs-devel@gnu.org; Sat, 01 Aug 2015 06:18:20 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLTru-0000Q3-Da for emacs-devel@gnu.org; Sat, 01 Aug 2015 06:18:18 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 454C32036D for ; Sat, 1 Aug 2015 06:18:17 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sat, 01 Aug 2015 06:18:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=YRd9/wAaTq1FPK5H6ijGn/JNcgg=; b=p7Y1p trTia2VrT84wXttiNK+EznK0OPpiTybQyCtH8nj5BEWdNf+coQ2YQ5oNtdubkcCW P72TIyMr2/i5aMfN9gOPZOtzkUAc8qeOCTG+upeG6ovulc6XKMeQgi+ouN0txbCz ysJrKAcoz+15r9bSaEo+Pj2LntxoqCSfdY0Luo= X-Sasl-enc: gx7VOiKEV+DbmFe9hPP8E+5Agv6G4t1S/JKpMei5qq8I 1438424296 Original-Received: from thinkpad-t440p (unknown [2.161.13.225]) by mail.messagingengine.com (Postfix) with ESMTPA id 7254DC00012; Sat, 1 Aug 2015 06:18:16 -0400 (EDT) Mail-Followup-To: Eli Zaretskii , koppel@ece.lsu.edu, emacs-devel@gnu.org In-Reply-To: <83si83uy09.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Aug 2015 13:03:02 +0300") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188261 Archived-At: Eli Zaretskii writes: >> I can reproduce with emacs -Q and eb0f65b4. Here's a recipe: > > Thanks. I am still not sure what are we talking about. I can almost > say "not reproducible here", but see below. > > First, please try the latest master. Ok, I'm on master now (e663cfec5a2dbf69d0f4360e1f8e05f81a037333). >> 4. When I click on some word in lines 1-3, point is set on that word. >> In later lines, point ends up on the previous line. For ex., I click >> on the "examples" in "Non-ASCII examples:" and point is set to the >> beginning of the empty line before. Clicking on "South" in "South >> Asia:" puts point on "Middle" in "Middle/Near East:". > > Does point get set always on the _previous_ line? Because the > original report said something different, AFAIU: > >> try clicking on a line towards the bottom of the window. The >> cursor moves to a point well above the mouse pointer. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > To me, "well above" doesn't sound like the previous line, but several > lines above that. That I certainly cannot see. With `line-spacing' of 50, it was always the previous line when clicking in the two last thirds of the window (and the correct line in the 1st third). With `line-spacing' of 10, it were more lines too early depending on how near the end of the window the click position was. > Could it be that the problem depends on how many empty lines are > between the window start and the location of the click? If so, this > might be one consequence of bug#21165, which I fixed a few minutes > ago. Yes, that seems to be it. At least now with the current master HEAD, point always jumps to exact the click position regardless of the `line-spacing' value. Thanks, Tassilo