{"action":"opened","issue":{"url":"https://api.github.com/repos/bhauman/figwheel-main/issues/26","repository_url":"https://api.github.com/repos/bhauman/figwheel-main","labels_url":"https://api.github.com/repos/bhauman/figwheel-main/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/bhauman/figwheel-main/issues/26/comments","events_url":"https://api.github.com/repos/bhauman/figwheel-main/issues/26/events","html_url":"https://github.com/bhauman/figwheel-main/issues/26","id":343756638,"node_id":"MDU6SXNzdWUzNDM3NTY2Mzg=","number":26,"title":"Print to emacs repl","user":{"login":"vemv","id":1162994,"node_id":"MDQ6VXNlcjExNjI5OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1162994?v=4","gravatar_id":"","url":"https://api.github.com/users/vemv","html_url":"https://github.com/vemv","followers_url":"https://api.github.com/users/vemv/followers","following_url":"https://api.github.com/users/vemv/following{/other_user}","gists_url":"https://api.github.com/users/vemv/gists{/gist_id}","starred_url":"https://api.github.com/users/vemv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vemv/subscriptions","organizations_url":"https://api.github.com/users/vemv/orgs","repos_url":"https://api.github.com/users/vemv/repos","events_url":"https://api.github.com/users/vemv/events{/privacy}","received_events_url":"https://api.github.com/users/vemv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T19:04:43Z","updated_at":"2018-07-23T19:04:43Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nOne thing which I've always wanted (but to be fair, have never checked if it was possible in the prior version of Figwheel) is how to `println` from plain cljs code located in a source file, to the repl that is running within Emacs.\r\n\r\nTo summarize:\r\n\r\n* println within Emacs repl prints to that repl\r\n* println from cljs source code prints to the browser console\r\n* It's not immediately obvious how to print from cljs source code to the Emacs repl\r\n\r\nI recently tried to hack a solution with `*print-fn*` and `set!`, to no avail.\r\n\r\n### Why one would want this\r\n\r\nTo know when Figwheel has reloaded its code (i.e. `(println-to-repl \"Reloaded!\")`), without having to peek at the browser devtools. Most times I want to stay focused within Emacs, full-screen. Also, even if I switch to Chrome, when I see the evidence of the FW reload, I don't know if that one is for the latest change (10 seconds ago), or the _prior_ change (e.g. 1 minutes ago).\r\n\r\nMy prior approach was using Chrome notifications, but lately they only work over https, which can be a pain to setup of every project.\r\n\r\n### Side note\r\n\r\nWhenever I say Emacs I probably could say \"nrepl at my IDE\" but I don't want to make assumptions about impl details.\r\n\r\nThanks - Victor"}}
{"actor":{"display_login":"vemv"}}