Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-mode compatibility #35

Open
mooseyboots opened this issue Mar 15, 2022 · 5 comments
Open

org-mode compatibility #35

mooseyboots opened this issue Mar 15, 2022 · 5 comments

Comments

@mooseyboots
Copy link

i know it's probably really meant for prog-modes, but i just got started on a text project converted from pdf, and all page breaks are rendered as ^L.

when i insert an org heading, any horizontal lines following it become, i think, infinitely long, or very long, and if you try to move point past one, point goes way back up the buffer.

should this mode work in org (and so it is maybe something with my set up) or is it simply a no-go?

the problem is still there for me if i set a max width for page-break-lines, and also with any variable pitch modes disabled. (not sure what else it could be interacting with.)

@purcell
Copy link
Owner

purcell commented Mar 17, 2022

when i insert an org heading, any horizontal lines following it become, i think, infinitely long, or very long, and if you try to move point past one, point goes way back up the buffer.

should this mode work in org (and so it is maybe something with my set up) or is it simply a no-go?

It should work. I'm not completely clear on the steps to reproduce. Could you perhaps paste a short example snippet of org content that is problematic for you?

@mooseyboots
Copy link
Author

ah, i just realized, sorry, it only mucks up when visual-line-mode is enabled. maybe there's no way around that?

@basaran
Copy link

basaran commented Jul 12, 2022

I use auto-fill-mode for my org files and set everything to a narrow width of 60 chars. You can perhaps try shadowing the page-break-lines--update-display-table function.

For proof of concept, replace make-list width glyph with
make-list fill-column glyph.

and set the fill column to whatever you like. Thank you purcell :)

@SterlingHooten
Copy link

I'm also having this issue, and it seems to be a combination of having both visual-line-mode and org-mode enabled together.

@purcell
Copy link
Owner

purcell commented Jan 18, 2023

If I enable visual-line-mode in an org-mode buffer and play around with adding page breaks, I really don't see any misbehaviour. At least in Emacs 28.2. Could you give me your Emacs version and perhaps a few steps to reproduce, @SterlingHooten?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants