lijunsong / pollen-mode

An Emacs major mode for editing in pollen markup language
GNU Lesser General Public License v3.0
42 stars 9 forks source link

fill-paragraph does not respect comments #22

Open odanoburu opened 4 years ago

odanoburu commented 4 years ago

if I have a buffer with content like thus

◊; lorem
ipsum

when I invoke fill-paragraph (usually bound to M-q), the result is

◊; lorem ipsum

whereas I would expect the text not to change at all, see the same content in org syntax:

# lorem
ipsum

after pressing M-q:

# lorem
ipsum
lijunsong commented 4 years ago

Yes, it seems we need to tune paragraph-separate or paragraph-start to make it behave correctly. I'll fix it soon. Thanks for reporting.

odanoburu commented 4 years ago

I tried this

◊; Local Variables:
◊; mode: pollen
◊; paragraph-start: "\\(◊;\\)\\|\\|[   ]*$"
◊; comment-start: "◊;"
◊; comment-start-skip: "◊;{?[[:space:]]*"
◊; End:

and the behaviour improved in some situations, but still doesn't work properly in all of them…