[O] org-babel and compilation log
Dear all, I'm managing my dotEmacs in an org file which is tangled and byte-compiled using a small function -- (defun mh-generate-dot-and-byte-comp () (interactive) Tangle current buffer and generate the dot emacs which is byte compiled (with-current-buffer dotEmacs.org (org-babel-tangle)) (byte-compile-file ~/.emacs.el)) I'm asking is there any way to switch, in case of error or warning, from the Compilation Log file to the original org-mode file (dotEmacs.org) instead of .emacs.el. Thanks, Mohamed
Re: [O] org-babel and compilation log
Mohamed mohamed.hi...@gmail.com writes: Dear all, I'm managing my dotEmacs in an org file which is tangled and byte-compiled using a small function -- (defun mh-generate-dot-and-byte-comp () (interactive) Tangle current buffer and generate the dot emacs which is byte compiled (with-current-buffer dotEmacs.org (org-babel-tangle)) (byte-compile-file ~/.emacs.el)) You may want to use `org-babel-load-file', unless you prefer to run this manually. I'm asking is there any way to switch, in case of error or warning, from the Compilation Log file to the original org-mode file (dotEmacs.org) instead of .emacs.el. Look at the `org-babel-tangle-jump-to-org' function, for it to work you may need to tangle with the :comments header argument set to link. Best, Thanks, Mohamed -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] org-babel and compilation log
Eric Schulte schulte.eric at gmail.com writes: You may want to use `org-babel-load-file', unless you prefer to run this manually. Hello Eric, Thank you for this swift reply. I didn't know this before. But my point here is to byte compile my .emacs.el for the next session. (I have dotEmacs.org - .emacs.elc) Look at the `org-babel-tangle-jump-to-org' function, for it to work you may need to tangle with the :comments header argument set to link. Great this is really what I'm looking for. Thanks a lot !! Mohamed
Re: [O] org-babel and compilation log
I didn't know this before. But my point here is to byte compile my .emacs.el for the next session. (I have dotEmacs.org - .emacs.elc) `org-babel-load-file' does support an optional compile argument. , | org-babel-load-file is an interactive autoloaded compiled Lisp | function in `org.el'. | | (org-babel-load-file FILE optional COMPILE) | | Load Emacs Lisp source code blocks in the Org-mode FILE. | This function exports the source code using `org-babel-tangle' | and then loads the resulting file using `load-file'. With prefix | arg (noninteractively: 2nd arg) COMPILE the tangled Emacs Lisp | file to byte-code before it is loaded. | | [back] ` Look at the `org-babel-tangle-jump-to-org' function, for it to work you may need to tangle with the :comments header argument set to link. Great this is really what I'm looking for. Thanks a lot !! Great, happy to help. -- Eric Schulte http://cs.unm.edu/~eschulte