Expected behavior
clojure-sort-ns should handle the whole ns form, including :gen-class.
Actual behavior
clojure-sort-ns chokes on forms like :gen-class.
Steps to reproduce the problem
Create a .clj file w/ the following ns form:
(ns foo
(:gen-class
:methods [[methodOne [] String]
[methodTwo [] String]]
:init init))
Run clojure-sort-ns and see that the form is mangled:
(ns foo
(:gen-class
:methods [[methodOne [] String]
:init init
[methodTwo [] String]]))
Environment & Version information
clojure-mode version information
20190105.1043
Emacs version
26.1
Operating system
Fedora 28
Expected behavior
clojure-sort-nsshould handle the whole ns form, including:gen-class.Actual behavior
clojure-sort-nschokes on forms like:gen-class.Steps to reproduce the problem
Create a
.cljfile w/ the following ns form:Run
clojure-sort-nsand see that the form is mangled:Environment & Version information
clojure-mode version information
20190105.1043Emacs version
26.1Operating system
Fedora 28