From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#57433: Emacs no longer moves point into visible port of the buffer Date: Sat, 27 Aug 2022 18:37:22 +0200 Message-ID: References: <83y1vayqrm.fsf@gnu.org> <83v8qeypm5.fsf@gnu.org> <83sfliyonr.fsf@gnu.org> <83pmgmymdw.fsf@gnu.org> <83h71xznnn.fsf@gnu.org> <83a67pzm3r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cbc08b05e73ba5e1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31766"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , 57433@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 27 18:38:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRyp5-00089Q-JG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 18:38:15 +0200 Original-Received: from localhost ([::1]:54668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRyp4-0005GA-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 12:38:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRyos-0005Fw-TK for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 12:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRyos-0006t8-Kl for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 12:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRyos-0004lD-HC for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 12:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2022 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57433 X-GNU-PR-Package: emacs Original-Received: via spool by 57433-submit@debbugs.gnu.org id=B57433.166161826418274 (code B ref 57433); Sat, 27 Aug 2022 16:38:02 +0000 Original-Received: (at 57433) by debbugs.gnu.org; 27 Aug 2022 16:37:44 +0000 Original-Received: from localhost ([127.0.0.1]:56934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRyoZ-0004kg-M4 for submit@debbugs.gnu.org; Sat, 27 Aug 2022 12:37:44 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:33690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRyoW-0004kR-1X for 57433@debbugs.gnu.org; Sat, 27 Aug 2022 12:37:42 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id cu2so8313959ejb.0 for <57433@debbugs.gnu.org>; Sat, 27 Aug 2022 09:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=/blMuOTKfVYCm/+bBZGFxXOOeX6azbWM29P8dxm5aU4=; b=lMRGwU+SHH8WFVtj7yP7ofQXpYhOF8w0IJQ3QU6vF02wBvW2dM9sy3YaXAyMXvu9Y3 zk30AbYo9iO6HV2QCrSyQj1CIsQ+28cuLd4+ZubrltSv6I1w0Jo5ygyZJMWyYUQVRp2m E66nxfkZkwyTMOa33NNC7NpkyhW+mV8kxB0oBishJKneEnkr3/9WReUF58BgSIv+ORS2 SqdsykIYKssYIKBbCrh2xUZ50mr7Cake99ctjgxcJmB3IKb7xBcD1EAXjk8GvWk/Cd6U 31SVSniE9vq1SfsGKRgiOjDBoIm2HEhNXRC1j7Y8Sm09/FauUqLhJycXuNK8TypQJVQT ETjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=/blMuOTKfVYCm/+bBZGFxXOOeX6azbWM29P8dxm5aU4=; b=k9JthK3kzT4BN1RzZ8PkQNX2OgL2lb6owvSVaYfgB2XGWkXC2McTNFVH/AQu29oW78 9oZ71FRBhvxt1jAeuhF+Lj5Wp63vtQHQZ5pGQtR2t/tk75BW8i5bn6S9Cao1jof6YES0 bH7ARA4/euvgb+AsDY7em0AYGztng3cSH3916eay+5skUaVoTZvN4+gPaWYI2Te3o4Ar 1niT1XadIQWAG31ZHKDbfWvJYNdGHuwvu+nQTWjDTLoMzqenQmHjxQk3lRFkb9ZERk6j avNCXW2OwNfra2nK1Ce7aPmGhRmpP2L5sjfho96ckUAeP3/bt6LnjA6wELaqvMy8ah8B yw0g== X-Gm-Message-State: ACgBeo27nWC/5th29a94POlEhNLlRj9UgV8wsbVXOlhl0jpAsUpZywdD N91N4KKdmFWbg9Ahzw3s4yHUZAh+5C70FDwlIQ== X-Google-Smtp-Source: AA6agR4mxH3Db1l7IM7WSNHsgoNY/92ZNgtfVd2FbmRgd1mEmB0WgerZh4kxU9pk0PQHhH0vHEi3BB2j3BPfAoX6bD0= X-Received: by 2002:a17:907:b10:b0:73d:bedd:3121 with SMTP id h16-20020a1709070b1000b0073dbedd3121mr8200408ejl.530.1661618254231; Sat, 27 Aug 2022 09:37:34 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240956 Archived-At: --000000000000cbc08b05e73ba5e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Also, the value of `magit-section' is different all three times, if that's important. Paul On Sat, 27 Aug 2022 at 18:32, Paul Pogonyshev wrote: > > Now, I put the point at the beginning of the third line ([^] is the > point): > > Text content at position 32867: > > There is an overlay here: > From 32867 to 32901 > evaporate t > font-lock-face magit-diff-file-heading-highlight > > There are text properties here: > font-lock-face magit-diff-file-heading > keymap [Show] > magit-section [Show] > > > I press C-b, expecting that the point is moved to the end of the > > previous line that I see. But it is not moved there > > Text content at position 29881: > > There is an overlay here: > From 29881 to 32867 > evaporate t > invisible t > > There are text properties here: > font-lock-face magit-diff-hunk-heading > keymap [Show] > magit-section [Show] > > > If I press C-b again, only now point is moved > > Text content at position 29880: > > There is an overlay here: > From 29858 to 29881 > evaporate t > font-lock-face magit-diff-file-heading-highlight > > There are text properties here: > keymap [Show] > magit-section [Show] > > Paul > > On Sat, 27 Aug 2022 at 18:28, Eli Zaretskii wrote: > >> > From: Paul Pogonyshev >> > Date: Sat, 27 Aug 2022 18:12:49 +0200 >> > Cc: Gerd M=C3=B6llmann , >> > 57433-done@debbugs.gnu.org >> > >> > Actually, disregard that. It appears to be a Magit bug. If I switch th= e >> buffer >> > to any other mode, everything behaves as expected. >> >> Right. I suspect that Magit puts something else there, not just the >> invisible property. What does describe-text-properties say at that >> point? >> > --000000000000cbc08b05e73ba5e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also, the value of `magit-section' is different all th= ree times, if that's important.

