-
Notifications
You must be signed in to change notification settings - Fork 14
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
Doesn't remove whitespaces on save #21
Comments
AFAICT, the whitespace is removed before saving, it just doesn't look that way. See #16. |
I have the same problem. Even I'm using emacs-24.4-dev (from the git mirror) and the git version of ethan-wspace. Reproduced the issue with emacs -Q -L lisp --eval="(require 'ethan-wspace) (global-ethan-wspace-mode 1)" |
Hi! Sorry for the delay in responding. I'm confused about what exactly the problem is. If whitespace of any kind is being highlit, that means it's not being cleaned, for fear of introducing spurious whitespace changes. A quick way to tell whether ethan-wspace is going to try to clean a kind of whitespace is to look for the modeline "lighter", which should look like "ew:mnlt". Any letters that are uppercase indicate a kind of whitespace that won't be cleaned. If you click the letter, they'll toggle between highlighting and clean-before-save. The function Does this address your questions? If not, can you elaborate on what isn't working? |
Not really. The behavior of Steps to reproduce:
|
I believe what you are reporting is a feature, not a bug. See #16. Try running To be honest I had forgotten that this feature existed and when I rediscovered it, I added a paragraph to the README at the end of the section "What does it do?" I admit that it's a bit confusing that the buffer appears to be "clean" although the contents of the buffer don't match the contents of the file. However, I think that it would be worse to have the file "save" but still be dirty. So I'm not really sure what to do about it except document it better.. |
I have the following in my
.emacs
:Do I understand that when I open the file then create some new line consisting of only spaces (which ethan-wspace highlights) then hit C-x C-s and whitespaces should be removed? This doesn't happen for some reason.
The text was updated successfully, but these errors were encountered: