From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Using Buffer name in :include export property Date: Thu, 28 Aug 2014 23:37:29 +0200 Message-ID: <87y4u8s3c6.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN7OF-0000z8-Cs for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 17:38:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN7O9-00048k-La for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 17:37:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:39477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN7O9-00048a-EV for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 17:37:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XN7O5-0004Pn-RP for emacs-orgmode@gnu.org; Thu, 28 Aug 2014 23:37:45 +0200 Received: from gas45-3-82-244-252-119.fbx.proxad.net ([82.244.252.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Aug 2014 23:37:45 +0200 Received: from j.cubizolles by gas45-3-82-244-252-119.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Aug 2014 23:37:45 +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: emacs-orgmode@gnu.org I'm using the following elisp source block in my org files to choose the publication options. --8<---------------cut here---------------start------------->8--- (setq org-publish-project-alist '(("TeX" :base-directory "./" :publishing-directory "./" :publishing-function org-beamer-publish-to-latex :exclude ".*" :latex-class "mpsi_beamer" :include ("test.org")) )) --8<---------------cut here---------------end--------------->8--- I'd like to define it once and for all in my emacs configuration files but I'd need to replace the --8<---------------cut here---------------start------------->8--- :include ("test.org") --8<---------------cut here---------------end--------------->8--- line with the result of (buffer-name). Is it possible ? Julien.