From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] feature request: org-babel-pre-tangle-hook Date: Fri, 03 Sep 2010 07:57:43 -0600 Message-ID: <87pqwvsze0.fsf@gmail.com> References: <4C80F2C6.7000506@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=52093 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrWmH-00061Q-4O for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 09:58:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrWmF-0003n5-RF for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 09:58:00 -0400 Received: from mail-qy0-f169.google.com ([209.85.216.169]:59347) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrWmF-0003mv-P6 for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 09:57:59 -0400 Received: by qyk12 with SMTP id 12so3685735qyk.0 for ; Fri, 03 Sep 2010 06:57:59 -0700 (PDT) In-Reply-To: <4C80F2C6.7000506@gmail.com> (Rainer M. Krug's message of "Fri, 03 Sep 2010 15:06:14 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: R.M.Krug@gmail.com Cc: emacs-orgmode Hi Rainer, I've just added an `org-babel-pre-tangle-hook' hook which can be used to run functions at the beginning of the tangle process. This hook defaults to saving the buffer before tangling (behavior which was already part of the tangle process). Best -- Eric Rainer M Krug writes: > Hi > > I am doing some post-processing using the org-babel-post-tangle-hook and > I really like that feature. > But now I would like to do some pre-procesing, namely saving the org > file and possibly checking it into svn before tangling. > > Would it be possible to add an org-babel-pre-tangle-hook? > > Thanks, > > Rainer