From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#23079: 25.0.92; Movement commands leave cursor in invisible line Date: Mon, 21 Mar 2016 23:29:58 +0100 Message-ID: <8737rj79cp.fsf@web.de> References: <87oaa77fev.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458599489 17417 80.91.229.3 (21 Mar 2016 22:31:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 22:31:29 +0000 (UTC) Cc: 23079@debbugs.gnu.org, jonas@bernoul.li To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 23:31:17 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 1ai8Lt-0004cO-Jq for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 23:31:09 +0100 Original-Received: from localhost ([::1]:60814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai8Ls-0003LI-U0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 18:31:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai8Lp-0003K8-Hr for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 18:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai8Lm-0003QG-Cq for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 18:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai8Lm-0003QB-97 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 18:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ai8Lm-00083e-0B for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 18:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2016 22:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23079 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 23079-submit@debbugs.gnu.org id=B23079.145859941230918 (code B ref 23079); Mon, 21 Mar 2016 22:31:01 +0000 Original-Received: (at 23079) by debbugs.gnu.org; 21 Mar 2016 22:30:12 +0000 Original-Received: from localhost ([127.0.0.1]:57488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai8Ky-00082c-8T for submit@debbugs.gnu.org; Mon, 21 Mar 2016 18:30:12 -0400 Original-Received: from mout.web.de ([212.227.15.4]:54909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai8Kx-00082P-6I for 23079@debbugs.gnu.org; Mon, 21 Mar 2016 18:30:11 -0400 Original-Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MRiZt-1aK77o0VC5-00T0FM; Mon, 21 Mar 2016 23:30:01 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 21 Mar 2016 17:11:16 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-Provags-ID: V03:K0:uoVr3VJzDV0+goNG3EFpnCFnb5DVECin0m9CaswQtSIc/I978RE DpYaxk3TcXO5ED3IccoLiRQHfYiGQKzMUFaOvGF5YsnGV4mIvwWe+w7dzqTorgE36Ok3YY9 s4IMjYzPu6Bt1L7bVd6Yu5ILScR/ws4aSWY6+tRMAiUeeudpuC3nl4iEEt6c2iBlHkdgpYh hAJNgfS6lBsOu2s1PvdeA== X-UI-Out-Filterresults: notjunk:1;V01:K0:kC3n1dswt4M=:pYUeawId6yAJoZ47EuRMAh mec8jgG80JJ2JuVLDYfcIzh0e5YsZdWMI29xIH01l1CDX8wxLPHejppzAoETWfEUTlMbVsrpL cnM1UPuOBjwgViQYNInwiJqsSMCeYEGgiBjxZEDVUcXqoLJqhy3BItn2lY6k6cH3UJqFaNH7I ehf0hkISdqQ4S2waOidr2HY/4aciSldP/PAClE4xxDfzG6IFiz+52nMc1DByhfXNtoNNYSQEL JVVgR3J9zAv2+qd9/8aZqaAikCh0kn0UPm9AetJnpRE83MkMA46u9LfLM5Q5fmxcioN4S9pwI dupNmCoktNB2XjwzoqxTL500rPy8LxQ2m6YGZ0jqafryMhi/IXD26BWJQ/GC9Yci03GQ4BAxg k2UtEhr8a/xFMKGo/a9yaD519CO+qJocSED3q+7lff+60DefIt9k8CPB84pfgP2sbONwUnk9J tZKmox7mXR/KrBe67VxjohMOUZgHKxbyYhS1CEP8Nh/q23tO/fTSaxc4Z2IZuurEIrPYdDgl0 VW+y185Q/Atsn96QNxmwLB/dAyYGhQAIkA7UvkotbByoriOC/IXs0J8X0UtmVE9/MvgdOxz3o BNaPO6w/rflkYF2K+WpysEtY1F4XnVOfu9AYq5TysDN8Nzr12/Q1/b/ometMns0ZGGkuoPBz3 zmtTVxPcYFXg+JorZVsbP7OPzBtcCflpL5twH4ZTXGOHdtxYvqvEba4o7Ekk4GQyhYI4jnFsW phDtSZoOTt/SlXBb8PfpCcZegStRdkXJQ+xt1ziP1x79buynoCuga/oKYtM3o0yg53OPxYr/ 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:115283 Archived-At: Stefan Monnier writes: > That's normal: (get-pos-property 'invisible) returns nil in front > of "333" but t in front of "555", so point adjustment will try to move > point to right before "333" when we're in that invisible chunk. Hmm, that perfectly makes sense. > IOW the position "right before 555" is actually considered as being > "inside the invisible area" whereas the position "right before 333" is > considered as being outside of it. > > If you want point adjustment to move point to right before "555" > instead, you should change the stickiness of the `invisible' property so > as to change which boundary position is considered "inside" and which is > considered "outside". Seems that works only for the invisible text property. In Magit, they use overlays to make text invisible, and stickiness of text properties has not effect there. This is what I tried: (add-text-properties (point-min) (point-max) '(front-sticky t rear-nonsticky t)) That helps for the recipe I gave here, but unfortunately not in Magit. Michael.