From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6BrZMrYU2WHsrAAAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 05:36:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oFt6L7YU2WF9xgAAauVa8A (envelope-from ) for ; Sat, 08 Jan 2022 05:36:06 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 40D0330F2D for ; Sat, 8 Jan 2022 05:36:06 +0100 (CET) Received: from localhost ([::1]:37308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n63ST-0004Sg-C3 for larch@yhetil.org; Fri, 07 Jan 2022 23:36:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4oHt-00055Q-OS for emacs-orgmode@gnu.org; Tue, 04 Jan 2022 13:12:00 -0500 Received: from [2607:f8b0:4864:20::a30] (port=46603 helo=mail-vk1-xa30.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4oHr-0007oM-TY for emacs-orgmode@gnu.org; Tue, 04 Jan 2022 13:11:57 -0500 Received: by mail-vk1-xa30.google.com with SMTP id u198so21283611vkb.13 for ; Tue, 04 Jan 2022 10:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=v7XB3ixN7285BhJF5r6aIYrXMf4bAnwZKx2zPJXYFX8=; b=J2ZulgzfS3ko7qvBkkFX8DI/7d6Qcp8xqxTWGlb7i/haNgtfjZmE1NCfFnD6yPLOB2 AuFkj22amT402kBmZi43IyjE8mXkrBtqFQBFPGzKG1waVNYha1v1jxN5GSK6+MxBLmUo 3lAzHVWsG2KdZj3FKOgq96fUtAD1raqBkFWnaox9NDZ5/x7g4iDF4h4T+SoCTP3Onojd RRqlKBPtWbu8zb04lFzzLwuEgmA1BMhge5y2C7FbMsgZj21Rgz6hEjkbpY6L+0+ftJU9 1T7NMQUbzwiTbhdMHfwE9TfcCaTxiqDig2ym5+/AGkYRpjumQf8Vl3xMZcKkdprVmgGz S0Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=v7XB3ixN7285BhJF5r6aIYrXMf4bAnwZKx2zPJXYFX8=; b=Usjts/Ya08hk15I5j0nBJ9rVMvRB+4tDPoNbbQOBN4gJo34MTcA/786rxKa0pKMlJ6 7/gyooMVO7ONidxZw/4Tn6j/WsVu8U5fpH0afuR9GPd8bmIo3kzRo7PAHxJqN6IXGr0N uBsbgPsiB52vUOrQtBGxOjlEl9FF81+9dGVERS5Lq3uGkSxXACQy3Wnj/dNke//X8PVc EV1TTxWZUkSsgagK699fUcCdxLqW/HxIUZILt8Vj6Qywe1pUafJ5Jf9DR/1tByL/FVR0 +5oN9aN5N4N5LzTK/u2tMB/U87d2SjERkrLm0HSTSsGsiH6JvkghJISGQ7OAuaEgZbO3 plbw== X-Gm-Message-State: AOAM531lGJBwNxUYJiNUERyacoy0lydWJGRiEF+ZfdsmtbncjJ1QUZmI 3nPwS8uFsI04GI1dS5Jvd6xeguh0Cx1Tib5qa8+Vb8M= X-Google-Smtp-Source: ABdhPJy5UGdVsiXHVZMaKzxJlrdGFYVGiDfSXUS5zM7ror2tXETTbJv/nJppI+VYGEmSYF42LF63fZasPqbCwTUprTg= X-Received: by 2002:a05:6122:d9b:: with SMTP id bc27mr8195876vkb.14.1641319914378; Tue, 04 Jan 2022 10:11:54 -0800 (PST) MIME-Version: 1.0 From: Chris Findeisen Date: Tue, 4 Jan 2022 12:11:43 -0600 Message-ID: Subject: [BUG] Emacs tries to recenter / rescroll when it hits hidden org emphasis [9.4.6 (9.4.6-798-g738759.dirty-elpaplus @ .emacs.d/elpa/develop/org-plus-contrib-20210929/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000759a6805d4c592e9" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::a30 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::a30; envelope-from=cfindeisen7@gmail.com; helo=mail-vk1-xa30.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 07 Jan 2022 23:34:52 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641616566; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=v7XB3ixN7285BhJF5r6aIYrXMf4bAnwZKx2zPJXYFX8=; b=YxLBHdgpSuRlHFFK170sMO2BKyZYrwmZWtZbV5/NR1bTQWXOi4gB6LGhFt7UIvxz4oymrU 4ryUQ3J1qe7yt0lGBiybegL7r89F7F/jFdad51smH/GcN/H/PMwluHEe+776eShwbE+HA+ llOxotJoC185QKxA5netrsgPUMGOZxDKzKyguYfXt84xzRXCYx1u4rXxFnbbbDzVhNzieG VQ4OLKabgj7Kz0OITIbVR5Q+twgtwxKennL/GdzurIcolYvQj5lijUl4xlW7ZYIIM79Kj/ MT52SJeUhn5pB8mFYeM8cwXllbT7QrJeqxrwzIzGheI5vHq5MTN705AWGEbAag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641616566; a=rsa-sha256; cv=none; b=IXhyh8GE3yWTE22WUbtA3CDVnrV1z7vgfDnxKqTppiL1AE5qlPsY1EWrmWEOQgospkTwkh y8ITmplpDKQ99KhEAdKf85G/6s4Y/gIcd5j4WPnvtWZ/IR/eL19paEd+MB98p3C+R32Hwc 7TR0V4f9haEFrfQ34L5AQwgQr9N9fRinqX1O/PPVdlFjw619EWU0Aqe9S7g3viideAkbc4 BxOhQJ86dlhG1aW+tyPBxxusSVa7ylfI2OKQdktcL0Uf0sFi+PDBzQppxW4vE5O0eBlWan Zj2hOvg+qIxhcGB3Qi7jn4AoP27rczyCwcqjsT6ANOGlTjVXgacY4iMJXqutmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J2Zulgzf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.30 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J2Zulgzf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 40D0330F2D X-Spam-Score: -3.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: lm3F0AHHTgTE --000000000000759a6805d4c592e9 Content-Type: text/plain; charset="UTF-8" Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ To reproduce this: 1. Load the repro emacs settings. 2. Scroll down in a buffer, such that top of buffer is not visible on screen. 3. Create an emphasized word at the beginning of the 2nd visual-line in a visually-wrapped line. 4. Move your point to the start of that emphasized word It's a little difficult to describe, so I'll give an example. Assume that the visual-line wrapping is happening at the place indicated by "$". ``` So, if this were one long line, then this is the first visual line,$ /whereas/ this is the second visual line in the paragraph, and you'd place$ point on the italicized "w" in the word "whereas". That triggers the bug. ``` What happens next is that emacs thinks the point is no longer on screen and tries to scroll to fix that. Under vanilla emacs, it will just recenter the point. This still is misbehaving but not terribly. However, with smooth-scrolling as mentioned above, the behavior is worse. The window scrolls up and point jumps to the top of the window. Reproed this with the following: emacs -Q with the following: ``` (setq org-hide-emphasis-markers t) (org-mode) (visual-line-mode 1) ;; Without this, emacs will still show bug by calling recenter, but the effect is particularly egregious with these settings (i.e. smooth scrolling) (setq scroll-conservatively 101 scroll-preserve-screen-position t scroll-margin 0) ``` Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2021-02-09, modified by Debian Package: Org mode version 9.4.6 (9.4.6-798-g738759.dirty-elpaplus @ .emacs.d/elpa/develop/org-plus-contrib-20210929/) --000000000000759a6805d4c592e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Remember to cover the basics, that is, what you expected t= o happen and
what in fact did happen.=C2=A0 You don't know how to ma= ke a good report?=C2=A0 See

=C2=A0 =C2=A0 =C2=A0https://orgmode.org/manual/Feedba= ck.html#Feedback

Your bug report will be posted to the Org maili= ng list.
---------------------------------------------------------------= ---------

To reproduce this:
1. Load the repro emacs settings.2. Scroll down in a buffer, such that top of buffer is not visible on scre= en.
3. Create an emphasized word at the beginning of the 2nd visual-line= in a visually-wrapped line.
4. Move your point to the start of that emp= hasized word

It's a little difficult to describe, so I'll gi= ve an example. Assume
that the visual-line wrapping is happening at the = place indicated by
"$".


```
So, if this were one= long line, then this is the first visual line,$ /whereas/ this is the seco= nd visual line in the paragraph, and you'd place$ point on the italiciz= ed "w" in the word "whereas". That triggers the bug.```

What happens next is that emacs thinks the point is no longer o= n screen
and tries to scroll to fix that. Under vanilla emacs, it will j= ust
recenter the point. This still is misbehaving but not terribly. Howe= ver, with
smooth-scrolling as mentioned above, the behavior is worse. Th= e window
scrolls up and point jumps to the top of the window.

Rep= roed this with the following: emacs -Q
with the following:
```
(se= tq org-hide-emphasis-markers t)

(org-mode)
(visual-line-mode 1)
;; Without this, emacs will still show bug by calling recenter, but t= he effect is particularly egregious with these settings (i.e. smooth scroll= ing)
(setq scroll-conservatively 101
=C2=A0 =C2=A0 =C2=A0 scroll-pres= erve-screen-position t
=C2=A0 =C2=A0 =C2=A0 scroll-margin 0)
```
<= br>Emacs =C2=A0: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version= 3.24.5, cairo version 1.16.0)
=C2=A0of 2021-02-09, modified by DebianPackage: Org mode version 9.4.6 (9.4.6-798-g738759.dirty-elpaplus @ .emac= s.d/elpa/develop/org-plus-contrib-20210929/)
--000000000000759a6805d4c592e9--