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#19200: Point adjustemnt moves *into* invisible text Date: Tue, 22 Mar 2016 22:13:04 -0400 Message-ID: References: <87mvpskb84.fsf@web.de> <87io0gbmpl.fsf@web.de> <87d1qnevco.fsf@web.de> <83h9fz65ze.fsf@gnu.org> <83r3f24gbk.fsf@gnu.org> <83egb24a5y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458699264 21476 80.91.229.3 (23 Mar 2016 02:14:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 02:14:24 +0000 (UTC) Cc: michael_heerdegen@web.de, jonas@bernoul.li, 19200@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 03:14:13 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 1aiYJH-0004T9-JZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Mar 2016 03:14:11 +0100 Original-Received: from localhost ([::1]:40513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiYJG-0005ZQ-Pu for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Mar 2016 22:14:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiYJC-0005ZK-Tl for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 22:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiYJ8-0004tF-Pm for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 22:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiYJ8-0004tA-LY for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 22:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aiYJ8-0006SS-Hm for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 22:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Mar 2016 02:14:02 +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.145869919124760 (code B ref 19200); Wed, 23 Mar 2016 02:14:02 +0000 Original-Received: (at 19200) by debbugs.gnu.org; 23 Mar 2016 02:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:60627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiYII-0006RG-Mt for submit@debbugs.gnu.org; Tue, 22 Mar 2016 22:13:10 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:52802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiYII-0006R5-0A for 19200@debbugs.gnu.org; Tue, 22 Mar 2016 22:13:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A9FgA731xV/5a2xEVcgxCEAoVVwwsEAgKBPD0QAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDSSIP88jAQEBAQYBAQEBHos6hQUHhC0BBLM/gUUjhBQigngBAQE X-IPAS-Result: A0A9FgA731xV/5a2xEVcgxCEAoVVwwsEAgKBPD0QAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDSSIP88jAQEBAQYBAQEBHos6hQUHhC0BBLM/gUUjhBQigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="197855461" Original-Received: from 69-196-182-150.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.182.150]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Mar 2016 22:13:05 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 20E74AE1F4; Tue, 22 Mar 2016 22:13:04 -0400 (EDT) In-Reply-To: <83egb24a5y.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Mar 2016 20:52:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:115378 Archived-At: >> - point adjustment doesn't bring us to position 3 after C-n > Why is that a problem? Position 3 is invisible, so we shouldn't > expect to end up with point there. No, you have it backwards: position 5 is invisible and position 3 is not. The "evidence" for that is that if you go to position 3 and insert a char, that char will be visible, whereas if you go to position 5 and insert a char, that char will be invisible. >> - M-: (point) has the side-effect of bringing us to position 3 >> My guess here is that after the M-: command, at the end of >> command_loop_1, last_point_position refers to a position in another >> buffer (i.e. in the minibuffer), so it thinks there was a movement and >> hence re-runs adjust_point_for_property, which this time gets it right. > Maybe. If this is the bug to solve, I could look into it. No, this bug is secondary. The main bug is that we end up at position 5 after C-n. Stefan