{"action":"created","issue":{"url":"https://api.github.com/repos/jkitchin/org-ref/issues/16","labels_url":"https://api.github.com/repos/jkitchin/org-ref/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jkitchin/org-ref/issues/16/comments","events_url":"https://api.github.com/repos/jkitchin/org-ref/issues/16/events","html_url":"https://github.com/jkitchin/org-ref/issues/16","id":58978024,"number":16,"title":"Warning (emacs): Possible archaic use of (hi-lock-mode)","user":{"login":"icymist","id":3083343,"avatar_url":"https://avatars.githubusercontent.com/u/3083343?v=3","gravatar_id":"","url":"https://api.github.com/users/icymist","html_url":"https://github.com/icymist","followers_url":"https://api.github.com/users/icymist/followers","following_url":"https://api.github.com/users/icymist/following{/other_user}","gists_url":"https://api.github.com/users/icymist/gists{/gist_id}","starred_url":"https://api.github.com/users/icymist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icymist/subscriptions","organizations_url":"https://api.github.com/users/icymist/orgs","repos_url":"https://api.github.com/users/icymist/repos","events_url":"https://api.github.com/users/icymist/events{/privacy}","received_events_url":"https://api.github.com/users/icymist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T22:07:39Z","updated_at":"2015-02-26T13:41:04Z","closed_at":null,"body":"Setup:\r\n\r\n- Emacs: 24.4.1/24.3.x\r\n- Org-mode: 8.2.10\r\n- Org-ref: d060f46b4\r\n\r\nIssue:\r\nUnnecessary warning message.\r\n\r\n```\r\nWarning (emacs): Possible archaic use of (hi-lock-mode).\r\nUse (global-hi-lock-mode 1) in .emacs to enable hi-lock for all buffers,\r\nuse (hi-lock-mode 1) for individual buffers.  For compatibility with Emacs\r\nversions before 22 use the following in your init file:\r\n\r\n        (if (functionp 'global-hi-lock-mode)\r\n            (global-hi-lock-mode 1)\r\n          (hi-lock-mode 1))\r\n```\r\n\r\nCode responsible: in `org-ref.el`\r\n```\r\n(when org-ref-colorize-links\r\n  (highlight-regexp org-ref-cite-re 'org-ref-cite-face)\r\n  (highlight-regexp org-ref-label-re 'org-ref-label-face)\r\n  (highlight-regexp org-ref-ref-re 'org-ref-ref-face))\r\n```\r\n\r\n`(global-hi-lock-mode 1)` before the piece of above code does NOT lead to the warning, but same code after the piece of code leads to the error message."},"comment":{"url":"https://api.github.com/repos/jkitchin/org-ref/issues/comments/76179269","html_url":"https://github.com/jkitchin/org-ref/issues/16#issuecomment-76179269","issue_url":"https://api.github.com/repos/jkitchin/org-ref/issues/16","id":76179269,"user":{"login":"jkitchin","id":1610070,"avatar_url":"https://avatars.githubusercontent.com/u/1610070?v=3","gravatar_id":"","url":"https://api.github.com/users/jkitchin","html_url":"https://github.com/jkitchin","followers_url":"https://api.github.com/users/jkitchin/followers","following_url":"https://api.github.com/users/jkitchin/following{/other_user}","gists_url":"https://api.github.com/users/jkitchin/gists{/gist_id}","starred_url":"https://api.github.com/users/jkitchin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkitchin/subscriptions","organizations_url":"https://api.github.com/users/jkitchin/orgs","repos_url":"https://api.github.com/users/jkitchin/repos","events_url":"https://api.github.com/users/jkitchin/events{/privacy}","received_events_url":"https://api.github.com/users/jkitchin/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T13:41:04Z","updated_at":"2015-02-26T13:41:04Z","body":"fair enough. I pushed a way to make it buffer local, when colorize links is desired. Does it work for you still?"}}