From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Ignored in-buffer settings and after-export hook Date: Wed, 28 Aug 2013 21:42:24 +0200 Message-ID: <87ob8hy53z.fsf@gmail.com> References: <5219F424.5030907@gmail.com> <877gf8k753.fsf@gmail.com> <521B5C9D.8070602@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEldC-0004ID-8g for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:42:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEld3-0006o0-Rj for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:42:18 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:38060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEld3-0006nw-Ku for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:42:09 -0400 Received: by mail-we0-f182.google.com with SMTP id q59so5706050wes.13 for ; Wed, 28 Aug 2013 12:42:08 -0700 (PDT) In-Reply-To: <521B5C9D.8070602@gmail.com> (Daniel Gerber's message of "Mon, 26 Aug 2013 15:48:13 +0200") 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: Daniel Gerber Cc: emacs-orgmode@gnu.org Hello, Daniel Gerber writes: > I guess I can, but it means re-doing the mapping sources to exported > file names. AFAICT, there is only one place where both the source and the output name are known: in `org-publish-file', right after a file has been published. We may add a hook there. Since, at that time, the current buffer can be anything, both file names need to be passed as arguments to the hook. Also, files skipped during the publishing process won't trigger it. What do you think? Regards, -- Nicolas Goaziou