From 671f2c172fa7a97e4e6f41e1bb628ec8ca73a55c Mon Sep 17 00:00:00 2001 From: yuhan0 Date: Mon, 30 Mar 2020 13:15:55 +0800 Subject: [PATCH] Treat commas as punctuation syntax --- CHANGELOG.md | 2 +- clojure-mode.el | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f609c95..b1e73d9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ ### Changes -* Inline definition of `clojure-mode-syntax-table` and support `'` quotes in symbols and commas as whitespace. +* Inline definition of `clojure-mode-syntax-table` and support `'` quotes in symbols. * Enhance add arity refactoring to support a `defn` inside a reader conditional. * Enhance add arity refactoring to support new forms: `letfn`, `fn`, `defmacro`, `defmethod`, `defprotocol`, `reify` and `proxy`. diff --git a/clojure-mode.el b/clojure-mode.el index 43867265..a9ec18f0 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -316,7 +316,8 @@ Out-of-the box `clojure-mode' understands lein, boot, gradle, (modify-syntax-entry ?\xa0 " " table) ; non-breaking space (modify-syntax-entry ?\t " " table) (modify-syntax-entry ?\f " " table) - (modify-syntax-entry ?, " " table) + ;; Setting commas as whitespace makes functions like `delete-trailing-whitespace' behave unexpectedly (#561) + (modify-syntax-entry ?, "." table) ;; Delimiters (modify-syntax-entry ?\( "()" table)