{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/1622","repository_url":"https://api.github.com/repos/clojure-emacs/cider","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1622/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1622/events","html_url":"https://github.com/clojure-emacs/cider/pull/1622","id":142154314,"number":1622,"title":"implementation of cider-expected-ns","user":{"login":"aiba","id":26651,"avatar_url":"https://avatars.githubusercontent.com/u/26651?v=3","gravatar_id":"","url":"https://api.github.com/users/aiba","html_url":"https://github.com/aiba","followers_url":"https://api.github.com/users/aiba/followers","following_url":"https://api.github.com/users/aiba/following{/other_user}","gists_url":"https://api.github.com/users/aiba/gists{/gist_id}","starred_url":"https://api.github.com/users/aiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiba/subscriptions","organizations_url":"https://api.github.com/users/aiba/orgs","repos_url":"https://api.github.com/users/aiba/repos","events_url":"https://api.github.com/users/aiba/events{/privacy}","received_events_url":"https://api.github.com/users/aiba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-20T11:29:12Z","updated_at":"2016-03-20T19:14:38Z","closed_at":"2016-03-20T13:20:55Z","pull_request":{"url":"https://api.github.com/repos/clojure-emacs/cider/pulls/1622","html_url":"https://github.com/clojure-emacs/cider/pull/1622","diff_url":"https://github.com/clojure-emacs/cider/pull/1622.diff","patch_url":"https://github.com/clojure-emacs/cider/pull/1622.patch"},"body":"See https://github.com/clojure-emacs/clojure-mode/issues/372"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/comments/198994685","html_url":"https://github.com/clojure-emacs/cider/pull/1622#issuecomment-198994685","issue_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1622","id":198994685,"user":{"login":"aiba","id":26651,"avatar_url":"https://avatars.githubusercontent.com/u/26651?v=3","gravatar_id":"","url":"https://api.github.com/users/aiba","html_url":"https://github.com/aiba","followers_url":"https://api.github.com/users/aiba/followers","following_url":"https://api.github.com/users/aiba/following{/other_user}","gists_url":"https://api.github.com/users/aiba/gists{/gist_id}","starred_url":"https://api.github.com/users/aiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiba/subscriptions","organizations_url":"https://api.github.com/users/aiba/orgs","repos_url":"https://api.github.com/users/aiba/repos","events_url":"https://api.github.com/users/aiba/events{/privacy}","received_events_url":"https://api.github.com/users/aiba/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T19:14:38Z","updated_at":"2016-03-20T19:14:38Z","body":"Thanks for the help getting this into shape!\r\n\r\nCurrently clj-refactor has a feature, `cljr--add-ns-if-blank-clj-file`, which is great except that it calls `clojure-insert-ns-form` and therefore suffers from clojure-emacs/clojure-mode#372.\r\n\r\nAs a next step, I'd propose changing `cljr--add-ns-if-blank-clj-file` to call `cider-expected-ns`.  After that, we could maybe remove `clojure-insert-ns-form` if nobody would miss it.  (I wouldn't miss it.)\r\n\r\nOr, @benedekfazekas are you suggesting that the insertion of namespace doesn't belong in either cljr or clojure-mode, and we should move it all to cider?"}}