{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/49313378","id":49313378,"diff_hunk":"@@ -6266,50 +6266,12 @@ int trigger_cursorhold(void)\n   return FALSE;\n }\n \n-/*\n- * Return TRUE when there is a CursorMoved autocommand defined.\n- */\n-int has_cursormoved(void)\n-{\n-  return first_autopat[(int)EVENT_CURSORMOVED] != NULL;\n-}\n-\n-/*\n- * Return TRUE when there is a CursorMovedI autocommand defined.\n- */\n-int has_cursormovedI(void)\n-{\n-  return first_autopat[(int)EVENT_CURSORMOVEDI] != NULL;\n-}\n-\n-/*\n- * Return TRUE when there is a TextChanged autocommand defined.\n- */\n-int has_textchanged(void)\n-{\n-  return first_autopat[(int)EVENT_TEXTCHANGED] != NULL;\n-}\n-\n-/*\n- * Return TRUE when there is a TextChangedI autocommand defined.\n- */\n-int has_textchangedI(void)\n-{\n-  return first_autopat[(int)EVENT_TEXTCHANGEDI] != NULL;\n-}\n-\n-/*\n- * Return TRUE when there is an InsertCharPre autocommand defined.\n- */\n-int has_insertcharpre(void)\n-{\n-  return first_autopat[(int)EVENT_INSERTCHARPRE] != NULL;\n-}\n-\n-/// @returns true when there is an CmdUndefined autocommand defined.\n-int has_cmdundefined(void)\n+/// Check if \"event\" autocommand is defined.\n+///\n+/// @param event the autocommand to check","path":"src/nvim/fileio.c","position":48,"original_position":48,"commit_id":"3d6f5e6498a6981c4a211b70537a61d6876a5b56","original_commit_id":"3d6f5e6498a6981c4a211b70537a61d6876a5b56","user":{"login":"oni-link","id":2077655,"avatar_url":"https://avatars.githubusercontent.com/u/2077655?v=3","gravatar_id":"","url":"https://api.github.com/users/oni-link","html_url":"https://github.com/oni-link","followers_url":"https://api.github.com/users/oni-link/followers","following_url":"https://api.github.com/users/oni-link/following{/other_user}","gists_url":"https://api.github.com/users/oni-link/gists{/gist_id}","starred_url":"https://api.github.com/users/oni-link/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oni-link/subscriptions","organizations_url":"https://api.github.com/users/oni-link/orgs","repos_url":"https://api.github.com/users/oni-link/repos","events_url":"https://api.github.com/users/oni-link/events{/privacy}","received_events_url":"https://api.github.com/users/oni-link/received_events","type":"User","site_admin":false},"body":"'/// @returns ...' is missing.","created_at":"2016-01-11T11:55:07Z","updated_at":"2016-01-11T11:55:07Z","html_url":"https://github.com/neovim/neovim/pull/3984#discussion_r49313378","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/3984","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/49313378"},"html":{"href":"https://github.com/neovim/neovim/pull/3984#discussion_r49313378"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3984"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/3984","id":55585445,"html_url":"https://github.com/neovim/neovim/pull/3984","diff_url":"https://github.com/neovim/neovim/pull/3984.diff","patch_url":"https://github.com/neovim/neovim/pull/3984.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3984","number":3984,"state":"open","locked":false,"title":"[RDY] remove redundant functions to replace for the general has_event function","user":{"login":"cacplate","id":5625989,"avatar_url":"https://avatars.githubusercontent.com/u/5625989?v=3","gravatar_id":"","url":"https://api.github.com/users/cacplate","html_url":"https://github.com/cacplate","followers_url":"https://api.github.com/users/cacplate/followers","following_url":"https://api.github.com/users/cacplate/following{/other_user}","gists_url":"https://api.github.com/users/cacplate/gists{/gist_id}","starred_url":"https://api.github.com/users/cacplate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacplate/subscriptions","organizations_url":"https://api.github.com/users/cacplate/orgs","repos_url":"https://api.github.com/users/cacplate/repos","events_url":"https://api.github.com/users/cacplate/events{/privacy}","received_events_url":"https://api.github.com/users/cacplate/received_events","type":"User","site_admin":false},"body":"from @bfredl's idea. It removes redundant functions for a more general one and modify every appropriate calls.\r\n\r\nI'm not sure of my docstring so if anyone have a better idea...","created_at":"2016-01-11T04:04:58Z","updated_at":"2016-01-11T11:55:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fcc1bf8f1d45ccda0e458bd69b7a31827c37331","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/3984/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/3984/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3984/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/3d6f5e6498a6981c4a211b70537a61d6876a5b56","head":{"label":"cacplate:has_event","ref":"has_event","sha":"3d6f5e6498a6981c4a211b70537a61d6876a5b56","user":{"login":"cacplate","id":5625989,"avatar_url":"https://avatars.githubusercontent.com/u/5625989?v=3","gravatar_id":"","url":"https://api.github.com/users/cacplate","html_url":"https://github.com/cacplate","followers_url":"https://api.github.com/users/cacplate/followers","following_url":"https://api.github.com/users/cacplate/following{/other_user}","gists_url":"https://api.github.com/users/cacplate/gists{/gist_id}","starred_url":"https://api.github.com/users/cacplate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacplate/subscriptions","organizations_url":"https://api.github.com/users/cacplate/orgs","repos_url":"https://api.github.com/users/cacplate/repos","events_url":"https://api.github.com/users/cacplate/events{/privacy}","received_events_url":"https://api.github.com/users/cacplate/received_events","type":"User","site_admin":false},"repo":{"id":46238435,"name":"neovim","full_name":"cacplate/neovim","owner":{"login":"cacplate","id":5625989,"avatar_url":"https://avatars.githubusercontent.com/u/5625989?v=3","gravatar_id":"","url":"https://api.github.com/users/cacplate","html_url":"https://github.com/cacplate","followers_url":"https://api.github.com/users/cacplate/followers","following_url":"https://api.github.com/users/cacplate/following{/other_user}","gists_url":"https://api.github.com/users/cacplate/gists{/gist_id}","starred_url":"https://api.github.com/users/cacplate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacplate/subscriptions","organizations_url":"https://api.github.com/users/cacplate/orgs","repos_url":"https://api.github.com/users/cacplate/repos","events_url":"https://api.github.com/users/cacplate/events{/privacy}","received_events_url":"https://api.github.com/users/cacplate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cacplate/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":true,"url":"https://api.github.com/repos/cacplate/neovim","forks_url":"https://api.github.com/repos/cacplate/neovim/forks","keys_url":"https://api.github.com/repos/cacplate/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cacplate/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cacplate/neovim/teams","hooks_url":"https://api.github.com/repos/cacplate/neovim/hooks","issue_events_url":"https://api.github.com/repos/cacplate/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/cacplate/neovim/events","assignees_url":"https://api.github.com/repos/cacplate/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/cacplate/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/cacplate/neovim/tags","blobs_url":"https://api.github.com/repos/cacplate/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cacplate/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cacplate/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/cacplate/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cacplate/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/cacplate/neovim/languages","stargazers_url":"https://api.github.com/repos/cacplate/neovim/stargazers","contributors_url":"https://api.github.com/repos/cacplate/neovim/contributors","subscribers_url":"https://api.github.com/repos/cacplate/neovim/subscribers","subscription_url":"https://api.github.com/repos/cacplate/neovim/subscription","commits_url":"https://api.github.com/repos/cacplate/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/cacplate/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/cacplate/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/cacplate/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/cacplate/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/cacplate/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cacplate/neovim/merges","archive_url":"https://api.github.com/repos/cacplate/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cacplate/neovim/downloads","issues_url":"https://api.github.com/repos/cacplate/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/cacplate/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/cacplate/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/cacplate/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cacplate/neovim/labels{/name}","releases_url":"https://api.github.com/repos/cacplate/neovim/releases{/id}","created_at":"2015-11-15T22:17:29Z","updated_at":"2016-01-11T03:27:05Z","pushed_at":"2016-01-11T06:34:19Z","git_url":"git://github.com/cacplate/neovim.git","ssh_url":"git@github.com:cacplate/neovim.git","clone_url":"https://github.com/cacplate/neovim.git","svn_url":"https://github.com/cacplate/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":35141,"stargazers_count":0,"watchers_count":0,"language":"VimL","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":"neovim:master","ref":"master","sha":"3b94756feb39ad269104b2f765c6c56ff2360203","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2016-01-11T11:47:36Z","pushed_at":"2016-01-11T06:39:11Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":56584,"stargazers_count":16798,"watchers_count":16798,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1176,"mirror_url":null,"open_issues_count":625,"forks":1176,"open_issues":625,"watchers":16798,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3984"},"html":{"href":"https://github.com/neovim/neovim/pull/3984"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/3984"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/3984/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3984/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3984/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/3d6f5e6498a6981c4a211b70537a61d6876a5b56"}}}}