From mboxrd@z Thu Jan 1 00:00:00 1970 From: Iannis Zannos Subject: Hooks org-publish-before-export-hook, org-publish-after-export-hook no longer in use? Date: Sat, 12 Oct 2013 13:13:59 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6703a35b484d04e8887e1c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUwCy-00060B-0s for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 06:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUwCv-0007vG-Fx for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 06:14:03 -0400 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]:65247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUwCv-0007v7-6c for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 06:14:01 -0400 Received: by mail-ea0-f177.google.com with SMTP id f15so2365056eak.36 for ; Sat, 12 Oct 2013 03:14:00 -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: emacs-orgmode@gnu.org --047d7b6703a35b484d04e8887e1c Content-Type: text/plain; charset=ISO-8859-1 Hello, it appears that in org-mode 8.x the hooks org-publish-before-export-hook and org-publish-after-export-hook are no longer used. I did a search in the source code of org-mode 8.2.1 downloaded from http://orgmode.org/org-8.2.1.zip, and then looked for one of the hooks with: find ./ -name "*.el" -exec grep -H -n "org-publish-before" '{}' \; -print No entries were found. Instead, the method for customizing export seems to have been changed to accept a list of publishing functions in a project-alist: find ./ -name "*.el" -exec grep -H -n "publishing-function" '{}' \; -print gives the related code in lines 650-662 of file lisp/ox-publish-el. If the above is correct, then the org-mode manual should be updated to reflect the change, at page: http://orgmode.org/worg/org-configs/org-hooks.html Cheers, Iannis Zannos --047d7b6703a35b484d04e8887e1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello,=A0

it appears that in org-mode 8.x the hooks=A0org-publish-before-export-h= ook and org-publish-after-export-hook are no longer used. I did a search in= the source code of org-mode 8.2.1 downloaded from=A0http://orgmode.org/org-8.2.1.zip, and then looke= d for one of the hooks with:=A0

find ./ -name "*.el" -exec grep -= H -n "org-publish-before" '{}' \; -print

No entries were found.=A0
Instead,= the method for customizing export seems to have been changed to accept a l= ist of publishing functions in a project-alist:=A0

find ./ -name "*.el" -exec grep -= H -n "publishing-function" '{}' \; -print

gives the related code in lines 650-662 of file l= isp/ox-publish-el.=A0

If the above is correct, then the org-mode = manual should be updated to reflect the change, at page:=A0

Cheers,=A0

=
Iannis Zannos




--047d7b6703a35b484d04e8887e1c-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Hooks org-publish-before-export-hook, org-publish-after-export-hook no longer in use? Date: Mon, 04 Nov 2013 13:15:24 +0100 Message-ID: <87habsxt0j.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdJ4A-00050s-7M for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 07:15:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdJ44-0007VN-Eb for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 07:15:34 -0500 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:45308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdJ44-0007VF-7P for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 07:15:28 -0500 Received: by mail-wg0-f44.google.com with SMTP id n12so1930262wgh.11 for ; Mon, 04 Nov 2013 04:15:27 -0800 (PST) In-Reply-To: (Iannis Zannos's message of "Sat, 12 Oct 2013 13:13:59 +0300") 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: Iannis Zannos Cc: emacs-orgmode@gnu.org Hi Iannis, Iannis Zannos writes: > If the above is correct, then the org-mode manual should be updated > to reflect the change, at page:  > http://orgmode.org/worg/org-configs/org-hooks.html This page was obsolete, I deleted it from the server. Please use this link instead: http://orgmode.org/worg/doc.html#hooks Thanks, -- Bastien