Open grendello opened 4 years ago
Is the behavior occurring because your Emacs config/settings are default saving to UTF-8 without BOM (i.e., check your settings), in effect changing all lines in the file, so whitespace cleanup cleans everything?
All the config/settings values pertaining to UTF-8/Unicode are at their default values (whatever the config variables are, I couldn't find any :D), I don't have any settings modifying that behavior in my init.el
I have the same issue, at least on LaTeX files: dotspacemacs-whitespace-cleanup
, even set to changed
, cleans up all whitespace as soon as the file is saved (after any change).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Still observing this with dotspacemacs-whitespace-cleanup 'changed
— (as of spacemacs 76301564c5fa6fbd4a9a07ef35529d931aecd367); later commits messages don't mention "whitespace".
Seems either @github-actions is buggy, or admins have to react to comments by hand. I accept the defacto bug bankruptcy.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Description :octocat:
Spacemacs appears to ignore the
dotspacemacs-whitespace-cleanup
setting for some files in a number of modes.Reproduction guide :beetle:
dotspacemacs-whitespace-cleanup
tochanged
Observed behaviour: :eyes: :broken_heart: The extra whitespace outside the line that was just change is stripped on save. Additionally, the save removes the BOM from the start of the file. My Emacs is configured to open the
.targets
file innxml
mode, but the stripping also happens in C++, C# and plain text modes. It is a regression, however I cannot tell when it was introduced :( I noticed it a month or so ago. As much as I don't like the extra whitespace :), the behavior is a real annoyance when dealing with files like the one linked to above since any edit introduces lots of noise irrelevant to the actual changes.Expected behaviour: :heart: :smile: Whitespace on lines not touched by editing is left intact.
System Info :computer: