From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How does org-babel-post-tangle-hook work? Date: Sun, 03 Aug 2014 21:22:57 -0400 Message-ID: <87lhr5ujbh.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE7D6-0006jI-Hu for emacs-orgmode@gnu.org; Sun, 03 Aug 2014 21:37:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XE7D2-0000RW-92 for emacs-orgmode@gnu.org; Sun, 03 Aug 2014 21:37:12 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:59485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE7D2-0000RJ-1i for emacs-orgmode@gnu.org; Sun, 03 Aug 2014 21:37:08 -0400 Received: by mail-ob0-f170.google.com with SMTP id wp4so4092376obc.1 for ; Sun, 03 Aug 2014 18:37:07 -0700 (PDT) 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: Grant Rettke Cc: "emacs-orgmode@gnu.org" This says that when the hook is executed, the current buffer (as identified by the `current-buffer' function) will be a buffer visiting the file of the tangled code. Grant Rettke writes: > Hi, > > In this document > > http://orgmode.org/manual/Extracting-source-code.html#Extracting-source-c= ode > > the hook 'org-babel-post-tangle-hook is explained as > > ,---- > | This hook is run from within code files tangled by org-babel-tangle. > Example applications could include post-processing, compilation or > evaluation of tangled code files. > `---- > > I know what a hook is and how to use them and where they run. > > My trouble is that I don't understand what this documentation is saying. > > Is it saying that if this hook exists in a file that was tangled by > org that it will be executed? If so does it only work for elisp files > or any kind of file? > > Kind regards, > > Grant Rettke | ACM, ASA, FSF, IEEE, SIAM > gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ > =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates > ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) > =E2=80=9CLife has become immeasurably better since I have been forced to = stop > taking it seriously.=E2=80=9D --Thompson > --=20 Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)