{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/clj-refactor.el/issues/137","labels_url":"https://api.github.com/repos/clojure-emacs/clj-refactor.el/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/clj-refactor.el/issues/137/comments","events_url":"https://api.github.com/repos/clojure-emacs/clj-refactor.el/issues/137/events","html_url":"https://github.com/clojure-emacs/clj-refactor.el/issues/137","id":68353811,"number":137,"title":"Problem with cljr-promote-function","user":{"login":"arichiardi","id":1724788,"avatar_url":"https://avatars.githubusercontent.com/u/1724788?v=3","gravatar_id":"","url":"https://api.github.com/users/arichiardi","html_url":"https://github.com/arichiardi","followers_url":"https://api.github.com/users/arichiardi/followers","following_url":"https://api.github.com/users/arichiardi/following{/other_user}","gists_url":"https://api.github.com/users/arichiardi/gists{/gist_id}","starred_url":"https://api.github.com/users/arichiardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arichiardi/subscriptions","organizations_url":"https://api.github.com/users/arichiardi/orgs","repos_url":"https://api.github.com/users/arichiardi/repos","events_url":"https://api.github.com/users/arichiardi/events{/privacy}","received_events_url":"https://api.github.com/users/arichiardi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T12:16:55Z","updated_at":"2015-04-14T12:42:20Z","closed_at":null,"body":"Hello guys,\r\non this sexp ```(sort-by #(bb/value-over-weight (second %1)) > indexed-items)```, I get the following error:\r\n\r\n    cljr--append-fn-parameter: Wrong number of arguments: (lambda nil \"Move forward an S-expression, or up an S-expression forward.\r\n    If there are no more S-expressions in this one before the closing delimiter, move past that closing delimiter; otherwise, move forward past the S-expression following the point.\" (interactive) (condition-case nil (forward-sexp) (scan-error (if (paredit-in-string-p) (forward-char) (up-list))))), 1\r\n\r\nI tried to remove ```second``` but it does the same...\r\n"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/clj-refactor.el/issues/comments/92798470","html_url":"https://github.com/clojure-emacs/clj-refactor.el/issues/137#issuecomment-92798470","issue_url":"https://api.github.com/repos/clojure-emacs/clj-refactor.el/issues/137","id":92798470,"user":{"login":"expez","id":1006557,"avatar_url":"https://avatars.githubusercontent.com/u/1006557?v=3","gravatar_id":"","url":"https://api.github.com/users/expez","html_url":"https://github.com/expez","followers_url":"https://api.github.com/users/expez/followers","following_url":"https://api.github.com/users/expez/following{/other_user}","gists_url":"https://api.github.com/users/expez/gists{/gist_id}","starred_url":"https://api.github.com/users/expez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expez/subscriptions","organizations_url":"https://api.github.com/users/expez/orgs","repos_url":"https://api.github.com/users/expez/repos","events_url":"https://api.github.com/users/expez/events{/privacy}","received_events_url":"https://api.github.com/users/expez/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T12:42:20Z","updated_at":"2015-04-14T12:42:20Z","body":"Let `|` indicate the cursor:\r\n\r\n```clj\r\n(sort-by #(bb/value-|over-weight (second %1)) > indexed-items)\r\n```\r\n\r\nand I do `cljr-promote-function` and I type `foo` and I press `RET` then I get:\r\n\r\n```clj\r\n(sort-by (fn [foo] (bb/value-over-weight (second foo))) > indexed-items)\r\n```"}}