From mboxrd@z Thu Jan 1 00:00:00 1970 From: NULL Subject: org-export-filter-final-output-functions Date: Fri, 12 May 2017 04:53:58 +0530 Message-ID: <8737cbm0z5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8xRJ-0000NO-4z for emacs-orgmode@gnu.org; Thu, 11 May 2017 19:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8xRE-0000eD-Sb for emacs-orgmode@gnu.org; Thu, 11 May 2017 19:24:09 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:36843) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8xRE-0000dY-M8 for emacs-orgmode@gnu.org; Thu, 11 May 2017 19:24:04 -0400 Received: by mail-pf0-x243.google.com with SMTP id n23so3734603pfb.3 for ; Thu, 11 May 2017 16:24:04 -0700 (PDT) Received: from nullx002-machine ([43.250.166.235]) by smtp.gmail.com with ESMTPSA id x65sm1971904pfb.111.2017.05.11.16.24.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 16:24:01 -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" To: emacs-orgmode@gnu.org I want to setq org-export-filter-final-output-functions on per project basis, is it possible? I have #+INCLUDE: blog-header.inc in my org file with content: #+BEGIN_EXPORT html

{{blog_header}}

{{blog_subheader}}

Posted by nullx002 on {{blog_date}}
#+END_EXPORT in my init file I have following: (defun nullx002/org-blog-set-filter (output backend info) "required to publish dynamic blog post headers from org-journal" (setq output (replace-regexp-in-string "{{blog_img}}" (read-input "Image: ") output )) (setq output (replace-regexp-in-string "{{blog_header}}" (read-input "Head: ") output )) (setq output (replace-regexp-in-string "{{blog_subheader}}" (read-input "SubHeader: ") output )) (setq output (replace-regexp-in-string "{{blog_date}}" (format-time-string "%a, %b %d, %Y") output )) output ) (setq org-export-filter-final-output-functions '(nullx002/org-blog-set-filter)) It serves me well in replacing those entries from mini buffer for journal/blog entries with M-x org-publish-current-file Only problem is that function (org-export-filter-final-output-function) is universal and asks for image, header, etc. for all org-files. I want it only for a certain project with org-journal and not all org-projects in (org-publish-project-alist). I have tried :publishing-function but it doesn't work. Is it even possible? Thanks -- ~nullx002 (somewhere on pale blue dot) github.com/nullx002 bitbucket.org/nullx002 twitter.com/nullx002