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 09:40:44 +0200 Message-ID: <87egjnpibn.fsf@gnu.org> References: <836150vx9l.fsf@gnu.org> <831tfnwk56.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438414875 10678 80.91.229.3 (1 Aug 2015 07:41:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 07:41:15 +0000 (UTC) Cc: David Koppelman , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 01 09:41:05 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 1ZLRPk-0001d6-H2 for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 09:41:04 +0200 Original-Received: from localhost ([::1]:47025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLRPj-0007Wn-MV for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 03:41:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLRPY-0007Wi-I2 for emacs-devel@gnu.org; Sat, 01 Aug 2015 03:40:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLRPU-0007Ij-HG for emacs-devel@gnu.org; Sat, 01 Aug 2015 03:40:52 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:51536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLRPU-0007Ib-DW for emacs-devel@gnu.org; Sat, 01 Aug 2015 03:40:48 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3ADF220951 for ; Sat, 1 Aug 2015 03:40:48 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Sat, 01 Aug 2015 03:40:48 -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=uCEXw+RKVKXtKgyMbZ9ajERNNM8=; b=bOTr5 MM65E8OtlS6k7IRENsvpKAz3M8AWYK8hd6oteZSaGuKrmPy3BM821oOqXOZW08PB mSTftPp/la78vysQV2zAwKZsKSkKSVtEUktT9G5/8dU3FQSTkp2K6CJzfo7qRXX3 TnmMMNfqlYRsNvXKrUdDE4eMk4btolpmKa51gA= X-Sasl-enc: 8v9fAo5+t6X1I7u4A8VfT5l25IYcDM07Kkv/Sb7d+YbP 1438414847 Original-Received: from thinkpad-t440p (unknown [2.161.13.225]) by mail.messagingengine.com (Postfix) with ESMTPA id EF4A3C0001F; Sat, 1 Aug 2015 03:40:46 -0400 (EDT) Mail-Followup-To: Eli Zaretskii , David Koppelman , emacs-devel@gnu.org In-Reply-To: <831tfnwk56.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Aug 2015 10:19:33 +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:188258 Archived-At: Eli Zaretskii writes: >> > Does the problem go away if you follow the above setting with "M-x >> > redraw-display RET"? >> >> No. The problem is robust in the sense that it occurs as soon as the >> setting is applied (including when set in .emacs) and doesn't seem to >> go away. > > Then I'm afraid I cannot reproduce it. > > What I see is that once the expression is evaluated, the window is not > redisplayed, although it should have, with the larger line spacing. > Typing just "M-x" causes redisplay, and then mouse clicks work for me > as expected. > > Can you show a reproducible recipe for the problem, starting with > "emacs -Q", and including all the details, like what you have in the > visible portion of the buffer, where you click, and where does the > cursor move? I can reproduce with emacs -Q and eb0f65b4. Here's a recipe: 1. emacs -Q 2. C-h h to open the HELLO file 3. M-: (setq line-spacing 50) Here, that's immediately visible. (window-size nil t) => 96, (window-size) => 47 but actually with this spacing there are only 11 lines visible, i.e., I see the HELLO portion from line 1 to the second line of the South Asia entry. 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:". Doing the same with line-spacing set to 10, the problem becomes worse. Again, clicking on the first 3 lines works correctly, then on the next 2-3 lines jumps to the line before, then clicking on the next few lines makes point jump to 2 lines before the click position, etc. So it becomes worse for the lines displayed later in a window. Bye, Tassilo