{"action":"created","comment":{"url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/comments/59047863","id":59047863,"diff_hunk":"@@ -20,35 +20,38 @@\n ;; You should have received a copy of the GNU General Public License\n ;; along with this program.  If not, see <http://www.gnu.org/licenses/>.\n \n-(require 'sql)\n-\n-(setq cql-mode-font-lock-keywords\n-      (list\n-       (sql-font-lock-keywords-builder\n-        'font-lock-keyword-face nil\n-        \"insert\" \"into\" \"values\" \"table\" \"create\")\n+;;; Code:\n \n-     sql-mode-font-lock-object-name\n-\n-\t ;; cql data types\n-\t (sql-font-lock-keywords-builder\n-      'font-lock-type-face nil\n-      \"ascii\" \"bigint\" \"blob\" \"boolean\" \"counter\" \"decimal\" \"double\"\n-      \"float\" \"inet\" \"int\" \"list\" \"map\" \"set\" \"text\" \"timestamp\"\n-      \"uuid\" \"timeuuid\" \"varchar\" \"varint\")))\n+(require 'sql)\n \n+(defvar cql-mode-font-lock-keywords\n+  (list\n+   (sql-font-lock-keywords-builder\n+    'font-lock-keyword-face nil\n+    \"insert\" \"into\" \"values\" \"table\" \"create\")))\n+\n+(setq sql-mode-font-lock-object-name\n+      ;; cql data types\n+      (sql-font-lock-keywords-builder\n+       'font-lock-type-face nil\n+       \"ascii\" \"bigint\" \"blob\" \"boolean\" \"counter\" \"decimal\" \"double\"\n+       \"float\" \"inet\" \"int\" \"list\" \"map\" \"set\" \"text\" \"timestamp\"\n+       \"uuid\" \"timeuuid\" \"varchar\" \"varint\"))\n+\n+;;;###autoload\n (define-derived-mode cql-mode prog-mode \"CQL\"\n   \"cql major mode\"\n \n   (set-syntax-table (copy-syntax-table sql-mode-syntax-table))\n \n   (kill-local-variable 'font-lock-set-defaults)\n-  (setq-localfont-lock-defaults\n-              (list '(cql-mode-font-lock-keywords) nil t\n-                    (sql-product-font-lock-syntax-alist)))\n+  (setq font-lock-defaults\n+        (list '(cql-mode-font-lock-keywords) nil t\n+              (sql-product-font-lock-syntax-alist)))\n \n   )\n ","path":"cql-mode.el","position":52,"original_position":52,"commit_id":"3062653165ddbaa9b8f96a6d01fc96ba34792df9","original_commit_id":"3062653165ddbaa9b8f96a6d01fc96ba34792df9","user":{"login":"Yuki-Inoue","id":491363,"avatar_url":"https://avatars.githubusercontent.com/u/491363?v=3","gravatar_id":"","url":"https://api.github.com/users/Yuki-Inoue","html_url":"https://github.com/Yuki-Inoue","followers_url":"https://api.github.com/users/Yuki-Inoue/followers","following_url":"https://api.github.com/users/Yuki-Inoue/following{/other_user}","gists_url":"https://api.github.com/users/Yuki-Inoue/gists{/gist_id}","starred_url":"https://api.github.com/users/Yuki-Inoue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yuki-Inoue/subscriptions","organizations_url":"https://api.github.com/users/Yuki-Inoue/orgs","repos_url":"https://api.github.com/users/Yuki-Inoue/repos","events_url":"https://api.github.com/users/Yuki-Inoue/events{/privacy}","received_events_url":"https://api.github.com/users/Yuki-Inoue/received_events","type":"User","site_admin":false},"body":"add-to-list にも、 autoload をつけるものなんですね。。。？","created_at":"2016-04-08T16:01:36Z","updated_at":"2016-04-08T16:01:36Z","html_url":"https://github.com/Yuki-Inoue/cql-mode/pull/1#discussion_r59047863","pull_request_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/comments/59047863"},"html":{"href":"https://github.com/Yuki-Inoue/cql-mode/pull/1#discussion_r59047863"},"pull_request":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1","id":65808103,"html_url":"https://github.com/Yuki-Inoue/cql-mode/pull/1","diff_url":"https://github.com/Yuki-Inoue/cql-mode/pull/1.diff","patch_url":"https://github.com/Yuki-Inoue/cql-mode/pull/1.patch","issue_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues/1","number":1,"state":"open","locked":false,"title":"Fix package","user":{"login":"syohex","id":554281,"avatar_url":"https://avatars.githubusercontent.com/u/554281?v=3","gravatar_id":"","url":"https://api.github.com/users/syohex","html_url":"https://github.com/syohex","followers_url":"https://api.github.com/users/syohex/followers","following_url":"https://api.github.com/users/syohex/following{/other_user}","gists_url":"https://api.github.com/users/syohex/gists{/gist_id}","starred_url":"https://api.github.com/users/syohex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syohex/subscriptions","organizations_url":"https://api.github.com/users/syohex/orgs","repos_url":"https://api.github.com/users/syohex/repos","events_url":"https://api.github.com/users/syohex/events{/privacy}","received_events_url":"https://api.github.com/users/syohex/received_events","type":"User","site_admin":false},"body":"- Fix `setq-local`(insert space between function and symbol) and use `setq` instead of `setq-local` because `font-lock-defaults` is declared as buffer local variable. (And `setq-local` requires Emacs 24.3 or higher versions)\r\n- Use defvar for global variable declaration\r\n- Add autoload cookie for lazy loading\r\n- Add meta comment","created_at":"2016-04-08T15:57:58Z","updated_at":"2016-04-08T16:01:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"312361fc7e8f9c2b4d453a582c0a51ea7310f5c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues/1/comments","statuses_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/statuses/3062653165ddbaa9b8f96a6d01fc96ba34792df9","head":{"label":"syohex:fix-package","ref":"fix-package","sha":"3062653165ddbaa9b8f96a6d01fc96ba34792df9","user":{"login":"syohex","id":554281,"avatar_url":"https://avatars.githubusercontent.com/u/554281?v=3","gravatar_id":"","url":"https://api.github.com/users/syohex","html_url":"https://github.com/syohex","followers_url":"https://api.github.com/users/syohex/followers","following_url":"https://api.github.com/users/syohex/following{/other_user}","gists_url":"https://api.github.com/users/syohex/gists{/gist_id}","starred_url":"https://api.github.com/users/syohex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syohex/subscriptions","organizations_url":"https://api.github.com/users/syohex/orgs","repos_url":"https://api.github.com/users/syohex/repos","events_url":"https://api.github.com/users/syohex/events{/privacy}","received_events_url":"https://api.github.com/users/syohex/received_events","type":"User","site_admin":false},"repo":{"id":55791143,"name":"cql-mode","full_name":"syohex/cql-mode","owner":{"login":"syohex","id":554281,"avatar_url":"https://avatars.githubusercontent.com/u/554281?v=3","gravatar_id":"","url":"https://api.github.com/users/syohex","html_url":"https://github.com/syohex","followers_url":"https://api.github.com/users/syohex/followers","following_url":"https://api.github.com/users/syohex/following{/other_user}","gists_url":"https://api.github.com/users/syohex/gists{/gist_id}","starred_url":"https://api.github.com/users/syohex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syohex/subscriptions","organizations_url":"https://api.github.com/users/syohex/orgs","repos_url":"https://api.github.com/users/syohex/repos","events_url":"https://api.github.com/users/syohex/events{/privacy}","received_events_url":"https://api.github.com/users/syohex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/syohex/cql-mode","description":"","fork":true,"url":"https://api.github.com/repos/syohex/cql-mode","forks_url":"https://api.github.com/repos/syohex/cql-mode/forks","keys_url":"https://api.github.com/repos/syohex/cql-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syohex/cql-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syohex/cql-mode/teams","hooks_url":"https://api.github.com/repos/syohex/cql-mode/hooks","issue_events_url":"https://api.github.com/repos/syohex/cql-mode/issues/events{/number}","events_url":"https://api.github.com/repos/syohex/cql-mode/events","assignees_url":"https://api.github.com/repos/syohex/cql-mode/assignees{/user}","branches_url":"https://api.github.com/repos/syohex/cql-mode/branches{/branch}","tags_url":"https://api.github.com/repos/syohex/cql-mode/tags","blobs_url":"https://api.github.com/repos/syohex/cql-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syohex/cql-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syohex/cql-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/syohex/cql-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syohex/cql-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/syohex/cql-mode/languages","stargazers_url":"https://api.github.com/repos/syohex/cql-mode/stargazers","contributors_url":"https://api.github.com/repos/syohex/cql-mode/contributors","subscribers_url":"https://api.github.com/repos/syohex/cql-mode/subscribers","subscription_url":"https://api.github.com/repos/syohex/cql-mode/subscription","commits_url":"https://api.github.com/repos/syohex/cql-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/syohex/cql-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/syohex/cql-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/syohex/cql-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/syohex/cql-mode/contents/{+path}","compare_url":"https://api.github.com/repos/syohex/cql-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syohex/cql-mode/merges","archive_url":"https://api.github.com/repos/syohex/cql-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syohex/cql-mode/downloads","issues_url":"https://api.github.com/repos/syohex/cql-mode/issues{/number}","pulls_url":"https://api.github.com/repos/syohex/cql-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/syohex/cql-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/syohex/cql-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syohex/cql-mode/labels{/name}","releases_url":"https://api.github.com/repos/syohex/cql-mode/releases{/id}","deployments_url":"https://api.github.com/repos/syohex/cql-mode/deployments","created_at":"2016-04-08T15:52:08Z","updated_at":"2016-04-08T15:52:09Z","pushed_at":"2016-04-08T15:55:44Z","git_url":"git://github.com/syohex/cql-mode.git","ssh_url":"git@github.com:syohex/cql-mode.git","clone_url":"https://github.com/syohex/cql-mode.git","svn_url":"https://github.com/syohex/cql-mode","homepage":null,"size":3,"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":"Yuki-Inoue:master","ref":"master","sha":"73bbdbf79fac68c241441a639b6e522bc51bb739","user":{"login":"Yuki-Inoue","id":491363,"avatar_url":"https://avatars.githubusercontent.com/u/491363?v=3","gravatar_id":"","url":"https://api.github.com/users/Yuki-Inoue","html_url":"https://github.com/Yuki-Inoue","followers_url":"https://api.github.com/users/Yuki-Inoue/followers","following_url":"https://api.github.com/users/Yuki-Inoue/following{/other_user}","gists_url":"https://api.github.com/users/Yuki-Inoue/gists{/gist_id}","starred_url":"https://api.github.com/users/Yuki-Inoue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yuki-Inoue/subscriptions","organizations_url":"https://api.github.com/users/Yuki-Inoue/orgs","repos_url":"https://api.github.com/users/Yuki-Inoue/repos","events_url":"https://api.github.com/users/Yuki-Inoue/events{/privacy}","received_events_url":"https://api.github.com/users/Yuki-Inoue/received_events","type":"User","site_admin":false},"repo":{"id":55784885,"name":"cql-mode","full_name":"Yuki-Inoue/cql-mode","owner":{"login":"Yuki-Inoue","id":491363,"avatar_url":"https://avatars.githubusercontent.com/u/491363?v=3","gravatar_id":"","url":"https://api.github.com/users/Yuki-Inoue","html_url":"https://github.com/Yuki-Inoue","followers_url":"https://api.github.com/users/Yuki-Inoue/followers","following_url":"https://api.github.com/users/Yuki-Inoue/following{/other_user}","gists_url":"https://api.github.com/users/Yuki-Inoue/gists{/gist_id}","starred_url":"https://api.github.com/users/Yuki-Inoue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yuki-Inoue/subscriptions","organizations_url":"https://api.github.com/users/Yuki-Inoue/orgs","repos_url":"https://api.github.com/users/Yuki-Inoue/repos","events_url":"https://api.github.com/users/Yuki-Inoue/events{/privacy}","received_events_url":"https://api.github.com/users/Yuki-Inoue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yuki-Inoue/cql-mode","description":"","fork":false,"url":"https://api.github.com/repos/Yuki-Inoue/cql-mode","forks_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/forks","keys_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/teams","hooks_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/hooks","issue_events_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues/events{/number}","events_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/events","assignees_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/assignees{/user}","branches_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/branches{/branch}","tags_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/tags","blobs_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/languages","stargazers_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/stargazers","contributors_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/contributors","subscribers_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/subscribers","subscription_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/subscription","commits_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/contents/{+path}","compare_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/merges","archive_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/downloads","issues_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues{/number}","pulls_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/labels{/name}","releases_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/releases{/id}","deployments_url":"https://api.github.com/repos/Yuki-Inoue/cql-mode/deployments","created_at":"2016-04-08T14:25:35Z","updated_at":"2016-04-08T14:59:00Z","pushed_at":"2016-04-08T15:57:59Z","git_url":"git://github.com/Yuki-Inoue/cql-mode.git","ssh_url":"git@github.com:Yuki-Inoue/cql-mode.git","clone_url":"https://github.com/Yuki-Inoue/cql-mode.git","svn_url":"https://github.com/Yuki-Inoue/cql-mode","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1"},"html":{"href":"https://github.com/Yuki-Inoue/cql-mode/pull/1"},"issue":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues/1"},"comments":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Yuki-Inoue/cql-mode/statuses/3062653165ddbaa9b8f96a6d01fc96ba34792df9"}}}}