branch: elpa/clojure-mode
commit 6314697ed8042db9341a11d1a330c305a3c36f37
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Release 5.22.0
---
CHANGELOG.md | 7 +++++++
clojure-mode-extra-font-locking.el | 4 ++--
clojure-mode.el | 4 ++--
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c457c26dd3..4047b002c7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,11 +2,14 @@
## master (unreleased)
+## 5.22.0 (2026-03-03)
+
### New features
* [#687](https://github.com/clojure-emacs/clojure-mode/issues/687): Add
`clojure-preferred-build-tool` to control project root detection when multiple
build tool files exist. When unset, prefer directories containing `.git` as a
tiebreaker.
* [#688](https://github.com/clojure-emacs/clojure-mode/issues/688): Add
`clojure-discard-face` for `#_` reader discard forms, allowing them to be
styled differently from comments. Inherits from `font-lock-comment-face` by
default.
* Add project root detection for ClojureCLR (`deps-clr.edn`).
+* Give `edn-mode` its own keymap with data-appropriate bindings, excluding
code-oriented refactoring commands.
### Changes
@@ -14,6 +17,8 @@
* Update `clojure-mode-extra-font-locking` for Clojure 1.10-1.12 (new
functions in `clojure.core` and other bundled namespaces).
* Add `clojure.repl` section to `clojure-mode-extra-font-locking`.
* Remove non-existent entries from `clojure-mode-extra-font-locking`
(`specify`, `specify!`, `special-form-anchor`, `syntax-symbol-anchor`,
`stream?`).
+* Extend `clojure--check-wrong-major-mode` to cover all derived modes
(`.cljd`, `.jank`, `.joke`, `.edn`).
+* Remove dead `.cljd` entry from `clojure-mode` `auto-mode-alist`.
### Bugs fixed
@@ -23,6 +28,8 @@
* [#365](https://github.com/clojure-emacs/clojure-mode/issues/365): Font-lock
function names in `letfn` bindings with `font-lock-function-name-face`.
* [#527](https://github.com/clojure-emacs/clojure-mode/issues/527): Fix
`clojure-sort-ns` mangling `:gen-class` and other non-sortable ns forms.
* [#619](https://github.com/clojure-emacs/clojure-mode/issues/619): Fix
`clojure-thread-last-all` breaking forms containing line comments by absorbing
closing parens into comments.
+* [#610](https://github.com/clojure-emacs/clojure-mode/issues/610): Fix
`edn-mode` indentation to treat all paren lists as data rather than function
calls.
+* Fix `clojure-update-ns` broken by the removal of
`clojure-namespace-name-regex`.
* Fix typos in `clojure-mode-extra-font-locking`: `halt-when?` -> `halt-when`,
`simple-indent?` -> `simple-ident?`.
* Fix `doc` and `find-doc` misplaced under `clojure.core` instead of
`clojure.repl` in extra font-locking.
diff --git a/clojure-mode-extra-font-locking.el
b/clojure-mode-extra-font-locking.el
index a65cac014b..1f782c9f29 100644
--- a/clojure-mode-extra-font-locking.el
+++ b/clojure-mode-extra-font-locking.el
@@ -4,9 +4,9 @@
;;
;; Author: Bozhidar Batsov <[email protected]>
;; URL: https://github.com/clojure-emacs/clojure-mode
-;; Version: 5.21.0
+;; Version: 5.22.0
;; Keywords: languages, lisp
-;; Package-Requires: ((clojure-mode "5.21.0"))
+;; Package-Requires: ((clojure-mode "5.22.0"))
;; This file is not part of GNU Emacs.
diff --git a/clojure-mode.el b/clojure-mode.el
index 03c2ce3b75..dfce784642 100644
--- a/clojure-mode.el
+++ b/clojure-mode.el
@@ -12,7 +12,7 @@
;; Maintainer: Bozhidar Batsov <[email protected]>
;; URL: https://github.com/clojure-emacs/clojure-mode
;; Keywords: languages clojure clojurescript lisp
-;; Version: 5.21.0
+;; Version: 5.22.0
;; Package-Requires: ((emacs "27.1"))
;; This file is not part of GNU Emacs.
@@ -83,7 +83,7 @@
:link '(url-link :tag "GitHub"
"https://github.com/clojure-emacs/clojure-mode")
:link '(emacs-commentary-link :tag "Commentary" "clojure-mode"))
-(defconst clojure-mode-version "5.21.0"
+(defconst clojure-mode-version "5.22.0"
"The current version of `clojure-mode'.")
(defface clojure-keyword-face