{"action":"opened","number":316,"pull_request":{"url":"https://api.github.com/repos/defunkt/coffee-mode/pulls/316","id":44312069,"html_url":"https://github.com/defunkt/coffee-mode/pull/316","diff_url":"https://github.com/defunkt/coffee-mode/pull/316.diff","patch_url":"https://github.com/defunkt/coffee-mode/pull/316.patch","issue_url":"https://api.github.com/repos/defunkt/coffee-mode/issues/316","number":316,"state":"open","locked":false,"title":"fix multiline input in coffee-send-region","user":{"login":"cosmicexplorer","id":1305167,"avatar_url":"https://avatars.githubusercontent.com/u/1305167?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicexplorer","html_url":"https://github.com/cosmicexplorer","followers_url":"https://api.github.com/users/cosmicexplorer/followers","following_url":"https://api.github.com/users/cosmicexplorer/following{/other_user}","gists_url":"https://api.github.com/users/cosmicexplorer/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicexplorer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicexplorer/subscriptions","organizations_url":"https://api.github.com/users/cosmicexplorer/orgs","repos_url":"https://api.github.com/users/cosmicexplorer/repos","events_url":"https://api.github.com/users/cosmicexplorer/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicexplorer/received_events","type":"User","site_admin":false},"body":"I'm not sure what the current `coffee-send-region` function is based off of; it may be an old version of coffeescript which parsed repl input differently. Either way, it fails to handle multiline input properly. This change is based off of looking over the [most recent version of repl.coffee](https://github.com/jashkenas/coffeescript/blob/1e62781759e8497853072d9c17c25a9d4a4c42da/src/repl.coffee#L14), which replaces `\\uFF00` with newlines to allow multiline input. After playing around with it a bit, this seems to resolve the problem. I'm not sure why the original function was made the way it was, so I may be missing something, but this seems to work.\r\n\r\nUnfortunately, it still echoes the input into the `*CoffeeREPL*` buffer, which can be annoying for large files. I'm working on a way to avoid that.","created_at":"2015-09-06T23:25:25Z","updated_at":"2015-09-06T23:25:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/defunkt/coffee-mode/pulls/316/commits","review_comments_url":"https://api.github.com/repos/defunkt/coffee-mode/pulls/316/comments","review_comment_url":"https://api.github.com/repos/defunkt/coffee-mode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/defunkt/coffee-mode/issues/316/comments","statuses_url":"https://api.github.com/repos/defunkt/coffee-mode/statuses/365813f7dd4390940e4b9e52d802388d257863cb","head":{"label":"cosmicexplorer:master","ref":"master","sha":"365813f7dd4390940e4b9e52d802388d257863cb","user":{"login":"cosmicexplorer","id":1305167,"avatar_url":"https://avatars.githubusercontent.com/u/1305167?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicexplorer","html_url":"https://github.com/cosmicexplorer","followers_url":"https://api.github.com/users/cosmicexplorer/followers","following_url":"https://api.github.com/users/cosmicexplorer/following{/other_user}","gists_url":"https://api.github.com/users/cosmicexplorer/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicexplorer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicexplorer/subscriptions","organizations_url":"https://api.github.com/users/cosmicexplorer/orgs","repos_url":"https://api.github.com/users/cosmicexplorer/repos","events_url":"https://api.github.com/users/cosmicexplorer/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicexplorer/received_events","type":"User","site_admin":false},"repo":{"id":42021856,"name":"coffee-mode","full_name":"cosmicexplorer/coffee-mode","owner":{"login":"cosmicexplorer","id":1305167,"avatar_url":"https://avatars.githubusercontent.com/u/1305167?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmicexplorer","html_url":"https://github.com/cosmicexplorer","followers_url":"https://api.github.com/users/cosmicexplorer/followers","following_url":"https://api.github.com/users/cosmicexplorer/following{/other_user}","gists_url":"https://api.github.com/users/cosmicexplorer/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmicexplorer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmicexplorer/subscriptions","organizations_url":"https://api.github.com/users/cosmicexplorer/orgs","repos_url":"https://api.github.com/users/cosmicexplorer/repos","events_url":"https://api.github.com/users/cosmicexplorer/events{/privacy}","received_events_url":"https://api.github.com/users/cosmicexplorer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cosmicexplorer/coffee-mode","description":"Emacs Major Mode for CoffeeScript","fork":true,"url":"https://api.github.com/repos/cosmicexplorer/coffee-mode","forks_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/forks","keys_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/teams","hooks_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/hooks","issue_events_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/issues/events{/number}","events_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/events","assignees_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/assignees{/user}","branches_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/branches{/branch}","tags_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/tags","blobs_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/languages","stargazers_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/stargazers","contributors_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/contributors","subscribers_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/subscribers","subscription_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/subscription","commits_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/contents/{+path}","compare_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/merges","archive_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/downloads","issues_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/issues{/number}","pulls_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/labels{/name}","releases_url":"https://api.github.com/repos/cosmicexplorer/coffee-mode/releases{/id}","created_at":"2015-09-06T23:08:28Z","updated_at":"2015-09-06T23:08:29Z","pushed_at":"2015-09-06T23:11:08Z","git_url":"git://github.com/cosmicexplorer/coffee-mode.git","ssh_url":"git@github.com:cosmicexplorer/coffee-mode.git","clone_url":"https://github.com/cosmicexplorer/coffee-mode.git","svn_url":"https://github.com/cosmicexplorer/coffee-mode","homepage":"http://ozmm.org/posts/coffee_mode.html","size":611,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"defunkt:master","ref":"master","sha":"f9bb3fbb8a34292853ba1f7bcb4cab3389eb2c44","user":{"login":"defunkt","id":2,"avatar_url":"https://avatars.githubusercontent.com/u/2?v=3","gravatar_id":"","url":"https://api.github.com/users/defunkt","html_url":"https://github.com/defunkt","followers_url":"https://api.github.com/users/defunkt/followers","following_url":"https://api.github.com/users/defunkt/following{/other_user}","gists_url":"https://api.github.com/users/defunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/defunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunkt/subscriptions","organizations_url":"https://api.github.com/users/defunkt/orgs","repos_url":"https://api.github.com/users/defunkt/repos","events_url":"https://api.github.com/users/defunkt/events{/privacy}","received_events_url":"https://api.github.com/users/defunkt/received_events","type":"User","site_admin":true},"repo":{"id":550681,"name":"coffee-mode","full_name":"defunkt/coffee-mode","owner":{"login":"defunkt","id":2,"avatar_url":"https://avatars.githubusercontent.com/u/2?v=3","gravatar_id":"","url":"https://api.github.com/users/defunkt","html_url":"https://github.com/defunkt","followers_url":"https://api.github.com/users/defunkt/followers","following_url":"https://api.github.com/users/defunkt/following{/other_user}","gists_url":"https://api.github.com/users/defunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/defunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunkt/subscriptions","organizations_url":"https://api.github.com/users/defunkt/orgs","repos_url":"https://api.github.com/users/defunkt/repos","events_url":"https://api.github.com/users/defunkt/events{/privacy}","received_events_url":"https://api.github.com/users/defunkt/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/defunkt/coffee-mode","description":"Emacs Major Mode for CoffeeScript","fork":false,"url":"https://api.github.com/repos/defunkt/coffee-mode","forks_url":"https://api.github.com/repos/defunkt/coffee-mode/forks","keys_url":"https://api.github.com/repos/defunkt/coffee-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/defunkt/coffee-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/defunkt/coffee-mode/teams","hooks_url":"https://api.github.com/repos/defunkt/coffee-mode/hooks","issue_events_url":"https://api.github.com/repos/defunkt/coffee-mode/issues/events{/number}","events_url":"https://api.github.com/repos/defunkt/coffee-mode/events","assignees_url":"https://api.github.com/repos/defunkt/coffee-mode/assignees{/user}","branches_url":"https://api.github.com/repos/defunkt/coffee-mode/branches{/branch}","tags_url":"https://api.github.com/repos/defunkt/coffee-mode/tags","blobs_url":"https://api.github.com/repos/defunkt/coffee-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/defunkt/coffee-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/defunkt/coffee-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/defunkt/coffee-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/defunkt/coffee-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/defunkt/coffee-mode/languages","stargazers_url":"https://api.github.com/repos/defunkt/coffee-mode/stargazers","contributors_url":"https://api.github.com/repos/defunkt/coffee-mode/contributors","subscribers_url":"https://api.github.com/repos/defunkt/coffee-mode/subscribers","subscription_url":"https://api.github.com/repos/defunkt/coffee-mode/subscription","commits_url":"https://api.github.com/repos/defunkt/coffee-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/defunkt/coffee-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/defunkt/coffee-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/defunkt/coffee-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/defunkt/coffee-mode/contents/{+path}","compare_url":"https://api.github.com/repos/defunkt/coffee-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/defunkt/coffee-mode/merges","archive_url":"https://api.github.com/repos/defunkt/coffee-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/defunkt/coffee-mode/downloads","issues_url":"https://api.github.com/repos/defunkt/coffee-mode/issues{/number}","pulls_url":"https://api.github.com/repos/defunkt/coffee-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/defunkt/coffee-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/defunkt/coffee-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/defunkt/coffee-mode/labels{/name}","releases_url":"https://api.github.com/repos/defunkt/coffee-mode/releases{/id}","created_at":"2010-03-07T08:30:40Z","updated_at":"2015-08-25T03:39:15Z","pushed_at":"2015-09-06T23:25:26Z","git_url":"git://github.com/defunkt/coffee-mode.git","ssh_url":"git@github.com:defunkt/coffee-mode.git","clone_url":"https://github.com/defunkt/coffee-mode.git","svn_url":"https://github.com/defunkt/coffee-mode","homepage":"http://ozmm.org/posts/coffee_mode.html","size":1975,"stargazers_count":539,"watchers_count":539,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":7,"forks":158,"open_issues":7,"watchers":539,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/defunkt/coffee-mode/pulls/316"},"html":{"href":"https://github.com/defunkt/coffee-mode/pull/316"},"issue":{"href":"https://api.github.com/repos/defunkt/coffee-mode/issues/316"},"comments":{"href":"https://api.github.com/repos/defunkt/coffee-mode/issues/316/comments"},"review_comments":{"href":"https://api.github.com/repos/defunkt/coffee-mode/pulls/316/comments"},"review_comment":{"href":"https://api.github.com/repos/defunkt/coffee-mode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/defunkt/coffee-mode/pulls/316/commits"},"statuses":{"href":"https://api.github.com/repos/defunkt/coffee-mode/statuses/365813f7dd4390940e4b9e52d802388d257863cb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":17,"changed_files":1}}