From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-babel and compilation log Date: Fri, 10 May 2013 10:05:36 -0600 Message-ID: <87d2sy7rcf.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UappU-00051h-JC for emacs-orgmode@gnu.org; Fri, 10 May 2013 12:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UappP-0004nP-RR for emacs-orgmode@gnu.org; Fri, 10 May 2013 12:05:56 -0400 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:53322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UappP-0004nJ-KN for emacs-orgmode@gnu.org; Fri, 10 May 2013 12:05:51 -0400 Received: by mail-pb0-f51.google.com with SMTP id wy7so2880049pbc.10 for ; Fri, 10 May 2013 09:05:50 -0700 (PDT) In-Reply-To: (Mohamed's message of "Fri, 10 May 2013 15:55:13 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mohamed Cc: emacs-orgmode@gnu.org Mohamed 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