GNU bug report logs - #23079
25.0.92; Movement commands leave cursor in invisible line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; Keywords: notabug; dated Mon, 21 Mar 2016 20:20:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 23 Mar 2016 11:24:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 23 07:24:08 2016
Received: from localhost ([127.0.0.1]:60927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aigtU-0002VI-9X
	for submit <at> debbugs.gnu.org; Wed, 23 Mar 2016 07:24:08 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:16120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1aigtS-0002Ui-0q
 for 23079 <at> debbugs.gnu.org; Wed, 23 Mar 2016 07:24:06 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BCFgA731xV/5a2xEVcgxCEAoVVwD6CTQQCAoE8PRABAQEBAQEBgQpBBYNdAQEDAVYjBQsLNBIUGA0kiDcIzyMBAQEBAQUBAQEBHos6hCBlB4QtAQSzP4FFI4QUIoE0gUQBAQE
X-IPAS-Result: A0BCFgA731xV/5a2xEVcgxCEAoVVwD6CTQQCAoE8PRABAQEBAQEBgQpBBYNdAQEDAVYjBQsLNBIUGA0kiDcIzyMBAQEBAQUBAQEBHos6hCBlB4QtAQSzP4FFI4QUIoE0gUQBAQE
X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="197919667"
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;
 23 Mar 2016 07:24:00 -0400
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id 5E405AE242; Wed, 23 Mar 2016 07:23:59 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
Message-ID: <jwv7fgtv3oy.fsf-monnier+emacs@HIDDEN>
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
 <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN> <871t72cxhh.fsf@HIDDEN>
 <jwvbn66qyqk.fsf-monnier+Inbox@HIDDEN> <87zitqihlz.fsf@HIDDEN>
 <jwv60wevuze.fsf-monnier+emacs@HIDDEN> <83wpot3lpd.fsf@HIDDEN>
Date: Wed, 23 Mar 2016 07:23:59 -0400
In-Reply-To: <83wpot3lpd.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 23 Mar
 2016 05:41:18 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 23079
Cc: michael_heerdegen@HIDDEN, 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>> Hmm... what kind of buffer modifications might happen in here?
> Deletion of overlays, perhaps?

AFAIK this is not a buffer modification (it doesn't affect MODIFF nor
buffer-modified-p).

> And there are all those hooks which might not be nil.

Yes, that's what my question wants to know ;-)


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 23 Mar 2016 03:41:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 22 23:41:52 2016
Received: from localhost ([127.0.0.1]:60640 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aiZg8-0008ND-Lr
	for submit <at> debbugs.gnu.org; Tue, 22 Mar 2016 23:41:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60163)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1aiZg7-0008N1-6b
 for 23079 <at> debbugs.gnu.org; Tue, 22 Mar 2016 23:41:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aiZg1-0005S2-4W
 for 23079 <at> debbugs.gnu.org; Tue, 22 Mar 2016 23:41:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41224)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aiZft-0005Nq-10; Tue, 22 Mar 2016 23:41:37 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1199
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aiZfs-0001sB-9x; Tue, 22 Mar 2016 23:41:36 -0400
Date: Wed, 23 Mar 2016 05:41:18 +0200
Message-Id: <83wpot3lpd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-reply-to: <jwv60wevuze.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 22 Mar 2016 21:59:38 -0400)
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
 <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN> <871t72cxhh.fsf@HIDDEN>
 <jwvbn66qyqk.fsf-monnier+Inbox@HIDDEN> <87zitqihlz.fsf@HIDDEN>
 <jwv60wevuze.fsf-monnier+emacs@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 23079
