You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resync the load-state indicators after namespace reloads
The per-form eval fringe and the namespace load-state marker only ever got
refreshed by the load-file handler (C-c C-k). `cider-ns-reload`, `-reload-all`
and `cider-ns-refresh` went around it, so after a reload a buffer's markers
stayed stale even though its namespace was current again.
Extract the load handler's resync into `cider--mark-loaded` (re-mark the fringe
across the buffer + run `cider-file-loaded-hook`) and call it from the reload
paths for the namespaces actually reloaded - but only for buffers with no
unsaved edits, since `:reload` loads from disk and an unsaved buffer is
genuinely out of sync. `cider-ns-refresh` threads the reloaded-namespace list
through a per-request cell, so concurrent refreshes across REPLs can't clobber
each other.
Since this routes through `cider-file-loaded-hook', `cider-auto-test-mode' now
re-runs tests on reload too, consistent with `cider-load-buffer'.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
22
22
### Changes
23
23
24
+
-[#3980](https://github.com/clojure-emacs/cider/pull/3980): Keep the load-state indicators in sync across `cider-ns-reload`/`cider-ns-reload-all` and `cider-ns-refresh`: the reloaded namespaces' (unsaved-edit-free) buffers get their fringe and mode-line markers refreshed, instead of staying stale until the next `cider-load-buffer`. These commands now run `cider-file-loaded-hook` for the reloaded buffers, so `cider-auto-test-mode` re-runs their tests too (matching what `cider-load-buffer` already does).
24
25
-[#3967](https://github.com/clojure-emacs/cider/pull/3967): Refresh the embedded Clojure cheatsheet with functions added since Clojure 1.11 (`partitionv`, `partitionv-all`, `splitv-at`, `clojure.repl.deps`, `clojure.java.process`, the `clojure.core` Java-stream helpers, and more `clojure.math` members).
25
26
-[#3967](https://github.com/clojure-emacs/cider/pull/3967): Give the cheatsheet buffer a dedicated `cider-cheatsheet-mode` with fontified section headers and `TAB`/`S-TAB` navigation between entries.
26
27
-[#3971](https://github.com/clojure-emacs/cider/pull/3971): Add `n` and `t` keys in the macroexpansion buffer to cycle namespace display (`cider-macroexpansion-display-namespaces`) and toggle metadata (`cider-macroexpansion-print-metadata`), re-expanding in place.
0 commit comments