{"action":"created","comment":{"url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/comments/62436596","id":62436596,"diff_hunk":"@@ -77,28 +77,55 @@ directories to project directory.\"\n     (let ((elm (nth pos target-list)))\n       (append (list elm) (delete elm target-list)))))\n \n+(defun irony-cdb-json--cdb-list ()\n+  (mapcar (lambda (x) (cdr x)) irony-cdb-json--project-alist))\n+\n (defun irony-cdb-json--choose-cdb ()\n-  (let ((choices (mapcar (lambda (x) (cdr x)) irony-cdb-json--project-alist)))\n-    (completing-read \"Choose Irony CDB: \" choices nil 'require-match nil)))\n+  (let ((cdbs (irony-cdb-json--cdb-list)))\n+    (if (> (length cdbs) 0)\n+        (completing-read \"Choose Irony CDB: \" cdbs nil 'require-match nil)","path":"irony-cdb-json.el","position":12,"original_position":12,"commit_id":"f35d568894f25ebc0d75cd13587c2f7647306231","original_commit_id":"f35d568894f25ebc0d75cd13587c2f7647306231","user":{"login":"Sarcasm","id":424046,"avatar_url":"https://avatars.githubusercontent.com/u/424046?v=3","gravatar_id":"","url":"https://api.github.com/users/Sarcasm","html_url":"https://github.com/Sarcasm","followers_url":"https://api.github.com/users/Sarcasm/followers","following_url":"https://api.github.com/users/Sarcasm/following{/other_user}","gists_url":"https://api.github.com/users/Sarcasm/gists{/gist_id}","starred_url":"https://api.github.com/users/Sarcasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sarcasm/subscriptions","organizations_url":"https://api.github.com/users/Sarcasm/orgs","repos_url":"https://api.github.com/users/Sarcasm/repos","events_url":"https://api.github.com/users/Sarcasm/events{/privacy}","received_events_url":"https://api.github.com/users/Sarcasm/received_events","type":"User","site_admin":false},"body":"`irony-cdb-json--find-best-prefix-path` might do something useful.","created_at":"2016-05-08T18:56:46Z","updated_at":"2016-05-08T18:56:46Z","html_url":"https://github.com/Sarcasm/irony-mode/pull/304#discussion_r62436596","pull_request_url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304","_links":{"self":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/comments/62436596"},"html":{"href":"https://github.com/Sarcasm/irony-mode/pull/304#discussion_r62436596"},"pull_request":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304"}}},"pull_request":{"url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304","id":69242139,"html_url":"https://github.com/Sarcasm/irony-mode/pull/304","diff_url":"https://github.com/Sarcasm/irony-mode/pull/304.diff","patch_url":"https://github.com/Sarcasm/irony-mode/pull/304.patch","issue_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/304","number":304,"state":"open","locked":false,"title":"Implemented irony-cdb-json-select-most-recent.","user":{"login":"netromdk","id":5989057,"avatar_url":"https://avatars.githubusercontent.com/u/5989057?v=3","gravatar_id":"","url":"https://api.github.com/users/netromdk","html_url":"https://github.com/netromdk","followers_url":"https://api.github.com/users/netromdk/followers","following_url":"https://api.github.com/users/netromdk/following{/other_user}","gists_url":"https://api.github.com/users/netromdk/gists{/gist_id}","starred_url":"https://api.github.com/users/netromdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netromdk/subscriptions","organizations_url":"https://api.github.com/users/netromdk/orgs","repos_url":"https://api.github.com/users/netromdk/repos","events_url":"https://api.github.com/users/netromdk/events{/privacy}","received_events_url":"https://api.github.com/users/netromdk/received_events","type":"User","site_admin":false},"body":"It sorts the CDB list so that most recently modified files appear first, which ensures that it works even when having multiple projects with multiple build folders.\r\n\r\nAs discussed in issue #302.","created_at":"2016-05-07T13:12:17Z","updated_at":"2016-05-08T18:56:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef8e93a6567579d971f14c70d7d80f6efc66b587","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304/commits","review_comments_url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304/comments","review_comment_url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/304/comments","statuses_url":"https://api.github.com/repos/Sarcasm/irony-mode/statuses/f35d568894f25ebc0d75cd13587c2f7647306231","head":{"label":"netromdk:master","ref":"master","sha":"f35d568894f25ebc0d75cd13587c2f7647306231","user":{"login":"netromdk","id":5989057,"avatar_url":"https://avatars.githubusercontent.com/u/5989057?v=3","gravatar_id":"","url":"https://api.github.com/users/netromdk","html_url":"https://github.com/netromdk","followers_url":"https://api.github.com/users/netromdk/followers","following_url":"https://api.github.com/users/netromdk/following{/other_user}","gists_url":"https://api.github.com/users/netromdk/gists{/gist_id}","starred_url":"https://api.github.com/users/netromdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netromdk/subscriptions","organizations_url":"https://api.github.com/users/netromdk/orgs","repos_url":"https://api.github.com/users/netromdk/repos","events_url":"https://api.github.com/users/netromdk/events{/privacy}","received_events_url":"https://api.github.com/users/netromdk/received_events","type":"User","site_admin":false},"repo":{"id":58215901,"name":"irony-mode","full_name":"netromdk/irony-mode","owner":{"login":"netromdk","id":5989057,"avatar_url":"https://avatars.githubusercontent.com/u/5989057?v=3","gravatar_id":"","url":"https://api.github.com/users/netromdk","html_url":"https://github.com/netromdk","followers_url":"https://api.github.com/users/netromdk/followers","following_url":"https://api.github.com/users/netromdk/following{/other_user}","gists_url":"https://api.github.com/users/netromdk/gists{/gist_id}","starred_url":"https://api.github.com/users/netromdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netromdk/subscriptions","organizations_url":"https://api.github.com/users/netromdk/orgs","repos_url":"https://api.github.com/users/netromdk/repos","events_url":"https://api.github.com/users/netromdk/events{/privacy}","received_events_url":"https://api.github.com/users/netromdk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/netromdk/irony-mode","description":"A C/C++ minor mode for Emacs powered by libclang","fork":true,"url":"https://api.github.com/repos/netromdk/irony-mode","forks_url":"https://api.github.com/repos/netromdk/irony-mode/forks","keys_url":"https://api.github.com/repos/netromdk/irony-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netromdk/irony-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netromdk/irony-mode/teams","hooks_url":"https://api.github.com/repos/netromdk/irony-mode/hooks","issue_events_url":"https://api.github.com/repos/netromdk/irony-mode/issues/events{/number}","events_url":"https://api.github.com/repos/netromdk/irony-mode/events","assignees_url":"https://api.github.com/repos/netromdk/irony-mode/assignees{/user}","branches_url":"https://api.github.com/repos/netromdk/irony-mode/branches{/branch}","tags_url":"https://api.github.com/repos/netromdk/irony-mode/tags","blobs_url":"https://api.github.com/repos/netromdk/irony-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netromdk/irony-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netromdk/irony-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/netromdk/irony-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netromdk/irony-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/netromdk/irony-mode/languages","stargazers_url":"https://api.github.com/repos/netromdk/irony-mode/stargazers","contributors_url":"https://api.github.com/repos/netromdk/irony-mode/contributors","subscribers_url":"https://api.github.com/repos/netromdk/irony-mode/subscribers","subscription_url":"https://api.github.com/repos/netromdk/irony-mode/subscription","commits_url":"https://api.github.com/repos/netromdk/irony-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/netromdk/irony-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/netromdk/irony-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/netromdk/irony-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/netromdk/irony-mode/contents/{+path}","compare_url":"https://api.github.com/repos/netromdk/irony-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netromdk/irony-mode/merges","archive_url":"https://api.github.com/repos/netromdk/irony-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netromdk/irony-mode/downloads","issues_url":"https://api.github.com/repos/netromdk/irony-mode/issues{/number}","pulls_url":"https://api.github.com/repos/netromdk/irony-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/netromdk/irony-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/netromdk/irony-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netromdk/irony-mode/labels{/name}","releases_url":"https://api.github.com/repos/netromdk/irony-mode/releases{/id}","deployments_url":"https://api.github.com/repos/netromdk/irony-mode/deployments","created_at":"2016-05-06T15:16:35Z","updated_at":"2016-05-06T15:16:36Z","pushed_at":"2016-05-07T13:06:07Z","git_url":"git://github.com/netromdk/irony-mode.git","ssh_url":"git@github.com:netromdk/irony-mode.git","clone_url":"https://github.com/netromdk/irony-mode.git","svn_url":"https://github.com/netromdk/irony-mode","homepage":"","size":1009,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Sarcasm:master","ref":"master","sha":"8d6562a5d75ba65c6fbeff50d2eb9127d45dffa9","user":{"login":"Sarcasm","id":424046,"avatar_url":"https://avatars.githubusercontent.com/u/424046?v=3","gravatar_id":"","url":"https://api.github.com/users/Sarcasm","html_url":"https://github.com/Sarcasm","followers_url":"https://api.github.com/users/Sarcasm/followers","following_url":"https://api.github.com/users/Sarcasm/following{/other_user}","gists_url":"https://api.github.com/users/Sarcasm/gists{/gist_id}","starred_url":"https://api.github.com/users/Sarcasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sarcasm/subscriptions","organizations_url":"https://api.github.com/users/Sarcasm/orgs","repos_url":"https://api.github.com/users/Sarcasm/repos","events_url":"https://api.github.com/users/Sarcasm/events{/privacy}","received_events_url":"https://api.github.com/users/Sarcasm/received_events","type":"User","site_admin":false},"repo":{"id":2564641,"name":"irony-mode","full_name":"Sarcasm/irony-mode","owner":{"login":"Sarcasm","id":424046,"avatar_url":"https://avatars.githubusercontent.com/u/424046?v=3","gravatar_id":"","url":"https://api.github.com/users/Sarcasm","html_url":"https://github.com/Sarcasm","followers_url":"https://api.github.com/users/Sarcasm/followers","following_url":"https://api.github.com/users/Sarcasm/following{/other_user}","gists_url":"https://api.github.com/users/Sarcasm/gists{/gist_id}","starred_url":"https://api.github.com/users/Sarcasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sarcasm/subscriptions","organizations_url":"https://api.github.com/users/Sarcasm/orgs","repos_url":"https://api.github.com/users/Sarcasm/repos","events_url":"https://api.github.com/users/Sarcasm/events{/privacy}","received_events_url":"https://api.github.com/users/Sarcasm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sarcasm/irony-mode","description":"A C/C++ minor mode for Emacs powered by libclang","fork":false,"url":"https://api.github.com/repos/Sarcasm/irony-mode","forks_url":"https://api.github.com/repos/Sarcasm/irony-mode/forks","keys_url":"https://api.github.com/repos/Sarcasm/irony-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sarcasm/irony-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sarcasm/irony-mode/teams","hooks_url":"https://api.github.com/repos/Sarcasm/irony-mode/hooks","issue_events_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/events{/number}","events_url":"https://api.github.com/repos/Sarcasm/irony-mode/events","assignees_url":"https://api.github.com/repos/Sarcasm/irony-mode/assignees{/user}","branches_url":"https://api.github.com/repos/Sarcasm/irony-mode/branches{/branch}","tags_url":"https://api.github.com/repos/Sarcasm/irony-mode/tags","blobs_url":"https://api.github.com/repos/Sarcasm/irony-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sarcasm/irony-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sarcasm/irony-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sarcasm/irony-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sarcasm/irony-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/Sarcasm/irony-mode/languages","stargazers_url":"https://api.github.com/repos/Sarcasm/irony-mode/stargazers","contributors_url":"https://api.github.com/repos/Sarcasm/irony-mode/contributors","subscribers_url":"https://api.github.com/repos/Sarcasm/irony-mode/subscribers","subscription_url":"https://api.github.com/repos/Sarcasm/irony-mode/subscription","commits_url":"https://api.github.com/repos/Sarcasm/irony-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sarcasm/irony-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sarcasm/irony-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sarcasm/irony-mode/contents/{+path}","compare_url":"https://api.github.com/repos/Sarcasm/irony-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sarcasm/irony-mode/merges","archive_url":"https://api.github.com/repos/Sarcasm/irony-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sarcasm/irony-mode/downloads","issues_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues{/number}","pulls_url":"https://api.github.com/repos/Sarcasm/irony-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/Sarcasm/irony-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/Sarcasm/irony-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sarcasm/irony-mode/labels{/name}","releases_url":"https://api.github.com/repos/Sarcasm/irony-mode/releases{/id}","deployments_url":"https://api.github.com/repos/Sarcasm/irony-mode/deployments","created_at":"2011-10-12T19:07:26Z","updated_at":"2016-05-07T07:59:03Z","pushed_at":"2016-05-07T13:12:17Z","git_url":"git://github.com/Sarcasm/irony-mode.git","ssh_url":"git@github.com:Sarcasm/irony-mode.git","clone_url":"https://github.com/Sarcasm/irony-mode.git","svn_url":"https://github.com/Sarcasm/irony-mode","homepage":"","size":1409,"stargazers_count":425,"watchers_count":425,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":68,"forks":61,"open_issues":68,"watchers":425,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304"},"html":{"href":"https://github.com/Sarcasm/irony-mode/pull/304"},"issue":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/issues/304"},"comments":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/issues/304/comments"},"review_comments":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304/comments"},"review_comment":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/pulls/304/commits"},"statuses":{"href":"https://api.github.com/repos/Sarcasm/irony-mode/statuses/f35d568894f25ebc0d75cd13587c2f7647306231"}}}}