From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Bug: #+INCLUDE: :only-contents not recognized [9.1.2 (9.1.2-37-g3f8d67-elpa @ /home/data1/protected/.emacs.d/elpa/org-20171113/)]] Date: Mon, 20 Nov 2017 14:35:47 +0100 Message-ID: <871sktnkcs.fsf@gmx.us> References: <20171119054245.GF3221@protected.rcdrun.com> 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]:47523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGmF8-0006qv-Eo for emacs-orgmode@gnu.org; Mon, 20 Nov 2017 08:36:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGmEy-0001lv-RC for emacs-orgmode@gnu.org; Mon, 20 Nov 2017 08:36:10 -0500 Received: from [195.159.176.226] (port=36379 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGmEy-0001kx-JZ for emacs-orgmode@gnu.org; Mon, 20 Nov 2017 08:36:00 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eGmEo-00051s-PR for emacs-orgmode@gnu.org; Mon, 20 Nov 2017 14:35:50 +0100 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 Jean Louis writes: > I can see that if I use: > > #+INCLUDE: "~/Documents/Org/With-Ease.org" :only-contents t > > that the #+TITLE variable is then included in the > main file, and is concatenated to the main > title. I am exporting "visible only" and that is > happening. > > That is not expected. > > If I try to export with subtree from a section, I > do not get the #+TITLE of included file shown in > ASCII export. > > Do I need to do something to avoid the title being > exported wrongly? I am not sure there is a well specified meaning for :only-contents when you do not select an element. :only-content refers to the content of an element (try ‘org-element-at-point’ on a heading and check :contents-begin). Ways to archive what you want would be to select the right element or use :lines "2-" to skip the title, if it’s on line 1. Hope it helps. Rasmus -- Dung makes an excellent fertilizer