{"action":"closed","issue":{"url":"https://api.github.com/repos/jwiegley/emacs-async/issues/49","labels_url":"https://api.github.com/repos/jwiegley/emacs-async/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/jwiegley/emacs-async/issues/49/comments","events_url":"https://api.github.com/repos/jwiegley/emacs-async/issues/49/events","html_url":"https://github.com/jwiegley/emacs-async/issues/49","id":62867709,"number":49,"title":"cannot byte-compile file synchronically ","user":{"login":"bixuanzju","id":1680704,"avatar_url":"https://avatars.githubusercontent.com/u/1680704?v=3","gravatar_id":"","url":"https://api.github.com/users/bixuanzju","html_url":"https://github.com/bixuanzju","followers_url":"https://api.github.com/users/bixuanzju/followers","following_url":"https://api.github.com/users/bixuanzju/following{/other_user}","gists_url":"https://api.github.com/users/bixuanzju/gists{/gist_id}","starred_url":"https://api.github.com/users/bixuanzju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bixuanzju/subscriptions","organizations_url":"https://api.github.com/users/bixuanzju/orgs","repos_url":"https://api.github.com/users/bixuanzju/repos","events_url":"https://api.github.com/users/bixuanzju/events{/privacy}","received_events_url":"https://api.github.com/users/bixuanzju/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-19T03:56:08Z","updated_at":"2015-03-19T04:18:07Z","closed_at":"2015-03-19T04:18:07Z","body":"I have the following code in my emacs setup, which will regenerate `.el` file after saving:\r\n```el\r\n  (defun my/init-hook ()\r\n    \"If the current buffer is 'emacs-init.org' the code-blocks\r\nare tangled, and the tangled file is compiled.\"\r\n    (when (equal (buffer-file-name) my-org-file)\r\n      (async-start\r\n       `(lambda ()\r\n          (require 'org)\r\n          (org-babel-tangle-file ,my-org-file)\r\n          (byte-compile-file ,my-init-file))\r\n       (lambda (result)\r\n         (message \"Tangled file compiled.\")))))\r\n  (add-hook 'after-save-hook 'my/init-hook))\r\n```\r\nThe problem is, it never byte-compiles the generated file even though I have `(byte-compile-file ,my-init-file)` in the code."}}