Paul

=
On Sat, 27= Aug 2022 at 18:32, Paul Pogonyshev <pogonyshev@gmail.com> wrote:
> Now, I put the point at the = beginning of the third line ([^] is the point):

Text= content at position 32867:

There is an overlay here:
=C2=A0From = 32867 to 32901
=C2=A0 evaporate =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0t
=C2=A0 font-lock-face =C2=A0 =C2=A0 =C2=A0 magit-diff-file-heading-= highlight

There are text properties here:
=C2=A0 font-lock-face = =C2=A0 =C2=A0 =C2=A0 magit-diff-file-heading
=C2=A0 keymap =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [Show]
=C2=A0 magit-section =C2=A0 = =C2=A0 =C2=A0 =C2=A0[Show]

> I press C-b, expecting that the= point is moved to the end of the
> previous line that I see. = But it is not moved there

Text content at po= sition 29881:

There is an overlay here:
=C2=A0From 29881 to 32867=
=C2=A0 evaporate =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0t
=C2=A0 i= nvisible =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0t

There are text p= roperties here:
=C2=A0 font-lock-face =C2=A0 =C2=A0 =C2=A0 magit-diff-hu= nk-heading
=C2=A0 keymap =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 [Show]
=C2=A0 magit-section =C2=A0 =C2=A0 =C2=A0 =C2=A0[Show]

> If I press C-b again, only now point is moved

Text content at position 29880:

There is= an overlay here:
=C2=A0From 29858 to 29881
=C2=A0 evaporate =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0t
=C2=A0 font-lock-face =C2=A0 =C2=A0 = =C2=A0 magit-diff-file-heading-highlight

There are text properties h= ere:
=C2=A0 keymap =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [Sho= w]
=C2=A0 magit-section =C2=A0 =C2=A0 =C2=A0 =C2=A0[Show]
=
Paul

On Sat, 27 Aug 2022 at 18:28, Eli Zaretskii <eliz@gnu.org> wrote:=
> From: Paul= Pogonyshev <p= ogonyshev@gmail.com>
> Date: Sat, 27 Aug 2022 18:12:49 +0200
> Cc: Gerd M=C3=B6llmann <gerd.moellmann@gmail.com>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A057433-done@debbugs.gnu.org
>
> Actually, disregard that. It appears to be a Magit bug. If I switch th= e buffer
> to any other mode, everything behaves as expected.

Right.=C2=A0 I suspect that Magit puts something else there, not just the invisible property.=C2=A0 What does describe-text-properties say at that point?
--000000000000cbc08b05e73ba5e1--