{"action":"created","issue":{"url":"https://api.github.com/repos/mbj4668/yang-mode/issues/4","repository_url":"https://api.github.com/repos/mbj4668/yang-mode","labels_url":"https://api.github.com/repos/mbj4668/yang-mode/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mbj4668/yang-mode/issues/4/comments","events_url":"https://api.github.com/repos/mbj4668/yang-mode/issues/4/events","html_url":"https://github.com/mbj4668/yang-mode/issues/4","id":241335247,"number":4,"title":"autoload not working with GNU Emacs 25.2.1/use-package","user":{"login":"hutchjw","id":22688755,"avatar_url":"https://avatars1.githubusercontent.com/u/22688755?v=4","gravatar_id":"","url":"https://api.github.com/users/hutchjw","html_url":"https://github.com/hutchjw","followers_url":"https://api.github.com/users/hutchjw/followers","following_url":"https://api.github.com/users/hutchjw/following{/other_user}","gists_url":"https://api.github.com/users/hutchjw/gists{/gist_id}","starred_url":"https://api.github.com/users/hutchjw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hutchjw/subscriptions","organizations_url":"https://api.github.com/users/hutchjw/orgs","repos_url":"https://api.github.com/users/hutchjw/repos","events_url":"https://api.github.com/users/hutchjw/events{/privacy}","received_events_url":"https://api.github.com/users/hutchjw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-07T17:53:39Z","updated_at":"2018-03-06T21:14:34Z","closed_at":"2018-03-06T21:14:34Z","author_association":"NONE","body":"---------------Using commit version 0d5d5df86dbb6cbb2de3c0f2d0d5f8c8f29d0695, results in autoload.el with\r\n\r\n;;;***                                                                                                                                                                                                                                                                        \r\n^L\r\n;;;### (autoloads nil \"yang-mode/yang-mode\" \"yang-mode/yang-mode.el\"                                                                                                                                                                                                          \r\n;;;;;;  (22740 3656 0 0))                                                                                                                                                                                                                                                     \r\n;;; Generated autoloads from yang-mode/yang-mode.el                                                                                                                                                                                                                           \r\n(autoload 'yang-mode \"yang-mode\" \"\" t nil)\r\n\r\n(add-to-list 'auto-mode-alist '(\"\\\\.yang\\\\'\" . yang-mode))\r\n\r\n\r\n---------------------after making the following workaround, I was able to get it to work:\r\n\r\ndiff --git a/yang-mode.el b/yang-mode.el\r\nindex 6d405a2..18811f3 100644\r\n--- a/yang-mode.el\r\n+++ b/yang-mode.el\r\n@@ -358,8 +358,8 @@\r\n   (defmacro yang-define-derived-mode (mode &rest args)\r\n     `(define-derived-mode ,mode nil ,@args)))\r\n \r\n-;;;###autoload(autoload 'yang-mode \"yang-mode\" \"\" t nil)\r\n-(yang-define-derived-mode yang-mode \"YANG\"\r\n+;;;###autoload\r\n+(define-derived-mode yang-mode nil \"YANG\"\r\n   \"Major mode for editing YANG modules.\r\n \r\n The hook `c-mode-common-hook' is run with no args at mode\r\n\r\n\r\n----------------now the autoload.el looks like:\r\n\r\n;;;***                                                                                                                                                                                                                                                                        \r\n^L\r\n;;;### (autoloads nil \"yang-mode/yang-mode\" \"yang-mode/yang-mode.el\"                                                                                                                                                                                                          \r\n;;;;;;  (22879 51536 0 0))                                                                                                                                                                                                                                                    \r\n;;; Generated autoloads from yang-mode/yang-mode.el                                                                                                                                                                                                                           \r\n\r\n(autoload 'yang-mode \"yang-mode/yang-mode\" \"\\                                                                                                                                                                                                                                 \r\nMajor mode for editing YANG modules.                                                                                                                                                                                                                                          \r\n                                                                                                                                                                                                                                                                              \r\nThe hook `c-mode-common-hook' is run with no args at mode                                                                                                                                                                                                                     \r\ninitialization, then `yang-mode-hook'.                                                                                                                                                                                                                                        \r\n                                                                                                                                                                                                                                                                              \r\nKey bindings:                                                                                                                                                                                                                                                                 \r\n\\\\{yang-mode-map}                                                                                                                                                                                                                                                             \r\n                                                                                                                                                                                                                                                                              \r\n\\(fn)\" t nil)\r\n\r\n(add-to-list 'auto-mode-alist '(\"\\\\.yang\\\\'\" . yang-mode))\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mbj4668/yang-mode/issues/comments/370930575","html_url":"https://github.com/mbj4668/yang-mode/issues/4#issuecomment-370930575","issue_url":"https://api.github.com/repos/mbj4668/yang-mode/issues/4","id":370930575,"user":{"login":"mbj4668","id":168146,"avatar_url":"https://avatars0.githubusercontent.com/u/168146?v=4","gravatar_id":"","url":"https://api.github.com/users/mbj4668","html_url":"https://github.com/mbj4668","followers_url":"https://api.github.com/users/mbj4668/followers","following_url":"https://api.github.com/users/mbj4668/following{/other_user}","gists_url":"https://api.github.com/users/mbj4668/gists{/gist_id}","starred_url":"https://api.github.com/users/mbj4668/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbj4668/subscriptions","organizations_url":"https://api.github.com/users/mbj4668/orgs","repos_url":"https://api.github.com/users/mbj4668/repos","events_url":"https://api.github.com/users/mbj4668/events{/privacy}","received_events_url":"https://api.github.com/users/mbj4668/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T21:14:34Z","updated_at":"2018-03-06T21:14:34Z","author_association":"OWNER","body":"Fixed by aafb38e."}}
{"actor":{"display_login":"mbj4668"}}