* [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/)] @ 2022-01-04 18:11 Chris Findeisen 2022-10-26 8:03 ` Ihor Radchenko 0 siblings, 1 reply; 4+ messages in thread From: Chris Findeisen @ 2022-01-04 18:11 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1966 bytes --] 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/) [-- Attachment #2: Type: text/html, Size: 2250 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [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/)] 2022-01-04 18:11 [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/)] Chris Findeisen @ 2022-10-26 8:03 ` Ihor Radchenko 2022-10-28 4:09 ` Ihor Radchenko 0 siblings, 1 reply; 4+ messages in thread From: Ihor Radchenko @ 2022-10-26 8:03 UTC (permalink / raw) To: Chris Findeisen; +Cc: emacs-orgmode Chris Findeisen <cfindeisen7@gmail.com> writes: > 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 > "$". Sorry for the late reply. I can reproduce. However, it does not look like the issue is Org mode-related. I have forwarded this bug report to Emacs bug tracker. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58793 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [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/)] 2022-10-26 8:03 ` Ihor Radchenko @ 2022-10-28 4:09 ` Ihor Radchenko 2022-12-25 22:58 ` Chris Findeisen 0 siblings, 1 reply; 4+ messages in thread From: Ihor Radchenko @ 2022-10-28 4:09 UTC (permalink / raw) To: Chris Findeisen; +Cc: emacs-orgmode Ihor Radchenko <yantar92@posteo.net> writes: > I have forwarded this bug report to Emacs bug tracker. > See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58793 The bug is now fixed on Emacs master. This issue will be resolved in the next Emacs 29 release. (It has nothing to do with Org) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [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/)] 2022-10-28 4:09 ` Ihor Radchenko @ 2022-12-25 22:58 ` Chris Findeisen 0 siblings, 0 replies; 4+ messages in thread From: Chris Findeisen @ 2022-12-25 22:58 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 796 bytes --] Thanks a lot Ihor for looking at this. I followed the discussion in the linked mailing list. I write a lot in Emacs and this gets rid of a long standing annoyance. :) Cheers! On Thu, Oct 27, 2022 at 11:08 PM Ihor Radchenko <yantar92@posteo.net> wrote: > Ihor Radchenko <yantar92@posteo.net> writes: > > > I have forwarded this bug report to Emacs bug tracker. > > See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58793 > > The bug is now fixed on Emacs master. > This issue will be resolved in the next Emacs 29 release. > (It has nothing to do with Org) > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at <https://orgmode.org/>. > Support Org development at <https://liberapay.com/org-mode>, > or support my work at <https://liberapay.com/yantar92> > [-- Attachment #2: Type: text/html, Size: 1652 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-25 22:59 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-01-04 18:11 [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/)] Chris Findeisen 2022-10-26 8:03 ` Ihor Radchenko 2022-10-28 4:09 ` Ihor Radchenko 2022-12-25 22:58 ` Chris Findeisen
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.