Skip to content

Conversation

@monnier
Copy link
Collaborator

@monnier monnier commented Nov 19, 2025

Might as well.

@monnier monnier force-pushed the delete-trailing-whitespace-mode branch from 41204b6 to df1cb8d Compare November 19, 2025 19:52
(editorconfig-trim-whitespaces-mode): Use `delete-trailing-whitespace-mode`
when available.  Improve `:type`.
(editorconfig-properties-hash): Use `defvar-local`.
Remove misleading statement in the docstring.

* ert-tests/editorconfig-tests.el (test-trim-trailing-ws): Adjust test.

* editorconfig-fnmatch.el (editorconfig-fnmatch--cache-hashtable):
Use `defconst`.
(editorconfig-fnmatch--do-translate): Don't backslash escape `-` and `,`
in regexps (breaks new regexp extensions).
@monnier monnier force-pushed the delete-trailing-whitespace-mode branch from df1cb8d to 6055a0d Compare November 26, 2025 18:56
(while (< index length)
(if (and (not is-escaped)
(string-match "[^]\\*?[{},/-]+"
(string-match "[^]\\*?[{},/]+"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we don't need to handle ?- in the cl-case, since it's not special at all. If we don't remove it there, then we need to keep

(?- "-")

instead or removing

(?- (if in-brackets "-" "\\-"))

@xuhdev xuhdev merged commit 5be6d1b into master Nov 27, 2025
11 checks passed
@xuhdev xuhdev deleted the delete-trailing-whitespace-mode branch November 27, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants