{"action":"created","comment":{"url":"https://api.github.com/repos/mawww/kakoune/pulls/comments/71601120","id":71601120,"diff_hunk":"@@ -245,6 +248,9 @@ void write_buffer_to_fd(Buffer& buffer, int fd)\n \n void write_buffer_to_file(Buffer& buffer, StringView filename)\n {\n+    if (buffer.flags() & Buffer::Flags::ReadOnly)","path":"src/file.cc","position":14,"original_position":14,"commit_id":"63ed7f11b1c8d80bb757b7e87e26a37b1087609c","original_commit_id":"63ed7f11b1c8d80bb757b7e87e26a37b1087609c","user":{"login":"lenormf","id":1379068,"avatar_url":"https://avatars.githubusercontent.com/u/1379068?v=3","gravatar_id":"","url":"https://api.github.com/users/lenormf","html_url":"https://github.com/lenormf","followers_url":"https://api.github.com/users/lenormf/followers","following_url":"https://api.github.com/users/lenormf/following{/other_user}","gists_url":"https://api.github.com/users/lenormf/gists{/gist_id}","starred_url":"https://api.github.com/users/lenormf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenormf/subscriptions","organizations_url":"https://api.github.com/users/lenormf/orgs","repos_url":"https://api.github.com/users/lenormf/repos","events_url":"https://api.github.com/users/lenormf/events{/privacy}","received_events_url":"https://api.github.com/users/lenormf/received_events","type":"User","site_admin":false},"body":"I'll have to think about this one.","created_at":"2016-07-20T20:33:06Z","updated_at":"2016-07-20T20:33:06Z","html_url":"https://github.com/mawww/kakoune/pull/731#discussion_r71601120","pull_request_url":"https://api.github.com/repos/mawww/kakoune/pulls/731","_links":{"self":{"href":"https://api.github.com/repos/mawww/kakoune/pulls/comments/71601120"},"html":{"href":"https://github.com/mawww/kakoune/pull/731#discussion_r71601120"},"pull_request":{"href":"https://api.github.com/repos/mawww/kakoune/pulls/731"}}},"pull_request":{"url":"https://api.github.com/repos/mawww/kakoune/pulls/731","id":76975330,"html_url":"https://github.com/mawww/kakoune/pull/731","diff_url":"https://github.com/mawww/kakoune/pull/731.diff","patch_url":"https://github.com/mawww/kakoune/pull/731.patch","issue_url":"https://api.github.com/repos/mawww/kakoune/issues/731","number":731,"state":"open","locked":false,"title":"Readonly mode","user":{"login":"lenormf","id":1379068,"avatar_url":"https://avatars.githubusercontent.com/u/1379068?v=3","gravatar_id":"","url":"https://api.github.com/users/lenormf","html_url":"https://github.com/lenormf","followers_url":"https://api.github.com/users/lenormf/followers","following_url":"https://api.github.com/users/lenormf/following{/other_user}","gists_url":"https://api.github.com/users/lenormf/gists{/gist_id}","starred_url":"https://api.github.com/users/lenormf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenormf/subscriptions","organizations_url":"https://api.github.com/users/lenormf/orgs","repos_url":"https://api.github.com/users/lenormf/repos","events_url":"https://api.github.com/users/lenormf/events{/privacy}","received_events_url":"https://api.github.com/users/lenormf/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-11T15:37:39Z","updated_at":"2016-07-20T20:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e7826e863ef1f2dd5c613076f4ebb197f7500e4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mawww/kakoune/pulls/731/commits","review_comments_url":"https://api.github.com/repos/mawww/kakoune/pulls/731/comments","review_comment_url":"https://api.github.com/repos/mawww/kakoune/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mawww/kakoune/issues/731/comments","statuses_url":"https://api.github.com/repos/mawww/kakoune/statuses/63ed7f11b1c8d80bb757b7e87e26a37b1087609c","head":{"label":"lenormf:readonly-mode","ref":"readonly-mode","sha":"63ed7f11b1c8d80bb757b7e87e26a37b1087609c","user":{"login":"lenormf","id":1379068,"avatar_url":"https://avatars.githubusercontent.com/u/1379068?v=3","gravatar_id":"","url":"https://api.github.com/users/lenormf","html_url":"https://github.com/lenormf","followers_url":"https://api.github.com/users/lenormf/followers","following_url":"https://api.github.com/users/lenormf/following{/other_user}","gists_url":"https://api.github.com/users/lenormf/gists{/gist_id}","starred_url":"https://api.github.com/users/lenormf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenormf/subscriptions","organizations_url":"https://api.github.com/users/lenormf/orgs","repos_url":"https://api.github.com/users/lenormf/repos","events_url":"https://api.github.com/users/lenormf/events{/privacy}","received_events_url":"https://api.github.com/users/lenormf/received_events","type":"User","site_admin":false},"repo":{"id":39266979,"name":"kakoune","full_name":"lenormf/kakoune","owner":{"login":"lenormf","id":1379068,"avatar_url":"https://avatars.githubusercontent.com/u/1379068?v=3","gravatar_id":"","url":"https://api.github.com/users/lenormf","html_url":"https://github.com/lenormf","followers_url":"https://api.github.com/users/lenormf/followers","following_url":"https://api.github.com/users/lenormf/following{/other_user}","gists_url":"https://api.github.com/users/lenormf/gists{/gist_id}","starred_url":"https://api.github.com/users/lenormf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenormf/subscriptions","organizations_url":"https://api.github.com/users/lenormf/orgs","repos_url":"https://api.github.com/users/lenormf/repos","events_url":"https://api.github.com/users/lenormf/events{/privacy}","received_events_url":"https://api.github.com/users/lenormf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lenormf/kakoune","description":"mawww's experiment for a better code editor","fork":true,"url":"https://api.github.com/repos/lenormf/kakoune","forks_url":"https://api.github.com/repos/lenormf/kakoune/forks","keys_url":"https://api.github.com/repos/lenormf/kakoune/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lenormf/kakoune/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lenormf/kakoune/teams","hooks_url":"https://api.github.com/repos/lenormf/kakoune/hooks","issue_events_url":"https://api.github.com/repos/lenormf/kakoune/issues/events{/number}","events_url":"https://api.github.com/repos/lenormf/kakoune/events","assignees_url":"https://api.github.com/repos/lenormf/kakoune/assignees{/user}","branches_url":"https://api.github.com/repos/lenormf/kakoune/branches{/branch}","tags_url":"https://api.github.com/repos/lenormf/kakoune/tags","blobs_url":"https://api.github.com/repos/lenormf/kakoune/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lenormf/kakoune/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lenormf/kakoune/git/refs{/sha}","trees_url":"https://api.github.com/repos/lenormf/kakoune/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lenormf/kakoune/statuses/{sha}","languages_url":"https://api.github.com/repos/lenormf/kakoune/languages","stargazers_url":"https://api.github.com/repos/lenormf/kakoune/stargazers","contributors_url":"https://api.github.com/repos/lenormf/kakoune/contributors","subscribers_url":"https://api.github.com/repos/lenormf/kakoune/subscribers","subscription_url":"https://api.github.com/repos/lenormf/kakoune/subscription","commits_url":"https://api.github.com/repos/lenormf/kakoune/commits{/sha}","git_commits_url":"https://api.github.com/repos/lenormf/kakoune/git/commits{/sha}","comments_url":"https://api.github.com/repos/lenormf/kakoune/comments{/number}","issue_comment_url":"https://api.github.com/repos/lenormf/kakoune/issues/comments{/number}","contents_url":"https://api.github.com/repos/lenormf/kakoune/contents/{+path}","compare_url":"https://api.github.com/repos/lenormf/kakoune/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lenormf/kakoune/merges","archive_url":"https://api.github.com/repos/lenormf/kakoune/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lenormf/kakoune/downloads","issues_url":"https://api.github.com/repos/lenormf/kakoune/issues{/number}","pulls_url":"https://api.github.com/repos/lenormf/kakoune/pulls{/number}","milestones_url":"https://api.github.com/repos/lenormf/kakoune/milestones{/number}","notifications_url":"https://api.github.com/repos/lenormf/kakoune/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lenormf/kakoune/labels{/name}","releases_url":"https://api.github.com/repos/lenormf/kakoune/releases{/id}","deployments_url":"https://api.github.com/repos/lenormf/kakoune/deployments","created_at":"2015-07-17T17:39:36Z","updated_at":"2015-07-17T17:39:38Z","pushed_at":"2016-07-20T18:20:30Z","git_url":"git://github.com/lenormf/kakoune.git","ssh_url":"git@github.com:lenormf/kakoune.git","clone_url":"https://github.com/lenormf/kakoune.git","svn_url":"https://github.com/lenormf/kakoune","homepage":"","size":8752,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mawww:master","ref":"master","sha":"a95937918d243a6811a37f59a80ef8665896122a","user":{"login":"mawww","id":51221,"avatar_url":"https://avatars.githubusercontent.com/u/51221?v=3","gravatar_id":"","url":"https://api.github.com/users/mawww","html_url":"https://github.com/mawww","followers_url":"https://api.github.com/users/mawww/followers","following_url":"https://api.github.com/users/mawww/following{/other_user}","gists_url":"https://api.github.com/users/mawww/gists{/gist_id}","starred_url":"https://api.github.com/users/mawww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mawww/subscriptions","organizations_url":"https://api.github.com/users/mawww/orgs","repos_url":"https://api.github.com/users/mawww/repos","events_url":"https://api.github.com/users/mawww/events{/privacy}","received_events_url":"https://api.github.com/users/mawww/received_events","type":"User","site_admin":false},"repo":{"id":2701888,"name":"kakoune","full_name":"mawww/kakoune","owner":{"login":"mawww","id":51221,"avatar_url":"https://avatars.githubusercontent.com/u/51221?v=3","gravatar_id":"","url":"https://api.github.com/users/mawww","html_url":"https://github.com/mawww","followers_url":"https://api.github.com/users/mawww/followers","following_url":"https://api.github.com/users/mawww/following{/other_user}","gists_url":"https://api.github.com/users/mawww/gists{/gist_id}","starred_url":"https://api.github.com/users/mawww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mawww/subscriptions","organizations_url":"https://api.github.com/users/mawww/orgs","repos_url":"https://api.github.com/users/mawww/repos","events_url":"https://api.github.com/users/mawww/events{/privacy}","received_events_url":"https://api.github.com/users/mawww/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mawww/kakoune","description":"mawww's experiment for a better code editor","fork":false,"url":"https://api.github.com/repos/mawww/kakoune","forks_url":"https://api.github.com/repos/mawww/kakoune/forks","keys_url":"https://api.github.com/repos/mawww/kakoune/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mawww/kakoune/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mawww/kakoune/teams","hooks_url":"https://api.github.com/repos/mawww/kakoune/hooks","issue_events_url":"https://api.github.com/repos/mawww/kakoune/issues/events{/number}","events_url":"https://api.github.com/repos/mawww/kakoune/events","assignees_url":"https://api.github.com/repos/mawww/kakoune/assignees{/user}","branches_url":"https://api.github.com/repos/mawww/kakoune/branches{/branch}","tags_url":"https://api.github.com/repos/mawww/kakoune/tags","blobs_url":"https://api.github.com/repos/mawww/kakoune/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mawww/kakoune/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mawww/kakoune/git/refs{/sha}","trees_url":"https://api.github.com/repos/mawww/kakoune/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mawww/kakoune/statuses/{sha}","languages_url":"https://api.github.com/repos/mawww/kakoune/languages","stargazers_url":"https://api.github.com/repos/mawww/kakoune/stargazers","contributors_url":"https://api.github.com/repos/mawww/kakoune/contributors","subscribers_url":"https://api.github.com/repos/mawww/kakoune/subscribers","subscription_url":"https://api.github.com/repos/mawww/kakoune/subscription","commits_url":"https://api.github.com/repos/mawww/kakoune/commits{/sha}","git_commits_url":"https://api.github.com/repos/mawww/kakoune/git/commits{/sha}","comments_url":"https://api.github.com/repos/mawww/kakoune/comments{/number}","issue_comment_url":"https://api.github.com/repos/mawww/kakoune/issues/comments{/number}","contents_url":"https://api.github.com/repos/mawww/kakoune/contents/{+path}","compare_url":"https://api.github.com/repos/mawww/kakoune/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mawww/kakoune/merges","archive_url":"https://api.github.com/repos/mawww/kakoune/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mawww/kakoune/downloads","issues_url":"https://api.github.com/repos/mawww/kakoune/issues{/number}","pulls_url":"https://api.github.com/repos/mawww/kakoune/pulls{/number}","milestones_url":"https://api.github.com/repos/mawww/kakoune/milestones{/number}","notifications_url":"https://api.github.com/repos/mawww/kakoune/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mawww/kakoune/labels{/name}","releases_url":"https://api.github.com/repos/mawww/kakoune/releases{/id}","deployments_url":"https://api.github.com/repos/mawww/kakoune/deployments","created_at":"2011-11-03T12:43:55Z","updated_at":"2016-07-19T13:25:09Z","pushed_at":"2016-07-20T19:30:49Z","git_url":"git://github.com/mawww/kakoune.git","ssh_url":"git@github.com:mawww/kakoune.git","clone_url":"https://github.com/mawww/kakoune.git","svn_url":"https://github.com/mawww/kakoune","homepage":"","size":8896,"stargazers_count":1102,"watchers_count":1102,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":72,"mirror_url":null,"open_issues_count":77,"forks":72,"open_issues":77,"watchers":1102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mawww/kakoune/pulls/731"},"html":{"href":"https://github.com/mawww/kakoune/pull/731"},"issue":{"href":"https://api.github.com/repos/mawww/kakoune/issues/731"},"comments":{"href":"https://api.github.com/repos/mawww/kakoune/issues/731/comments"},"review_comments":{"href":"https://api.github.com/repos/mawww/kakoune/pulls/731/comments"},"review_comment":{"href":"https://api.github.com/repos/mawww/kakoune/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mawww/kakoune/pulls/731/commits"},"statuses":{"href":"https://api.github.com/repos/mawww/kakoune/statuses/63ed7f11b1c8d80bb757b7e87e26a37b1087609c"}}}}
{"actor":{"display_login":"lenormf"}}