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#19200: Point adjustemnt moves *into* invisible text Date: Mon, 21 Mar 2016 21:40:53 +0200 Message-ID: <83a8lr62m2.fsf@gnu.org> References: <87mvpskb84.fsf@web.de> <87io0gbmpl.fsf@web.de> <87d1qnevco.fsf@web.de> <83h9fz65ze.fsf@gnu.org> <87vb4f7hxs.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458589343 15046 80.91.229.3 (21 Mar 2016 19:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 19:42:23 +0000 (UTC) Cc: jonas@bernoul.li, 19200@debbugs.gnu.org, monnier@iro.umontreal.ca To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 20:42:11 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 1ai5iM-0007dp-V4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 20:42:11 +0100 Original-Received: from localhost ([::1]:59979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai5iM-0001ZJ-Fo for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 15:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai5iH-0001ZA-UZ for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 15:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai5iE-0003Od-3P for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 15:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai5iD-0003OZ-W1 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 15:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ai5iD-0007Fz-Qp for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 15:42: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: Mon, 21 Mar 2016 19:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19200 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19200-submit@debbugs.gnu.org id=B19200.145858928627852 (code B ref 19200); Mon, 21 Mar 2016 19:42:01 +0000 Original-Received: (at 19200) by debbugs.gnu.org; 21 Mar 2016 19:41:26 +0000 Original-Received: from localhost ([127.0.0.1]:57336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai5he-0007FA-J8 for submit@debbugs.gnu.org; Mon, 21 Mar 2016 15:41:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai5hd-0007Ev-79 for 19200@debbugs.gnu.org; Mon, 21 Mar 2016 15:41:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai5hU-0002uu-Qo for 19200@debbugs.gnu.org; Mon, 21 Mar 2016 15:41:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai5hU-0002uq-NR; Mon, 21 Mar 2016 15:41:16 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3111 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ai5hT-0002ch-S4; Mon, 21 Mar 2016 15:41:16 -0400 In-reply-to: <87vb4f7hxs.fsf@web.de> (message from Michael Heerdegen on Mon, 21 Mar 2016 20:24:31 +0100) 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:115268 Archived-At: > From: Michael Heerdegen > Cc: Stefan Monnier , jonas@bernoul.li, 19200@debbugs.gnu.org > Date: Mon, 21 Mar 2016 20:24:31 +0100 > > Eli Zaretskii writes: > > > Michael, does the patch below fix the Magit problem? (It does fix the > > simple test case presented by Stefan at the beginning of this bug > > report.) > > Unfortunately, no. > > Here is a test case which hopefully resembles the situation in Magit: > > (progn > (insert "111" "\n222\n" > (propertize "333\n444\n\n" 'invisible t) > "555\n666\n")) This is an entirely different problem. > Turn on line-number-mode and set goal-column -> 0, and move around > (Esp. up/down). You'll see the cursor drawn over the first "5", but > point is actually located inside the invisible text. Why do you need line-number-mode and goal-column? I can see the problem just by moving with C-f from the end of the "222" line: "C-x =" says point is on the first "3", but the cursor is shown on "5". Isn't this the problem you want fixed? > I wonder however why in the above recipe the M-: (point) trick does > _not_ "work". Because it's an entirely different problem. I think you should file a separate bug for it. Meanwhile, perhaps Stefan can see if my proposed change fixes whatever the real-life use case he first saw the problem in, not just the recipe he posted.