From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 yJqxLOM232YgagAA62LTzQ:P1 (envelope-from ) for ; Mon, 09 Sep 2024 17:56:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yJqxLOM232YgagAA62LTzQ (envelope-from ) for ; Mon, 09 Sep 2024 19:56:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DL8FrGmr; 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=1725904611; 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=6I4Nn3NVy5Kz0KfkQLmvbGLL0l2ChWSU2QIHOkFK0Nw=; b=O8kAIimaH1MunJj+xJnAPCXpmLU5RPMkEfqKla4OE+eo1ktGeObGU28wPe98mFxAyUERcn huBVqF2RboYSJipeB97BXTY2jculVjmD281ZHEt/hRZPmo4hbAVl2jMk4kq9SevdZWVXSZ b4EwJjeBSTHblESThrX7uZtyns6nrCliFpcriDuUY05WrindJqwjDhB7Vit309pHa+gVC1 tjFlM1v6TnUIkYYckAPtL3CyD5FSI7PAKEgP8bQo7B1NjrBfeU/Vi2aQDp2VVvdLXTsbs+ St+WVPTTtFiMphkPRPghoqvQTJv8/hF1YWSUQTq88rdO1KcLsYommASAKhcIvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DL8FrGmr; 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=1725904611; a=rsa-sha256; cv=none; b=YtHMUuftSwLpvLEKRKE1yFRat6/WOnMDiWnjsDbnJP7TsmIvhwvA4C1DkxIeSIc1F/52mS 7/8tqb+704V4FVuj1BzOWl1W3OuNE6kdOZmXzYDAVWDUgCai9NZSU0X4FAegmRoIMw+oIm nmDKSBFfTcU6EHTso3Nb2WqRq8j1Y1uJKQ7mTZ2exqCwizzhml29K3Era3w/9iH0Dlji0g q+1QJlYcr0bXi6xAx6a2y6v6hyVMdi+//9d/SVQKw6lsyASjRmqZpdApCSQlP50EfD/hAL Au6sgEm+OUaRDYmUHViFDNCEZKSKoTjtC0j0GHdMk/LiBreCCJ5t3klC17Shag== 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 7B28D727AC for ; Mon, 09 Sep 2024 19:56:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snicZ-0000wV-40; Mon, 09 Sep 2024 13:56:15 -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 1snicV-0000WW-Fu for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 13:56:11 -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 1snicQ-0000VS-I8 for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 13:56:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 58419240101 for ; Mon, 9 Sep 2024 19:56:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725904562; bh=m4rqxr8SYvoviZIRL1zC72zYyt7mov4ZpH0HwpdHHAY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=DL8FrGmrRIXDxW22aiJGQtceNaOzUOKLMOK/3W9NXC9DEYLpk24aeLFtRl3gfRb9D Rg5vfgILKQfNYQ5LCyoTonv2pdqIvC6heE2kwNyoUEaiO1fS9UvB/883yphcM5W2NI qXRKI/cMMZtEaU8PdwYbLtZ32/DgaLoxj20p9Z3AgqkG8ch4TH1DYrjkEcrEXG9Sz/ 2ScozXl3KEa64Ok6FO7V2dwppL9ql6TxJCCYX1q55a/aYShf3yfoA/6O5mzaQip5Rs bqSM2sIZnBkWK0DmWyIjuTSOA/RyID0TfYGylt4NHcRjrWxOhmQWJzHC7NSVuvbUW0 LmGb2ibib2nvA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X2ZJK3Jn6z6tvt; Mon, 9 Sep 2024 19:56:01 +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> Date: Mon, 09 Sep 2024 17:57:27 +0000 Message-ID: <87o74wpv5k.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.001, RCVD_IN_MSPIKE_WL=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.71 X-Migadu-Queue-Id: 7B28D727AC X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.71 X-TUID: lal70LV3sMg4 Rudolf Adamkovi=C4=8D writes: >> Also, what about `org-export-collect-headlines'. It also ignores >> numeric value of :with-toc. > > Fixed. Thank you for letting me know! I am exporting only to HTML, > where Org-generated top-level menus do not appear. So, I missed it. > > P.S. I also fixed the incorrect test. Thanks! > - (equal "notoc" (org-export-get-node-property :UNNUMBERED headline = t)))) > + (equal "notoc" (org-export-get-node-property :UNNUMBERED headline = t)) > + (let ((toc-depth (plist-get info :with-toc))) > + (and (wholenump toc-depth) > + (> (org-element-property :level headline) > + toc-depth))))) Should be relative level, I think. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at