From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eBSrE/PP5mZdKwEAqHPOHw:P1 (envelope-from ) for ; Sun, 15 Sep 2024 12:15:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eBSrE/PP5mZdKwEAqHPOHw (envelope-from ) for ; Sun, 15 Sep 2024 14:15:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oxpINB0+; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726402547; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=e6CtxB8CsM5duVioPIhZl960hMR3VMvKcnnGFxdkHDM=; b=H2/WYQcSvGsYcsBxFb38P6XHYjT8SaWXLNwh//MAg7v/vu/4CX9rA1yoiQEemtQBO5quDH PHdoNXoZ/z8O0xcBkhyZHsIIovwoAIPrQfR/K+m1nI7vHGwca6uRFLy/FPN2yQ9FcENlHP kZuHEGhgxLnMie2mrBj0kfrngDLZw7kQqzfSxh4hTqHDnkDW7pR9FCw5z+0Ztzk9ckYRGV 3Q+53M+B/8uSbRa2Here58RNu23oZmP0JyiIZ2QAQTu3dCIbwdUZ8jBDNAUV2Bekf8Giyw 5Zv42PmkVxwSp+0NaCjt3sdZW2E/YQFWUZMR6dw8IImLUzfH6Pues55+vAXZ3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oxpINB0+; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726402547; a=rsa-sha256; cv=none; b=gy2tGNdH2eljbaTL14wplwdT7qn4bSGaj5n+PfkW3hpH82nackXaWpEhN4EirEh8MjnZVg KSiZMHcm+ND9EH6u7HLF/Xk1cWOIrA/SyszwQmUAWtvjO8HxFGEYHhuM3JhzBnIWvYfo4O AounxRVj2r5JMHSgHCsllYsF/lYHi/rrFGI7XIvwa8rOp0T5vkpH//c8sbBcPDTGfaGow6 2RCwtXPPHsFRNJp1k/SCLcQI9nfV50O7M0PvXkZRdtT88vdGAJVFDtRx7Ogcc82Z4oYYb+ zUU28cOdYXohHi+tcKFbKKWT0VH5bgiE/wgnOS3qA71nEvuZy6k3tZ5ev4LcqQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3D31C709F4 for ; Sun, 15 Sep 2024 14:15:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spo9s-0007pG-Hu; Sun, 15 Sep 2024 08:15:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spo9q-0007p1-8F for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 08:15:14 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spo9l-0008Ao-AF for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 08:15:12 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DAD9F240103 for ; Sun, 15 Sep 2024 14:15:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726402505; bh=e6CtxB8CsM5duVioPIhZl960hMR3VMvKcnnGFxdkHDM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=oxpINB0+138mjBlx88/yW90tahvo36+SBK6VKfgVdnj7qgef6F7K7+skNkp2kJQ4v pzElCDy1TShKGedUi6BF34SbK8jj6tAHxxar8K9F+qrzP430Z4ZnRGXct0yEhu94K+ 7ZCkHul2Tw513VzuUtigyh/LkmFUG45bnTrIhyVvShQrZdGQNzQDp4MU42ZsNqkPqw aGF5bxagNR5AhigdJfMgWzM6SLUA4ghroGZ4Xarwcrx/LM3nZFTJ0/5Xl/+EXoiv7H I47CeZtYP6p3vCjqn8xB0mCyA8o+NlTg0q6JXHf9ybDvdJ6+J7ZntdlUUK3iO1Vgwo XAflzUallzV5Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X66S93f2Fz9rxD; Sun, 15 Sep 2024 14:15:05 +0200 (CEST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ox-texinfo: Support numeric values of `toc' in `#+OPTIONS' In-Reply-To: References: <20240831203449.31407-1-rudolf@adamkovic.org> <87jzfvpb8q.fsf@localhost> <87o74wpv5k.fsf@localhost> Date: Sun, 15 Sep 2024 12:16:39 +0000 Message-ID: <87ttehjemw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-Migadu-Queue-Id: 3D31C709F4 X-Migadu-Scanner: mx10.migadu.com X-TUID: lO+7h8ddzLKf Rudolf Adamkovi=C4=8D writes: > Ihor Radchenko writes: > >> Should be relative level, I think. > > I am a bit lost here, on both why and how. :) See `org-export-collect-headlines' and how it uses `org-export-get-relative-level' to determine whether a given heading is too deeply nested to be included into TOC. `org-export-get-relative-level' is also used within individual backends when dealing with :with-toc export option. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at