Skip to content

Commit d69e7cb

Browse files
yuhan0bbatsov
authored andcommitted
Treat commas as punctuation syntax
1 parent 2f8f3ce commit d69e7cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
### Changes
2020

21-
* Inline definition of `clojure-mode-syntax-table` and support `'` quotes in symbols and commas as whitespace.
21+
* Inline definition of `clojure-mode-syntax-table` and support `'` quotes in symbols.
2222
* Enhance add arity refactoring to support a `defn` inside a reader conditional.
2323
* Enhance add arity refactoring to support new forms: `letfn`, `fn`, `defmacro`, `defmethod`, `defprotocol`, `reify` and `proxy`.
2424

clojure-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ Out-of-the box `clojure-mode' understands lein, boot, gradle,
316316
(modify-syntax-entry ?\xa0 " " table) ; non-breaking space
317317
(modify-syntax-entry ?\t " " table)
318318
(modify-syntax-entry ?\f " " table)
319-
(modify-syntax-entry ?, " " table)
319+
;; Setting commas as whitespace makes functions like `delete-trailing-whitespace' behave unexpectedly (#561)
320+
(modify-syntax-entry ?, "." table)
320321

321322
;; Delimiters
322323
(modify-syntax-entry ?\( "()" table)

0 commit comments

Comments
 (0)