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: Thu, 31 Mar 2016 14:04:17 -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> <83vb4d2pkt.fsf@gnu.org> <83poul2ob9.fsf@gnu.org> <837fgiva66.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459447522 9718 80.91.229.3 (31 Mar 2016 18:05:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 18:05:22 +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 Thu Mar 31 20:05: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 1algxy-0001iV-S3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 20:05:11 +0200 Original-Received: from localhost ([::1]:33696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1algxy-0001oR-94 for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2016 14:05:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1algxt-0001lz-OA for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 14:05:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1algxq-0001vn-Hp for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 14:05:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1algxq-0001vj-EF for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 14:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1algxq-0006Xr-01 for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2016 14:05: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: Thu, 31 Mar 2016 18:05: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.145944746525112 (code B ref 19200); Thu, 31 Mar 2016 18:05:01 +0000 Original-Received: (at 19200) by debbugs.gnu.org; 31 Mar 2016 18:04:25 +0000 Original-Received: from localhost ([127.0.0.1]:46468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1algxF-0006Wy-0G for submit@debbugs.gnu.org; Thu, 31 Mar 2016 14:04:25 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1algxD-0006Wp-3x for 19200@debbugs.gnu.org; Thu, 31 Mar 2016 14:04:24 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id u2VI4sEu021008; Thu, 31 Mar 2016 14:04:55 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D2D2DAE15D; Thu, 31 Mar 2016 14:04:17 -0400 (EDT) In-Reply-To: <837fgiva66.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 31 Mar 2016 20:17:53 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5628=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5628> : inlines <4625> : streams <1611907> : uri <2176494> 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:115814 Archived-At: >> So someone needs to step through the code and figure out why this >> doesn't happen. > I guess you expected me to be that Someone... Actually, no, I expected Michael would be motivated to do it, since he's the one presumably affected. > get_char_property_and_overlay returns nil for position 3 - 1 = 2, and > the while loop is exited with beg = 3 and end = 5. Good so far. > Since point is 5, > we land here: OK, so indeed, the problem is in /* Move away from the inside area. */ if (beg < PT && end > PT) In our case, end==PT, but we do want to enter this `if's body to move PT to `beg'. Stefan