{"action":"created","issue":{"url":"https://api.github.com/repos/diml/utop/issues/153","labels_url":"https://api.github.com/repos/diml/utop/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/diml/utop/issues/153/comments","events_url":"https://api.github.com/repos/diml/utop/issues/153/events","html_url":"https://github.com/diml/utop/issues/153","id":123635372,"number":153,"title":"utop-setup-ocaml-buffer' is deprecated, you need to replace it by utop-minor-mode","user":{"login":"nscott32","id":16023889,"avatar_url":"https://avatars.githubusercontent.com/u/16023889?v=3","gravatar_id":"","url":"https://api.github.com/users/nscott32","html_url":"https://github.com/nscott32","followers_url":"https://api.github.com/users/nscott32/followers","following_url":"https://api.github.com/users/nscott32/following{/other_user}","gists_url":"https://api.github.com/users/nscott32/gists{/gist_id}","starred_url":"https://api.github.com/users/nscott32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nscott32/subscriptions","organizations_url":"https://api.github.com/users/nscott32/orgs","repos_url":"https://api.github.com/users/nscott32/repos","events_url":"https://api.github.com/users/nscott32/events{/privacy}","received_events_url":"https://api.github.com/users/nscott32/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-23T10:28:32Z","updated_at":"2015-12-23T10:35:49Z","closed_at":"2015-12-23T10:30:10Z","body":"Hello,\r\nI alays have error \"utop-setup-ocaml-buffer' is deprecated, you need to replace it by utop-minor-mode\" when launching tuareg mode, what is annoying is that I can't run a service daemon with scratch buffer set to tuareg since the error makes the service fails.\r\nHow can I fix this ?\r\nSorry  I should have asked in tuareg-mode git, I close the issue."},"comment":{"url":"https://api.github.com/repos/diml/utop/issues/comments/166859365","html_url":"https://github.com/diml/utop/issues/153#issuecomment-166859365","issue_url":"https://api.github.com/repos/diml/utop/issues/153","id":166859365,"user":{"login":"nscott32","id":16023889,"avatar_url":"https://avatars.githubusercontent.com/u/16023889?v=3","gravatar_id":"","url":"https://api.github.com/users/nscott32","html_url":"https://github.com/nscott32","followers_url":"https://api.github.com/users/nscott32/followers","following_url":"https://api.github.com/users/nscott32/following{/other_user}","gists_url":"https://api.github.com/users/nscott32/gists{/gist_id}","starred_url":"https://api.github.com/users/nscott32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nscott32/subscriptions","organizations_url":"https://api.github.com/users/nscott32/orgs","repos_url":"https://api.github.com/users/nscott32/repos","events_url":"https://api.github.com/users/nscott32/events{/privacy}","received_events_url":"https://api.github.com/users/nscott32/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T10:35:49Z","updated_at":"2015-12-23T10:35:49Z","body":"They are in utop.el :\r\n (defun utop-setup-ocaml-buffer ()\r\n  \"Deprecated\"\r\n  (error \"`utop-setup-ocaml-buffer' is deprecated, you need to\r\nreplace it by `utop-minor-mode'.\r\n\r\nSee https://github.com/diml/utop for configuration information.\"))\r\n\r\n;;;###autoload\r\n(define-minor-mode utop-minor-mode\r\n  \"Minor mode for utop.\"\r\n  :lighter \" utop\"\r\n  :keymap (let ((map (make-sparse-keymap)))\r\n            (define-key map (kbd \"C-c C-s\") 'utop)\r\n            (define-key map (kbd \"C-x C-e\") 'utop-eval-phrase)\r\n            (define-key map (kbd \"C-x C-r\") 'utop-eval-region)\r\n            (define-key map (kbd \"C-c C-b\") 'utop-eval-buffer)\r\n            (define-key map (kbd \"C-c C-k\") 'utop-kill)\r\n            map)\r\n  ;; Load local file variables\r\n  (add-hook 'hack-local-variables-hook 'utop-hack-local-variables))\r\n"}}