Skip to content

Commit 6314697

Browse files
committed
Release 5.22.0
1 parent 22616ac commit 6314697

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22

33
## master (unreleased)
44

5+
## 5.22.0 (2026-03-03)
6+
57
### New features
68

79
* [#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.
810
* [#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.
911
* Add project root detection for ClojureCLR (`deps-clr.edn`).
12+
* Give `edn-mode` its own keymap with data-appropriate bindings, excluding code-oriented refactoring commands.
1013

1114
### Changes
1215

1316
* Update font-locking of built-in dynamic vars for Clojure 1.12.
1417
* Update `clojure-mode-extra-font-locking` for Clojure 1.10-1.12 (new functions in `clojure.core` and other bundled namespaces).
1518
* Add `clojure.repl` section to `clojure-mode-extra-font-locking`.
1619
* Remove non-existent entries from `clojure-mode-extra-font-locking` (`specify`, `specify!`, `special-form-anchor`, `syntax-symbol-anchor`, `stream?`).
20+
* Extend `clojure--check-wrong-major-mode` to cover all derived modes (`.cljd`, `.jank`, `.joke`, `.edn`).
21+
* Remove dead `.cljd` entry from `clojure-mode` `auto-mode-alist`.
1722

1823
### Bugs fixed
1924

@@ -23,6 +28,8 @@
2328
* [#365](https://github.com/clojure-emacs/clojure-mode/issues/365): Font-lock function names in `letfn` bindings with `font-lock-function-name-face`.
2429
* [#527](https://github.com/clojure-emacs/clojure-mode/issues/527): Fix `clojure-sort-ns` mangling `:gen-class` and other non-sortable ns forms.
2530
* [#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.
31+
* [#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.
32+
* Fix `clojure-update-ns` broken by the removal of `clojure-namespace-name-regex`.
2633
* Fix typos in `clojure-mode-extra-font-locking`: `halt-when?` -> `halt-when`, `simple-indent?` -> `simple-ident?`.
2734
* Fix `doc` and `find-doc` misplaced under `clojure.core` instead of `clojure.repl` in extra font-locking.
2835

clojure-mode-extra-font-locking.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
;;
55
;; Author: Bozhidar Batsov <bozhidar@batsov.dev>
66
;; URL: https://github.com/clojure-emacs/clojure-mode
7-
;; Version: 5.21.0
7+
;; Version: 5.22.0
88
;; Keywords: languages, lisp
9-
;; Package-Requires: ((clojure-mode "5.21.0"))
9+
;; Package-Requires: ((clojure-mode "5.22.0"))
1010

1111
;; This file is not part of GNU Emacs.
1212

clojure-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
;; Maintainer: Bozhidar Batsov <bozhidar@batsov.dev>
1313
;; URL: https://github.com/clojure-emacs/clojure-mode
1414
;; Keywords: languages clojure clojurescript lisp
15-
;; Version: 5.21.0
15+
;; Version: 5.22.0
1616
;; Package-Requires: ((emacs "27.1"))
1717

1818
;; This file is not part of GNU Emacs.
@@ -83,7 +83,7 @@
8383
:link '(url-link :tag "GitHub" "https://github.com/clojure-emacs/clojure-mode")
8484
:link '(emacs-commentary-link :tag "Commentary" "clojure-mode"))
8585

86-
(defconst clojure-mode-version "5.21.0"
86+
(defconst clojure-mode-version "5.22.0"
8787
"The current version of `clojure-mode'.")
8888

8989
(defface clojure-keyword-face

0 commit comments

Comments
 (0)