{"action":"created","issue":{"url":"https://api.github.com/repos/Bruce-Connor/smart-mode-line/issues/118","labels_url":"https://api.github.com/repos/Bruce-Connor/smart-mode-line/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/Bruce-Connor/smart-mode-line/issues/118/comments","events_url":"https://api.github.com/repos/Bruce-Connor/smart-mode-line/issues/118/events","html_url":"https://github.com/Bruce-Connor/smart-mode-line/issues/118","id":59877086,"number":118,"title":"SML causes empty buffers when opening from Windows Explorer","user":{"login":"ReneFroger","id":5211845,"avatar_url":"https://avatars.githubusercontent.com/u/5211845?v=3","gravatar_id":"","url":"https://api.github.com/users/ReneFroger","html_url":"https://github.com/ReneFroger","followers_url":"https://api.github.com/users/ReneFroger/followers","following_url":"https://api.github.com/users/ReneFroger/following{/other_user}","gists_url":"https://api.github.com/users/ReneFroger/gists{/gist_id}","starred_url":"https://api.github.com/users/ReneFroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReneFroger/subscriptions","organizations_url":"https://api.github.com/users/ReneFroger/orgs","repos_url":"https://api.github.com/users/ReneFroger/repos","events_url":"https://api.github.com/users/ReneFroger/events{/privacy}","received_events_url":"https://api.github.com/users/ReneFroger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T23:02:37Z","updated_at":"2015-03-05T00:11:18Z","closed_at":null,"body":"In Windows Explorer, you could open a text file with Emacs. Lately I noticed then my Emacs buffer is empty. There is no file loaded, when I open it with Emacs. \r\n\r\nWhen I comment the following code out in my dot-emacs: \r\n\r\n```\r\n(add-hook 'after-init-hook 'sml/setup)\r\n(add-hook 'after-init-hook 'sml/apply-theme 'dark)\r\n```\r\nAnd test it again, I open a file from Windows Explorer with Emacs, then I see the contents again in the buffer. What caused this issue? \r\n\r\nI use Emacs 25.1 (bleeding edge version), under Windows 7 x64 by the way. "},"comment":{"url":"https://api.github.com/repos/Bruce-Connor/smart-mode-line/issues/comments/77279510","html_url":"https://github.com/Bruce-Connor/smart-mode-line/issues/118#issuecomment-77279510","issue_url":"https://api.github.com/repos/Bruce-Connor/smart-mode-line/issues/118","id":77279510,"user":{"login":"Bruce-Connor","id":453029,"avatar_url":"https://avatars.githubusercontent.com/u/453029?v=3","gravatar_id":"","url":"https://api.github.com/users/Bruce-Connor","html_url":"https://github.com/Bruce-Connor","followers_url":"https://api.github.com/users/Bruce-Connor/followers","following_url":"https://api.github.com/users/Bruce-Connor/following{/other_user}","gists_url":"https://api.github.com/users/Bruce-Connor/gists{/gist_id}","starred_url":"https://api.github.com/users/Bruce-Connor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bruce-Connor/subscriptions","organizations_url":"https://api.github.com/users/Bruce-Connor/orgs","repos_url":"https://api.github.com/users/Bruce-Connor/repos","events_url":"https://api.github.com/users/Bruce-Connor/events{/privacy}","received_events_url":"https://api.github.com/users/Bruce-Connor/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T00:11:18Z","updated_at":"2015-03-05T00:11:18Z","body":"Hi there. \nCould you try removing the second line? \n\nAs I've explained before, that line does not do what you think it does. The `add-hook` function does not pass arguments to the function it's hooking.\nLet me know if you still have that problem after removing the second line."}}