-
Notifications
You must be signed in to change notification settings - Fork 12
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
Small inconsistencies #54
Comments
I finally found why I lost some parts of my Org buffer :) It's a conflict between So in short, it's not a problem with lentic and a corner case. |
Small update for characters that disappear with some commands after I gave a quick glance at lentic's code (after seeing your comments about With an Org buffer only containing
So it seems there is some confusion with the length of the reported region and where to apply it (similar behavior with |
I hope I don't bother you :)
Same setup as previous issues.
I quickly glanced over the other issues to see if these weren't reported already and I didn't find anything similar.
I separated inconsistencies with an horizontal rule below.
That's all I can think of for now (I still have something I can't reproduce as I'm not sure if it's lentic-related but one time, a huge part of non-code blocks in an Org buffer disappeared leaving mostly code-blocks).
Create an Org file:
Start lentic (
C-c , c
&C-c , t
).In the Org view add code blocks:
The Elisp view will show:
I was probably expecting
hello world
to be auto-magically uncommented. It's probably bad performance-wise or may introduce other unwanted behaviors?In the following Elisp view:
Put the cursor on the underscore of
begin_src
thenM-c
to uppercase thes
.The Org view will show:
Editing it further won't fix it, it looks like the whole line must be rewritten.
Undoing in the Org buffer will add another underscore in the Elisp buffer.
The same issue arises for titles and special characters (for example, between s-expressions boundaries in Elisp).
;; * hello world
M-c
on the star to uppercase theh
will completely remove it from the Elisp buffer.;; Hello world
Some stuff doesn't seem to be refreshed.
Create an empty Org buffer, then in the Elisp buffer:
;; [[example.org][link]]
The Org buffer should pretty print the link and only show
link
in a custom face.You can now start removing stuff from the
]
side in the Elisp buffer and the Org buffer won't reflect modifications (it should expand the link again but won't do it unless you modify the link from the Org buffer itself).Not that much of a problem since the actual content is okay.
I'm totally new to Org (in fact lentic made me give it a try), this may seem stupid at first.
Depending on the keyboard, I sometimes use shift + arrow to change buffers so I encountered this one.
Create an Org file:
The Elisp file should be:
Save the Org file and close Emacs if you inserted the content from Emacs directly (to lose any history and start with something that isn't an empty buffer)
Put the cursor on the title then use
S-<right>
.This will only change the title to:
* TODO title
(since I'm new to Org I actually never intended to do that in the first place, but this isn't the actual issue as it's documented that Org conflicts withwindmove
:)).However, it will comment out every code block in the Elisp file:
I don't know why but I may mechanically go to the Elisp buffer (
C-x o
) then revert (C-_
). Strangely if I revert one more time I'll get to the point where I have an empty buffer (which shouldn't happen since we reopened Emacs). If I had to guess it's probably due to the fact that the Elisp buffer is actually recreated from scratch and populated at the beginning so it's counting as the first history step?Again, thanks for lentic! I really want to use it as it seems to be the most advanced module to do this kind of editing but I'm still a bit wary of data loss.
The text was updated successfully, but these errors were encountered: