{"action":"opened","issue":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/1386","repository_url":"https://api.github.com/repos/abo-abo/swiper","labels_url":"https://api.github.com/repos/abo-abo/swiper/issues/1386/labels{/name}","comments_url":"https://api.github.com/repos/abo-abo/swiper/issues/1386/comments","events_url":"https://api.github.com/repos/abo-abo/swiper/issues/1386/events","html_url":"https://github.com/abo-abo/swiper/issues/1386","id":284983583,"number":1386,"title":"Ivy-dispatching-done-hydra not passing current-prefix-arg","user":{"login":"ericdanan","id":11611353,"avatar_url":"https://avatars3.githubusercontent.com/u/11611353?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdanan","html_url":"https://github.com/ericdanan","followers_url":"https://api.github.com/users/ericdanan/followers","following_url":"https://api.github.com/users/ericdanan/following{/other_user}","gists_url":"https://api.github.com/users/ericdanan/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdanan/subscriptions","organizations_url":"https://api.github.com/users/ericdanan/orgs","repos_url":"https://api.github.com/users/ericdanan/repos","events_url":"https://api.github.com/users/ericdanan/events{/privacy}","received_events_url":"https://api.github.com/users/ericdanan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-28T20:19:49Z","updated_at":"2017-12-28T20:19:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It seems that when using `ivy-dispatching-done-hydra`, `ivy-current-prefix-arg` is always `nil` when an action function is called.\r\n\r\nAs a test, if I evaluate\r\n\r\n ```emacs-lisp\r\n(ivy-read \"choose\" '(\"a\" \"b\")\r\n\t  :action (lambda (cand)\r\n\t\t    (prin1 ivy-current-prefix-arg)))\r\n```\r\n\r\nand then do `C-u M-o o`, the printed value of `ivy-current-prefix-arg` is:\r\n- `(4)` when using `ivy-dispatching-done`\r\n- `nil` when using `ivy-dispatching-done-hydra`\r\n\r\nAdding the line\r\n\r\n```emacs-lisp\r\n(setq ivy-current-prefix-arg current-prefix-arg)\r\n```\r\n\r\nat various places inside `ivy-dispatching-done-hydra` did not change anything (and this line is already present inside `ivy-done` anyway).\r\n\r\nSo I don't understand what is going on. Any idea?\r\n"}}
{"actor":{"display_login":"ericdanan"}}