Cc: michael_heerdegen@HIDDEN, 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Stefan Monnier <monnier@HIDDEN>
> Date: Tue, 22 Mar 2016 21:59:38 -0400
> Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
> 
> >       (let ((inhibit-read-only t)
> >             (deactivate-mark nil)
> >             (selection (magit-region-sections)))
> >         (mapc #'delete-overlay magit-section-highlight-overlays)
> >         (setq magit-section-unhighlight-sections
> >               magit-section-highlighted-sections
> >               magit-section-highlighted-sections nil)
> >         (unless (eq section magit-root-section)
> >           (run-hook-with-args-until-success
> >            'magit-section-highlight-hook section selection))
> >         (--each magit-section-unhighlight-sections
> >           (run-hook-with-args-until-success
> >            'magit-section-unhighlight-hook it selection))
> >         (restore-buffer-modified-p nil)
> 
> Hmm... what kind of buffer modifications might happen in here?

Deletion of overlays, perhaps?  And there are all those hooks which
might not be nil.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 23 Mar 2016 01:59:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 22 21:59:47 2016
Received: from localhost ([127.0.0.1]:60617 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aiY5L-000685-3V
	for submit <at> debbugs.gnu.org; Tue, 22 Mar 2016 21:59:47 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:64889)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1aiY5J-00067s-5g
 for 23079 <at> debbugs.gnu.org; Tue, 22 Mar 2016 21:59:45 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BCFgA731xV/5a2xEVcgxCEAoVVwD6CTQQCAoE8PRABAQEBAQEBgQpBBYNdAQEDAVYjBQsLNBIUGA0kiDcIzyMBAQEBAQUBAQEBHos6hQUHhC0BBJ8XhmmNP4FFI4QUIoJ4AQEB
X-IPAS-Result: A0BCFgA731xV/5a2xEVcgxCEAoVVwD6CTQQCAoE8PRABAQEBAQEBgQpBBYNdAQEDAVYjBQsLNBIUGA0kiDcIzyMBAQEBAQUBAQEBHos6hQUHhC0BBJ8XhmmNP4FFI4QUIoJ4AQEB
X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="197853533"
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 21:59:39 -0400
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id 062CAAE1F4; Tue, 22 Mar 2016 21:59:39 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
Message-ID: <jwv60wevuze.fsf-monnier+emacs@HIDDEN>
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
 <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN> <871t72cxhh.fsf@HIDDEN>
 <jwvbn66qyqk.fsf-monnier+Inbox@HIDDEN> <87zitqihlz.fsf@HIDDEN>
Date: Tue, 22 Mar 2016 21:59:38 -0400
In-Reply-To: <87zitqihlz.fsf@HIDDEN> (Michael Heerdegen's message of "Tue, 22
 Mar 2016 17:48:24 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>       (let ((inhibit-read-only t)
>             (deactivate-mark nil)
>             (selection (magit-region-sections)))
>         (mapc #'delete-overlay magit-section-highlight-overlays)
>         (setq magit-section-unhighlight-sections
>               magit-section-highlighted-sections
>               magit-section-highlighted-sections nil)
>         (unless (eq section magit-root-section)
>           (run-hook-with-args-until-success
>            'magit-section-highlight-hook section selection))
>         (--each magit-section-unhighlight-sections
>           (run-hook-with-args-until-success
>            'magit-section-unhighlight-hook it selection))
>         (restore-buffer-modified-p nil)

Hmm... what kind of buffer modifications might happen in here?
I think this might be the problem: point-adjustment is only applied after
"movement commands" and is disabled if the buffer was modified during
the course of the command (including post-command-hook).
[ This is mostly due to the simplistic way we keep track of the
  "previous state", which we can't trust if the buffer was modified.  ]

> This function doesn't move point, but it somehow interferes with point
> adjustment in another way.

It's difficult to adjust point without risking adverse effects in corner
cases (typically problems like "repeated C-n gets stuck" or "forward-foo
moves backward"), so point-adjustment is conservative to try and make
sure it's only done when we're sure it's "safe".


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 22 Mar 2016 16:48:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 22 12:48:39 2016
Received: from localhost ([127.0.0.1]:60230 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aiPTz-0002k9-Ig
	for submit <at> debbugs.gnu.org; Tue, 22 Mar 2016 12:48:39 -0400
Received: from mout.web.de ([212.227.15.4]:53318)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1aiPTy-0002jy-8N
 for 23079 <at> debbugs.gnu.org; Tue, 22 Mar 2016 12:48:38 -0400
Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb004) with
 ESMTPSA (Nemesis) id 0MNx4F-1agTOi1UNP-007R2c;
 Tue, 22 Mar 2016 17:48:27 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
 <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN> <871t72cxhh.fsf@HIDDEN>
 <jwvbn66qyqk.fsf-monnier+Inbox@HIDDEN>
Date: Tue, 22 Mar 2016 17:48:24 +0100
In-Reply-To: <jwvbn66qyqk.fsf-monnier+Inbox@HIDDEN> (Stefan Monnier's message
 of "Tue, 22 Mar 2016 12:16:12 -0400")
Message-ID: <87zitqihlz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:JYQKjhQFUmSh5K0xLSzddfL1a+Jx7t0tJnWS+IU466gjLjsA+N7
 Bwr2NQzK3vW4lrOLUIu9qwTnYrU8+gxKL5dGWWoPpkpP6oCetrDcsdtSzBQXg/MT7+rTV3o
 Bo2EbN9IoniZRmpxKy4uuc5HIZjoDoNUb5kOh1xIgNIKOyYfurQu2AQQO35zYckOv5tcdQ0
 rdAk1AQyd+xLEQpTN1XRQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:UEVPje12GcU=:J1cy76blfb6rgdBXtnUSiG
 pJT3Yx+57UrX16MBT9SXyx3Y7ub/ZcphWrGM20CxDRLCJIEktCon7lkMR6KNec2ymhSQB4q9K
 eZnc3NGixtVAMKs6m02Y4hMUbi1eyKnvZqFNcBFfvCiakk9CtoQ8SP9XCxv6xtYVX2khNm0Ee
 RQs/wT0eXF9xcF2U3c0OsRhA/SEIQ03yk9VtVCES6X3BXeeiDFUpLdTd5Ltg+h2IPptnw5T31
 TGVwWDJ4rtcKVe8GwqBu8dJTAqd3YrJLwfNFUThvrxNxFqpIHrbkduvWQkY2bZ23PUIngY5g3
 F43mZ9UEMldcUnMRKc0/n5Cydzi6/qAzTqFiCnxJ3eGLRy/5G7qYK2HvrqW5Uh4JGzS593iSU
 Y94VCy9QuG927g1faPhVLTuh8CDh0I9kQ6QXWGcOXfjbed5i0jf2cCxYi7RTsAgdweYTRDfCN
 UXmVNLCNnoJIiqewBf7dcpyx/Cvqs8kAB0oN7e7qe7I//Q+U17sZYh9aTm52srXOcyF0rr3AT
 0Utz5zSPYpP9SOdXucY8lo27hhPf4vDA/fOs0fJF3CMrrKpZVRYG1nvGXEDVxec2s30UJ6/Wk
 l46DfIFSaDfZ2/D8WjSyX4/cPMlwrM6q4rFMYSPVq6aDw0Plmjb2l/Kxdwi1bQmOj4I6HzD/u
 G7/19aTcE9o71XQZoHLevxzR8vWq/gCQ2YatU//O6sR3ufRBzPtXUM7VTL5MMpyc4kv3oYI0N
 LJjBC+o6GJR0Hwek086FNgI4ni9gEYdlv9rZfIa1l73hzCLUv9Th4H9BPm2LDx6mtHiF6AFjb
 W8ZO/cQ
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Stefan Monnier <monnier@HIDDEN> writes:

> The default "stickiness" of overlay boundaries is the inverse of that if
> text-properties, for some reason.  So, this test above suffers from the
> bug#19200, but other than that, it seems to work correctly for me
> (i.e. it prefers putting point in front of "333" rather than in front
> of "555").
>
> And if I remove the "nil t t" args to make-overlay, then
> point-adjustment correctly tries to put point in front of "555" instead
> of putting it in front of "333".

Ok, we are coming closer...

They use the default stickiness for their overlays.  Nonetheless, the
behavior is the same as with "nil t t".

_But_ their local binding of post-command-hook looks like (t
magit-section-update-highlight).

When I set it to (t) only, the issue is fixed (but the highlighting
update doesn't work anymore, of course)!


magit-section-update-highlight is

#+begin_src emacs-lisp
(defun magit-section-update-highlight ()
  (let ((section (magit-current-section)))
    (unless (eq section magit-section-highlighted-section)
      (let ((inhibit-read-only t)
            (deactivate-mark nil)
            (selection (magit-region-sections)))
        (mapc #'delete-overlay magit-section-highlight-overlays)
        (setq magit-section-unhighlight-sections
              magit-section-highlighted-sections
              magit-section-highlighted-sections nil)
        (unless (eq section magit-root-section)
          (run-hook-with-args-until-success
           'magit-section-highlight-hook section selection))
        (--each magit-section-unhighlight-sections
          (run-hook-with-args-until-success
           'magit-section-unhighlight-hook it selection))
        (restore-buffer-modified-p nil)
        (unless (eq magit-section-highlighted-section section)
          (setq magit-section-highlighted-section
                (unless (magit-section-hidden section) section))))
      (setq deactivate-mark nil))))
#+end_src

This function doesn't move point, but it somehow interferes with point
adjustment in another way.


Michael




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 22 Mar 2016 16:16:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 22 12:16:20 2016
Received: from localhost ([127.0.0.1]:60204 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aiOyi-0000HP-Mq
	for submit <at> debbugs.gnu.org; Tue, 22 Mar 2016 12:16:20 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:52141)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1aiOyg-0000G7-OA
 for 23079 <at> debbugs.gnu.org; Tue, 22 Mar 2016 12:16:19 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0A5FgA731xV/5a2xEVcgxCEAoVVwD6CTQQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjEAs0EhQYDSSINwjPIwEBAQEBAQQBAQEBHos6hQUHhC0Fm2SDRpQVgUUjhBQigngBAQE
X-IPAS-Result: A0A5FgA731xV/5a2xEVcgxCEAoVVwD6CTQQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjEAs0EhQYDSSINwjPIwEBAQEBAQQBAQEBHos6hQUHhC0Fm2SDRpQVgUUjhBQigngBAQE
X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="197764325"
Received: from 69-196-182-150.dsl.teksavvy.com (HELO pastel.home)
 ([69.196.182.150])
 by ironport2-out.teksavvy.com with ESMTP; 22 Mar 2016 12:16:12 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id CFBF663F25; Tue, 22 Mar 2016 12:16:12 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
Message-ID: <jwvbn66qyqk.fsf-monnier+Inbox@HIDDEN>
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
 <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN> <871t72cxhh.fsf@HIDDEN>
Date: Tue, 22 Mar 2016 12:16:12 -0400
In-Reply-To: <871t72cxhh.fsf@HIDDEN> (Michael Heerdegen's message of "Tue, 22
 Mar 2016 17:02:02 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>> > 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.
>> For overlays, you need to use the insertion-type of the beg/end marker.
>> See the FRONT-ADVANCE and REAR-ADVANCE args of make-overlay.
> Hmm, that doesn't seem to work:

> (progn
>   (insert "111" "\n222\n")
>   (let ((beg (point)) end)
>     (insert "333\n444\n")
>     (setq end (point))
>     (insert "555\n666\n")
>     (overlay-put
>      (make-overlay beg end nil t t)
>      'invisible t)
>     (goto-char 1)
>     (hl-line-mode +1)))

The default "stickiness" of overlay boundaries is the inverse of that if
text-properties, for some reason.  So, this test above suffers from the
bug#19200, but other than that, it seems to work correctly for me
(i.e. it prefers putting point in front of "333" rather than in front
of "555").

And if I remove the "nil t t" args to make-overlay, then
point-adjustment correctly tries to put point in front of "555" instead
of putting it in front of "333".

At least, in my tests,


        Stefan


PS: Notice that the hl-line-highlighting is sometimes off, because it's
performed in post-command-hook, which is run *before* point-adjustment.
hl-line-mode should probably be changed to use pre-redisplay-function to
try and avoid this problem.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 22 Mar 2016 16:02:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 22 12:02:16 2016
Received: from localhost ([127.0.0.1]:60178 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aiOl5-0008G1-SH
	for submit <at> debbugs.gnu.org; Tue, 22 Mar 2016 12:02:16 -0400
Received: from mout.web.de ([212.227.15.14]:58345)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1aiOl3-0008Fj-OB
 for 23079 <at> debbugs.gnu.org; Tue, 22 Mar 2016 12:02:14 -0400
Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb002) with
 ESMTPSA (Nemesis) id 0MPY1p-1adk3G3cpt-004gIl;
 Tue, 22 Mar 2016 17:02:03 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
 <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN>
Date: Tue, 22 Mar 2016 17:02:02 +0100
In-Reply-To: <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN> (Stefan Monnier's message
 of "Mon, 21 Mar 2016 21:27:25 -0400")
Message-ID: <871t72cxhh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:TNwART+ogdLkH5PE+QjEXYiuW11iNTZgAD9lEupS2MfgrAfwX+Z
 5xCXhBRRBUwHDqCN5r8AgIsIIe9+P6wl7DwCTTRxRk52o/0+gN/cl2Sv7uC2gTjtAjrHlZK
 W7tf01b8LCdO/NEYPLTwBF/qTSTUKmyAPi7WM1ZDuyZQczhbqp8uJ/9Hie5G1XavphxjUO9
 tghdZmwa7dmlro5BqiogQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:xAg72/FUcoA=:olLhfVUTJUeKsBruNvBIQS
 Gnx6JvchzHjeGnmo2U2FF62gbUXlIAEzyX8JvzEA1fCyUU6hDN6FhpLsAu1gVZrCJb0VXZzu/
 XDFAXnWu9IvT5brDcAzBuDIYbEL44PYzrMmH6wnVBBimgcPw5NaqsFnC4JvhmEu/ZQi7vrtJe
 sdgcYvVTy58xI+NnxmBxVEHan6o1d13rHu3QKYCrGpLgaOrJwaIEZhcLx8TkVrhbu3yqs4C6m
 guElxtoGPbvKOXl6VGpwzov+FsGhDqG2B2xrKuCpMiCKDoWLrmjQFEfcZLi/V+Kc2pgG0BXfr
 GqzZU9inCgHZknyCgO1lkmjsNi7rAnBxUxOhDizi2qX3fy3MfNQKBFIe3ACgUlPMb5eJzmkRl
 BipgKAAAq/bPfXQCCcapXiIy+4lc1qWxQelK9rQLkVv8whrYKCoPeQCgm2Bk0nZQmosjJqmVs
 BzVsm3hWoO9n8qRhvUs2O4ZQcBPJqmG321V7QyfN9k047NA2AOhlKuCNmmnvCgF8sSL/lCAOe
 Ty1N+ZsiZnckhv4JNWxAAP+tB4ZGd9sLPlLBRGwy6bdrBt9RdIS8IihRLnZpanGCJipjC8/Fj
 uz0SofcrjlgpHt2M72uWt7NWocuW0r3sJISeAaU0MAMVehq9fEBJg8RG7WTJJ9g61m+Lcy8z+
 MstOPiMj9JkY8urGT8xcFQrwJKD3BXOIiQBgFOcvVLBw/3cQviqrown4PZJ9Gmr9QGRdkNQZg
 0/Q4vIZdmL0eAVYcdGhzkfXOZ1nAV8O9UFIdkN7u6NrVRJKaDtjl6HrVypaYvoFYS4CGE059t
 5Yn1X2/
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Stefan Monnier <monnier@HIDDEN> writes:

> > 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.
>
> For overlays, you need to use the insertion-type of the beg/end marker.
> See the FRONT-ADVANCE and REAR-ADVANCE args of make-overlay.

Hmm, that doesn't seem to work:

(progn
  (insert "111" "\n222\n")
  (let ((beg (point)) end)
    (insert "333\n444\n")
    (setq end (point))
    (insert "555\n666\n")
    (overlay-put
     (make-overlay beg end nil t t)
     'invisible t)
    (goto-char 1)
    (hl-line-mode +1)))


Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 22 Mar 2016 01:27:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 21 21:27:32 2016
Received: from localhost ([127.0.0.1]:57569 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aiB6a-0007CH-LZ
	for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 21:27:32 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:62317)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1aiB6Z-0007C5-C2
 for 23079 <at> debbugs.gnu.org; Mon, 21 Mar 2016 21:27:31 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0A6FgA731xV/7yMCkxcgxCEAoVVwD6CTQQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjBQsLNBIUGA0kiDcIzyMBAQEBAQUBAQEBHos6hQUHhC0BBLM/gUUjhBQigngBAQE
X-IPAS-Result: A0A6FgA731xV/7yMCkxcgxCEAoVVwD6CTQQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYjBQsLNBIUGA0kiDcIzyMBAQEBAQUBAQEBHos6hQUHhC0BBLM/gUUjhBQigngBAQE
X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="197592052"
Received: from 76-10-140-188.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net)
 ([76.10.140.188])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 21 Mar 2016 21:27:25 -0400
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id 231A7AE179; Mon, 21 Mar 2016 21:27:25 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
Message-ID: <jwvh9fzwbki.fsf-monnier+Inbox@HIDDEN>
References: <87oaa77fev.fsf@HIDDEN>
 <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> <8737rj79cp.fsf@HIDDEN>
Date: Mon, 21 Mar 2016 21:27:25 -0400
In-Reply-To: <8737rj79cp.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 21
 Mar 2016 23:29:58 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> 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.

For overlays, you need to use the insertion-type of the beg/end marker.
See the FRONT-ADVANCE and REAR-ADVANCE args of make-overlay.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 21 Mar 2016 22:54:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 21 18:54:41 2016
Received: from localhost ([127.0.0.1]:57501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ai8ie-0000Fu-Ou
	for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 18:54:40 -0400
Received: from mout.web.de ([212.227.17.11]:62372)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai8id-0000Fi-Af
 for 23079 <at> debbugs.gnu.org; Mon, 21 Mar 2016 18:54:39 -0400
Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb103) with
 ESMTPSA (Nemesis) id 0MBkHT-1abEQ60Hep-00AmWO;
 Mon, 21 Mar 2016 23:54:29 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
References: <87oaa77fev.fsf@HIDDEN> <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN>
Date: Mon, 21 Mar 2016 23:54:25 +0100
In-Reply-To: <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> (Stefan Monnier's
 message of "Mon, 21 Mar 2016 17:11:16 -0400")
Message-ID: <87wpov5tni.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:zF99tGPe9Fjr2F+c3GgTs8hW22Wo96/hWwxmzs2VIfz2BSA7NpA
 KCPP49S5OPpGZPhUwbEbRlhbBiZ6K6uVa/IlE7YbgK5HChz+KFAsISEg0rokrOlt9yLQ93e
 Huytqx8d62zNWDUwt6S36r3b08LRrjNsa9VQt1sjpjFlkH7utKAAFFKXiSyyk7E6VjLYA4R
 AB73fCUtL1NefAa8OgkyQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:nqlXtZhp7Z8=:fzhwKdOYBv/6azkPbZ5ysV
 ds1qlSkNv99sVTC3nQVSvyfh/eKaTLPYgtI+9xCdaTAdy+KMCWyrUYYk/WOcdTHgxYg2R/bRv
 r7eBbukYb6QzRuj41HnaqX7jpVcrACHo8Z/5U0jZMADca6dAMY04CwWOyDTRw1JzdEeWfaw8X
 j2mC7Ga21U3vrc/JpC+MIzPwMXh3KbI5r7pCzkmtYN6eHB62XZRC/T4gYEL1K17oMJpESP6XE
 cZJ/bEClIFa1qb9Pe37NTrjdGy70zhLkaWg+3rUzJOp7l3Vx7F1OTewz/2EjeA52XkWxVC+kY
 tXKyAtgJn8MlX0ofogl7BKVjH4nVr3uBoFV+Aj3mGNieiqOkB6ZerqQ8q4nqdk8MpCfvIBzXm
 GTbbtOroaYLa2IcDby7u5eZ4UE08jkOrY0RPqf+yhpxgM0LQtUpsqf4lzVAnpkFIJ1rEBD4VX
 yqxkgTF7w14zLffUk4ixvJ0IyUrX5cf/dhRokeU6GoGtVYZ4+HseeXen0tFnlP61fvz4CnjYi
 3YWY7sc16HEZs9EcuY8fC3+A9pAycbRyxoMc7rgpql8o7Np0Dt4sXNrkFLs4V2kP2YaOQHGrW
 6r/QPOi2HNJbWdvAps6ioOnIxpwcn3qnrFykeIdLDmMXd+4O/y3LsMpyN8uD/vni092Nx28kt
 HXoP14W5GbQ6/ykDC2RbrXD48RUaKiaffBCc8Yo/Fl1AJrG5d2ZZJbxIVlEtDEHar8q7mMSEa
 neU57MNINrmF4bBeMEPkg4Kr+QPw7F0OrKGTVYltdQidDkhPUTMtlkBhMijbVk7xc5FaSWDDK
 ZaHwgeO
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Stefan Monnier <monnier@HIDDEN> writes:

> That's normal: (get-pos-property <pos> '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.

BTW, we also discussed whether we could hide the newline "before the
first invisible lines", and don't hide the newline following the last
line to make invisible instead.  But we apparently can't do this because
(from "https://github.com/magit/magit/issues/2592"):

"e.g. the background color of headings of collapsed sections would not
be in affect all the way to the right edge of the window anymore"

and other drawbacks.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 21 Mar 2016 22:30:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 21 18:30:12 2016
Received: from localhost ([127.0.0.1]:57488 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ai8Ky-00082c-8T
	for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 18:30:12 -0400
Received: from mout.web.de ([212.227.15.4]:54909)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai8Kx-00082P-6I
 for 23079 <at> debbugs.gnu.org; Mon, 21 Mar 2016 18:30:11 -0400
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
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
References: <87oaa77fev.fsf@HIDDEN> <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN>
Date: Mon, 21 Mar 2016 23:29:58 +0100
In-Reply-To: <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN> (Stefan Monnier's
 message of "Mon, 21 Mar 2016 17:11:16 -0400")
Message-ID: <8737rj79cp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
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/b
 94smv5f
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Stefan Monnier <monnier@HIDDEN> writes:

> That's normal: (get-pos-property <pos> '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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.
Added tag(s) notabug. Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 21 Mar 2016 21:11:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 21 17:11:22 2016
Received: from localhost ([127.0.0.1]:57418 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ai76g-0002dF-6J
	for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 17:11:22 -0400
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43927)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>)
 id 1ai76e-0002d2-3O; Mon, 21 Mar 2016 17:11:20 -0400
Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242])
 by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u2LLBGwS007262;
 Mon, 21 Mar 2016 17:11:16 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 2009060587; Mon, 21 Mar 2016 17:11:16 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
Message-ID: <jwvbn67v8z9.fsf-monnier+bug#23079@HIDDEN>
References: <87oaa77fev.fsf@HIDDEN>
Date: Mon, 21 Mar 2016 17:11:16 -0400
In-Reply-To: <87oaa77fev.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 21
 Mar 2016 21:19:04 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV5617=0
X-NAI-Spam-Version: 2.3.0.9418 : core <5617> : inlines <4542> : streams
 <1606677> : uri <2171623>
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 23079
Cc: 23079 <at> debbugs.gnu.org, jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

tags 23079 notabug
thanks

> I try to give a recipe resembling a bug in Magit concerning hidden lines
> and cursor movement.  In some buffer (emacs -Q) do

>   (insert "111" "\n222\n"
>           (propertize "333\n444\n\n" 'invisible t)
>           "555\n666\n")

> and move around with C-n, C-p.  Then the cursor will appear over the
> first "5" but point is actually located inside the invisible area.

That's normal: (get-pos-property <pos> '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.

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".


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at 23079 <at> debbugs.gnu.org:


Received: (at 23079) by debbugs.gnu.org; 21 Mar 2016 20:26:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 21 16:26:20 2016
Received: from localhost ([127.0.0.1]:57364 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ai6P6-0001WX-2z
	for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 16:26:20 -0400
Received: from mout.web.de ([212.227.15.14]:62315)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6P4-0001W8-1M
 for 23079 <at> debbugs.gnu.org; Mon, 21 Mar 2016 16:26:18 -0400
Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb004) with
 ESMTPSA (Nemesis) id 0MJIMc-1akqUb2QuY-002mIO;
 Mon, 21 Mar 2016 21:26:11 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: 23079 <at> debbugs.gnu.org
Subject: Re: bug#23079: 25.0.92;
 Movement commands leave cursor in invisible line
References: <87oaa77fev.fsf@HIDDEN>
Date: Mon, 21 Mar 2016 21:26:10 +0100
In-Reply-To: <87oaa77fev.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 21
 Mar 2016 21:19:04 +0100")
Message-ID: <87fuvj7f31.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:49N7lbkHQKEA8nDkZIZ+No4M6BvVIOTxRZVeV/etKEKP3OazwbG
 CDCezNkvqaP5u+zS6FSxgv33ATSEcJclCiijdHiWU97y6jXnXFR4beYDzYXRVD+cKh1E6rY
 nPCkfparIPz867r8lQex/g2y5MyH/PcXiaDOUt4S8cc3ZWErWAAvFkxl9D8CGj1tJlkWmh1
 ar5JR+97OHvBgNjBm4c2Q==
X-UI-Out-Filterresults: notjunk:1;V01:K0:0lnOIW8qOoM=:LxJzGg58f/KjpIBuOYJGjw
 0MxI6UuSEJNwgqCrBBNWifYey/Nu+eySS0QqUFXsUGL90nJkA435sCzhIBDyt55I+aj403zWK
 wskGE9352QAL8UuutW9RlHZhTcaZPDVoLsWWr3rC/hqQh1s/nAxw7RszWhT0anRYoBFsx+91z
 DdLMVK2KsxGJJyM1u80Ak10xQlH6yDFEkM60S4vAVz66Rw8cnq6ezgO5eT0QIFVaxLgZvgjgW
 7W+8jcShyj3wraskbojK606oGp6IO0iA1lVbuDokaPegpGNOhCltPwew781bEbdaHXu26za4W
 G9Alr8YfeuRf2uB+jYXvB/zgVlhPuh16T+eZCduhpu8OLp6y6mpUIvF/UIY5aLh3UEWdCW4Ww
 s9o4VzdJjihA0WdXWTdXOWi7mtKVCQAemSJ9p8LBxIx8UfA6NIC0HYXPIj2MPaTnNrRQMUD9o
 qpqvUIQW/l1rBywFLVv5j4g931RE0cQ55LHuR+Ifamo/ub9FbFHwVNbHzhs/l0nWk6CZM3eEB
 axR/M5GMl7uJKrE0oBrt6U6cJQKWQW5Fs88/SEboyM0lXVZXsQVXcCSL/5L7wVytW8eRr8shL
 EOc21ARj4FJ45tUqA9OhK2EQKONbT/1ltYY1Ti2ztMgMYt/sZsobmtE3/THc6PjV5/pAJAKCA
 tkbhyljcxdGMPVDiZdfiaGlBdHJ74/J5N/ad8eW2EkdBjsBvqTgKRaxEiHyWc9+dmUuLzIyp8
 86BC8lqS10tGs74mmAgKQc8Vo7pygD9tRTXXWYxxnVUA6IXHyDW0BE2L82/Cxi05PL9XG7Ejo
 i5KY1bG
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23079
Cc: jonas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi,

I forgot to CC Jonas who cares about the bug in Magit.


Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Hello,
>
> I try to give a recipe resembling a bug in Magit concerning hidden lines
> and cursor movement.  In some buffer (emacs -Q) do
>
>
>   (insert "111" "\n222\n"
>           (propertize "333\n444\n\n" 'invisible t)
>           "555\n666\n")
>
> and move around with C-n, C-p.  Then the cursor will appear over the
> first "5" but point is actually located inside the invisible area.  This
> is the cause of our trouble.
>
> (setq line-move-visual t) helps, but setting (setq goal-column 0) makes
> it appear again.
>
> For reference, this is the original report in Magit (including
> screenshots):
>
>   https://github.com/magit/magit/issues/2592
>
>
> Thanks,
>
> Michael.
>
>
>
> In GNU Emacs 25.0.92.11 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
>  of 2016-03-21 built on drachen
> Repository revision: 76ef52267cf887e3e1aa6d25b3b16dd0601dd459
> Windowing system distributor 'The X.Org Foundation', version 11.0.11802000
> System Description:	Debian GNU/Linux testing (stretch)
>
> Configured features:
> XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
> LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Mar 2016 20:19:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 21 16:19:21 2016
Received: from localhost ([127.0.0.1]:57353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ai6IL-0001Ki-4L
	for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 16:19:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51006)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6IJ-0001KV-7P
 for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 16:19:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6ID-0003Ad-32
 for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 16:19:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37952)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6ID-0003AY-0P
 for submit <at> debbugs.gnu.org; Mon, 21 Mar 2016 16:19:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41968)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6IC-0002kM-30
 for bug-gnu-emacs@HIDDEN; Mon, 21 Mar 2016 16:19:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6I7-0003A1-VU
 for bug-gnu-emacs@HIDDEN; Mon, 21 Mar 2016 16:19:12 -0400
Received: from mout.web.de ([212.227.15.3]:58091)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1ai6I7-00039p-LD
 for bug-gnu-emacs@HIDDEN; Mon, 21 Mar 2016 16:19:07 -0400
Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb003) with
 ESMTPSA (Nemesis) id 0M09eO-1Zug452tfI-00uKiC for
 <bug-gnu-emacs@HIDDEN>; Mon, 21 Mar 2016 21:19:05 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.92; Movement commands leave cursor in invisible line
Date: Mon, 21 Mar 2016 21:19:04 +0100
Message-ID: <87oaa77fev.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:g/PCGXd7JSfd1mFCkTNEgT5B8/kp9HoWPvZCXXQ1mGJ3wcYaXFG
 Lxwqnk/Eroqloq90/4ddNv+Z+NSTfJ5wA0HQ7XGU/HtT4BXoqA7d2/Y7dRV7mTnzv2hko0+
 l80k5+uaOrqE9MqbqQx1nim6Q3aRjPwQ4ypaLtvaDFMg+KLPU1TLb7DbaeeyJtBVKERf1ri
 1wma6xOfCK6d2Yjaw+Y0Q==
X-UI-Out-Filterresults: notjunk:1;V01:K0:I6cZOOqD4nU=:IKsaVHpByq41EhIfXJYZ3b
 B4NvJImEjcZJMTFFoHOYY6ALF0kcSPpV/0b6LrIXmGf9glbXWrpdF+G+atMTPYnBgLhR61F1u
 ZBF32NWpWorvh+nu2OTwTzhm2rg+Nca+P0DF+yho9mUSNNKt4yEAgRlarAvxIqhzE1PTA9RWS
 jj4EN5n6cbMZaF6S0/WJmpWYJD4HDk+l6LY1AbjONAbhUBJtdxAyJD/GUWvI0m+TzQ07JqRnc
 rkEyTIjAIBkTtleXs15ByWEoi6oClp2Eq6ZpmX5z50KniMVjgh8nSPDjLe9r7VrR1ALCp5hpD
 GQONTvbGkeEkqq95W1hg4P+7tebQCMutmB4dTDXOigX2vnSbhEaZpufofA8cH5FbSV5F91OnH
 0AE2+IReIiNA2aSM7s6X+1P2npNfhJXlN0HOxUWtO3qS8TvbstIILElaPIiTcNAhmb5GMiPIw
 WsHQff3jpmQJf7r573GoCSvumnOg+nJzgiNF/oLRMV9aQmKxljJdYRf3wEQ4j+l95yMOV0J4v
 NRzfUByfgr+FyoFcOZbwnU8o6dOg9rN1YX0E3Uw+TPV/eX5UwqKuyea8g5W6q9E6jGgyLI0FL
 rIPc3bLeL9zRN/HMC41X7AbAeX8jm6rOLvZl6enKoDdciFi6p+xGydhFQxDkRoizaR+HDFijT
 SojXnF5JIOgIBKsJ5q1AfvNdoNPlhq+CrdNmKsKzrx91qM6hbcO1AE+zONjcjD/mMxHFDuMKW
 dNO6zlTlzllaU1IHyzdjjeW39NTn6mclyf0KvB6+UiKHAVQw3Zje0loEtd3DUF8UXBZtZpxnz
 +R71RTw
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)


Hello,

I try to give a recipe resembling a bug in Magit concerning hidden lines
and cursor movement.  In some buffer (emacs -Q) do


  (insert "111" "\n222\n"
          (propertize "333\n444\n\n" 'invisible t)
          "555\n666\n")

and move around with C-n, C-p.  Then the cursor will appear over the
first "5" but point is actually located inside the invisible area.  This
is the cause of our trouble.

(setq line-move-visual t) helps, but setting (setq goal-column 0) makes
it appear again.

For reference, this is the original report in Magit (including
screenshots):

  https://github.com/magit/magit/issues/2592


Thanks,

Michael.



In GNU Emacs 25.0.92.11 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-03-21 built on drachen
Repository revision: 76ef52267cf887e3e1aa6d25b3b16dd0601dd459
Windowing system distributor 'The X.Org Foundation', version 11.0.11802000
System Description:	Debian GNU/Linux testing (stretch)

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11





Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23079; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 23 Mar 2016 11:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.