minad / org-modern

:unicorn: Modern Org Style
GNU General Public License v3.0
1.55k stars 48 forks source link

next-line doesn't work when point between two asterisks #123

Closed abcdw closed 1 year ago

abcdw commented 1 year ago

Initial setup: (setq org-modern-hide-stars nil), (org-modern-mode).

| - is a position of point.

*|* Heading
body

When I press C-n (next-line), it doesn't move the cursor and says next-line: End of buffer, even if it clearly not the end of the buffer.

It happens only with the second level heading.

minad commented 1 year ago

I cannot reproduce this issue. Maybe it is caused by some other setting in your configuration? See also #106 and #119.

abcdw commented 1 year ago

There is a chance that it caused by something else, but it's very small, I orginally did everything with:

emacs -Q (require 'org-modern)

and tried it one more time today. The org-modern version is 0.9.

minad commented 1 year ago

I don't see this. I use an Emacs from just a few days ago, also with emacs -Q of course.

abcdw commented 1 year ago
guix shell --pure -E '.*GTK.*|.*XDG.*|.*DISPLAY.*|SHELL' emacs-next-pgtk emacs-org-modern -- emacs -Q

emacs version is 30.0.50-0.ac7ec87.

(progn
  (require 'org-modern)
  (setq org-modern-hide-stars nil)
  (org-mode)
  (org-modern-mode))

** Heading
content

Ok, I launched it in as clean environment as possible, still reproduces. I can try to build a latest emacs, but later.

minad commented 1 year ago

Maybe it is a pgtk problem? Anyway there is probably nothing we could do. Org-modern does the right thing now with 715a8280dcddfa00cf422231c1d4e5aa1ee87753. If the stars are not hidden Org-modern only adds a display property to the last star, nothing else. Emacs should handle that correctly.

abcdw commented 1 year ago

Not a pgtk problem, tried on emacs-next-tree-sitter, but on emacs (which is emacs 28) it works correctly. So, will try to check it later on newer emacs version.

minad commented 1 year ago

Interesting. I hope there is no regression in the newer display code. If you find something, the Emacs maintainers are probably interested in a report, as long as you can create a self-contained recipe without Org.