-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conflict with origami #102
Comments
Hmm ... can't seem to reproduce. I'm not entirely sure why it would happen the way you describe, seeing as Given this, it seems very unlikely that this would be the cause, but in that case I'm really not sure why you're getting this error. Is anything actually not working properly, or are you just getting an error message? Is there anything else in your setup that might be getting in the way? |
Oops, sorry. Try this then, public class Foo {
int x = 0;
<-- spaces ready for `delete-trailing-whitespace`
} I guess you need at least a line inside the block. I don't know why! 😕
Got it. This make sense! Base on the error, I think there is something wrong when trying to redisplay? My best guess is, Emacs is trying to redisplay guide inside the block but it couldn't because of the overlay? But there is indeed a modification inside the overlay.
No worries! This isn't a big issue since this isn't a breaking bug. I have tried with |
Okay cool, I'm getting the error now. I noticed this only happens when Looking back through the code, I'm noticing that a number of the functions I have to use to either check or modify information about a character only work when the cursor is on top of that character. Because of this, I use I'm still not entirely sure why deleting those spaces would get it confused, though. Once the spaces are deleted, it should no longer be aware that they were ever there to begin with, so it wouldn't be trying to draw to them. I think you may be right, and the overlay is interfering with the guide calculations (due to functions like In any case, it doesn't really seem like something that can be fixed, just from a cursory glance. Since it also doesn't seem to be causing any real damage, it's probably safe to just ignore. I'll look further into this when I have the time, so let me know if it starts breaking things. |
I am getting this error while using origami.
Steps to reproduce:
M-x delete-trailing-whitespace
I think the issue is that the guide is deleted inside origami's folding overlay after calling
delete-trailing-whitespace
; then this package is trying to display a deleted guide? 😕The text was updated successfully, but these errors were encountered: