-
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
ethan-wspace detetes trailing minuses (dashes) in auctex math formulas #38
Comments
This is a really nasty bug - many equations in auctex mode and comments composed of trailing dashes/hyphens in other files were deleted. Fortunately I could identify and revert these changes under git version control. I suspect that this is related to In fact I played with spell-fu these days so it can the the reason. Anyway, I removed loading spell-fu and now the dashes are not removed anymore and the syntax of '---' is symbol. Can you confirm that this could be the reason that the syntax table is related to this trailing dash removal? |
Sorry for the delayed reply! This sounds like it's related to the It seems that the syntax I do think that this interaction is the cause of the bug. I'm not 100% sure what to do about it. Maybe you could open a bug on the |
I have ethan-wspace installed for more than a year with the following configuration:
(use-package ethan-wspace
:diminish
:config
(setq mode-require-final-newline nil)
(setq ethan-wspace-face-customized nil)
(global-ethan-wspace-mode 1))
I'm using current emacs from git (compiled and built every two days or so)
For a week or two I have found that the function
ethan-wspace-clean-before-save-hook
inbefore-save-hook
deletes trailing dashes (minuses) in math formulas of auctex mode. I have also noticed that strings of trailing dashes in comments of other modes are also removed.How this happens and how to prevent it (delete only trailing spaces not dashes)?
Thank you in advance!
The text was updated successfully, but these errors were encountered: