Skip to content

Commit 5a3c6ea

Browse files
yuhan0bbatsov
authored andcommitted
Update changelog and tests for clojure-unwind changes
1 parent d3c46d9 commit 5a3c6ea

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
### New features
66

77
* [#496](https://github.com/clojure-emacs/clojure-mode/issues/496): Highlight `[[wikilinks]]` in comments.
8-
* [#366](https://github.com/clojure-emacs/clj-refactor.el/issues/366): Add support for renaming ns aliases (`clojure-rename-ns-alias`).
9-
* [#410](https://github.com/clojure-emacs/clojure-mode/issues/410): Add support for adding an arity to a function (`clojure-add-arity`).
8+
* [#366](https://github.com/clojure-emacs/clj-refactor.el/issues/366): Add support for renaming ns aliases (`clojure-rename-ns-alias`, default binding `C-c C-r n r`).
9+
* [#410](https://github.com/clojure-emacs/clojure-mode/issues/410): Add support for adding an arity to a function (`clojure-add-arity`, default binding `C-c C-r a`), .
1010

1111
### Bugs fixed
1212

@@ -21,6 +21,7 @@
2121
### Changes
2222

2323
* [#524](https://github.com/clojure-emacs/clojure-mode/issues/524): Add proper indentation rule for `delay` (same as for `future`).
24+
* [#538](https://github.com/clojure-emacs/clojure-mode/pull/538): Refactor `clojure-unwind` to take numeric prefix argument for unwinding N steps, and universal argument for unwinding completely. The dedicated `C-c C-r a` binding for `clojure-unwind-all`is now removed and replaced with the universal arg convention `C-u C-c C-r u`.
2425

2526
## 5.10.0 (2019-01-05)
2627

test/clojure-mode-refactor-threading-test.el

+20
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,26 @@
227227
(clojure-unwind)
228228
(clojure-unwind))
229229

230+
(when-refactoring-it "should unwind N steps with numeric prefix arg"
231+
"(->> [1 2 3 4 5]
232+
(filter even?)
233+
(map square)
234+
sum)"
235+
236+
"(->> (sum (map square (filter even? [1 2 3 4 5]))))"
237+
238+
(clojure-unwind 3))
239+
240+
(when-refactoring-it "should unwind completely with universal prefix arg"
241+
"(->> [1 2 3 4 5]
242+
(filter even?)
243+
(map square)
244+
sum)"
245+
246+
"(sum (map square (filter even? [1 2 3 4 5])))"
247+
248+
(clojure-unwind '(4)))
249+
230250
(when-refactoring-it "should unwind with function name"
231251
"(->> [1 2 3 4 5]
232252
sum

0 commit comments

Comments
 (0)