From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Do not inherit unnumbered property: help needed Date: Sun, 19 Nov 2017 00:28:34 +0100 Message-ID: <878tf3p3od.fsf@nicolasgoaziou.fr> References: <87375dazkk.fsf@gmail.com> <87zi7l9ee7.fsf@gmail.com> <87375cv9os.fsf@nicolasgoaziou.fr> <99B32BBF-1EC9-4A57-B69F-8C74955A8E69@gmail.com> <87vai7pktp.fsf@nicolasgoaziou.fr> <481BE455-C966-461F-85E2-327820D31392@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGCXU-00080I-5F for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 18:28:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGCXP-0003YY-8B for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 18:28:44 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:38212) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eGCXP-0003Wl-0j for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 18:28:39 -0500 In-Reply-To: <481BE455-C966-461F-85E2-327820D31392@gmail.com> (Akater's message of "Sat, 18 Nov 2017 18:50:31 +0000") 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: Akater Cc: emacs-org list Hello, Akater writes: > I got an impression that UNNUMBERED's children get cut off prior to > what user can do, UNNUMBERED headings are not cut off, at least not by "ox.el". > hence writing a simple backend won't help, and I'll have to patch org > (ox) source. Do you know for sure I'm wrong? I'm quite certain you're wrong. > That's what I asked for > originally---which function is responsible for excluding unnumbered's > children from exported entries. Three functions actually check UNNUMBERED properties: - org-export-numbered-headline-p - org-export-collect-headlines - org-export-excluded-from-toc-p You can ignore the last two because it's a special case (when value is "notoc"). So, if you want to control UNNUMBERED property, just don't trust `org-export-numbered-headline-p', or any function calling it. Regards, -- Nicolas Goaziou