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: Tue, 22 Mar 2016 18:39:59 +0200 Message-ID: <83r3f24gbk.fsf@gnu.org> References: <87mvpskb84.fsf@web.de> <87io0gbmpl.fsf@web.de> <87d1qnevco.fsf@web.de> <83h9fz65ze.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458664930 9921 80.91.229.3 (22 Mar 2016 16:42:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2016 16:42:10 +0000 (UTC) Cc: michael_heerdegen@web.de, jonas@bernoul.li, 19200@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 22 17:42:00 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 1aiPNW-0001NO-P4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Mar 2016 17:41:58 +0100 Original-Received: from localhost ([::1]:38392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiPNW-0003fE-8V for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Mar 2016 12:41:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiPMi-0002Wq-43 for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 12:41:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiPMc-0007L5-7k for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 12:41:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiPMc-0007Kv-3p for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 12:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aiPMb-0002Z2-Vc for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 12:41: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: Tue, 22 Mar 2016 16:41: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.14586648509832 (code B ref 19200); Tue, 22 Mar 2016 16:41:01 +0000 Original-Received: (at 19200) by debbugs.gnu.org; 22 Mar 2016 16:40:50 +0000 Original-Received: from localhost ([127.0.0.1]:60222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiPMQ-0002YW-GX for submit@debbugs.gnu.org; Tue, 22 Mar 2016 12:40:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiPMN-0002YJ-Ul for 19200@debbugs.gnu.org; Tue, 22 Mar 2016 12:40:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiPMD-0007FM-50 for 19200@debbugs.gnu.org; Tue, 22 Mar 2016 12:40:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiPLx-0007AS-Vt; Tue, 22 Mar 2016 12:40:22 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4175 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aiPLu-0007rt-J5; Tue, 22 Mar 2016 12:40:21 -0400 In-reply-to: (message from Stefan Monnier on Mon, 21 Mar 2016 16:43:21 -0400) 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:115334 Archived-At: > From: Stefan Monnier > Cc: 19200@debbugs.gnu.org, michael_heerdegen@web.de, jonas@bernoul.li > Date: Mon, 21 Mar 2016 16:43:21 -0400 > > > Can someone tell me why you think point adjustment has anything to do > > with the original report for this bug? Because I fail to see any > > connection; maybe I'm missing something. > > > What I see is that vertical-motion, called by next-line's subroutines, > > ends up at position 5, because when it tries to get to column zero, it > > skips the invisible text between positions 3 and 5. It stops at 5 > > because the function called to move to the goal column can only move > > within a single display line. IOW, this is a simple artifact of the > > implementation of vertical-motion. > > No, it's OK for vertical-motion to move to position 5. OK, then I won't install that change. > But adjust_point_for_property should move it back to position > 3 (because that still ends up being a forward motion, when compared to > the original point position, and it is in a "less-invisible" spot). Your original report says: 3. M-: (point) RET This should say 3 (where get-pos-property says it's not invisible) but returns 5 (where get-pos-property says it is invisible)! But I'm sure you know very well that point adjustment code doesn't use get-pos-property, it uses get-char-property-and-overlay, and the latter says position 5 is visible. There was an attempt to use get-pos-property in that code, but it backfired and was disabled. So what exactly is this bug about?