-
Notifications
You must be signed in to change notification settings - Fork 20
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
Wspecial-worf-add destroys nested org structure, bug? #34
Comments
Here's the state of the buffer when I press a when folded:
It's consistent with a when unfolded:
Are you getting something else, it's not clear from the screenshot? Can you write down the buffer state as text? The intention of a is to add a new heading below on the same level. |
Ok after some testing I found following out... Start position:
Press
Go back to beginning of
Now go back to
Now back to start positon:
unfold
Now the last test with the start position:
Run
I guess it has something to do with empty lines between the headers that org needs to distinguish the structure? I hope it's clear enough now, so you can reproduce the error? |
* Makefile: New targets - update, compile, plain. Re #34
Still can't reproduce with I added a new setup to improve reproduction. Clone the repo and |
Thanks for the support and the setup. I installed it and made some tests and I found the reason for the problem. Pretty simple, this works fine, because there is no space between the lines.
This works not, because there is an empty line between
Next I started with:
If you pres
and press
and I think this is the problem. So it has nothing to to with worf it's a orgmode problem, very strange.. |
Can you reproduce this now? |
I reproduce it, but this is the expected behavior of |
Ok, thanks for explanation, I found another reason for this behaviour. In my .init.el I got
this made problems to add a new heading. I disabled this and with no space after the last line it works now fine:
It's important that source blocks ar not folded otherwise it does not work for me. I guess that was the jumping point. |
I open a new issue because it has not much to do with my issue a a couple of days ago.. I do not have redefined any worf-mode keys ins this scenario.
Take this simple structure of a org file:
go to *** Testing A** headline press
i
to fold it and hita (wspecial-worf-add)
to insert a new heading below. The result looks like this:The command inserts the heading after
**Testing b
, is this a bug?When I hit
c (change mode) + a
it works without problems. This are my settings for blank lines in org-mode.I commented them out but it does not help.
Regards
Thorsten
The text was updated successfully, but these errors were encountered: