From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EKYEIu/wxGWfLQAA62LTzQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 16:19:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EKYEIu/wxGWfLQAA62LTzQ (envelope-from ) for ; Thu, 08 Feb 2024 16:19:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KHzpQau8; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707405551; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=B13aXt1N02IpqevPycq9eHjaA4Vga2bwcgV4XtccD+s=; b=Kmmk9uTQgiMQTEnf6XOBH3z1K7YlOOIKRSMKyNQjVxwoZiSdZ50MQrR94i0SiP4l4uR7q8 qpvvTWoBOEDq85LefZnMXESD48mlBrND1HV36k6MTGZK6AL9HT/FHwb84AZ425JKHRQs5/ XSYeAnFR7MfgQXhOBDECK6qXdU554oWM6RTmYNxA+dIEbp74M5Gxl3i1UZe5IwlWTZAD0x RZ/v2UZrprg1Ma6e38bZc7jd3JOlQwwD7GJ1ncoQw9jfxijEv59tQGCq0DzSaSM68ksDqE kX8WCtH/QphGYxg40Ul80XHuEaLbclMBV4CRDA3v3rTt+Smgx3451vQ3ll1/FQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KHzpQau8; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707405551; a=rsa-sha256; cv=none; b=G59uzxqj+olVXbAkCdbmdtST4MLxPRBj0513uuxtzxmgq7wXA4PzGKNv1/k/mMqtezE4Ao pXXbq2axbP3gj0aXM4NmweHkvzyXDwX0f8/Bptua5wHVbWUvApxBan4m4eNgOz9+98FMRj MROC4+jdqVCgfja+LBryJB+ySed9cCL1yFudZBOH9rnPkL9vDr9fmaIfgiATFSse4K9j4o I6p1jOTVeRixxDYrgNyEGhL8H2kqn7iUxX0tUO78Z/3seuUWQEFoFJP91LupqlsXPdmlLX RPiLaItFfKni4cyM8I2RBm+4pvxH8YYVLH7Buh6Lrz5pO5H+7jhXFULHXFxDaw== 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 730EB3084A for ; Thu, 8 Feb 2024 16:19:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY6AN-0007HJ-Al; Thu, 08 Feb 2024 10:18:19 -0500 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 1rY6AJ-0007Go-PK for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 10:18:16 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY6AH-0000bB-EB for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 10:18:15 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9877A240029 for ; Thu, 8 Feb 2024 16:18:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707405490; bh=l5a2haLd4awQTG3QLlHJ55/TsF/xageirG29C+79QfA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KHzpQau8wkFRw7X1+TQBiE8edZHdQqcLcsPHnB64MCn4yfqwRpmkdYL+kRkf4/4to 0QIabR8X150vr7rpsrstKDnLR35PEdjRY1mZmdUrMaz+p3aFVBHnaI3viWAJOJwSmV 1LrJxz83dzN3y3c/GmBhuPmBHj2j1+/8/6E0NcvVZ/Ly3llx7E1pyeWTcmaZibXZdj JYngHmplEAsgyQ5ocOx/a15zkgw4mzAdK4Er9db1KWL+01fDOgLc+GiKjm3xnbJOVJ IiBr1fl4d/Sg13XVvh8GJoN/Rb4OpCELJGehYyGo796FbK609umDc4F27Zt+E5Sa68 ZWCYiKQpbPt0Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TW0wx4mqMz9rxN; Thu, 8 Feb 2024 16:18:08 +0100 (CET) From: Ihor Radchenko To: Chang Xiaoduan Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-num-skip-unnumbered is not respected if a org-mode file enables org-num-mode on startup [9.6.18 ( @ /home/drcxd/.emacs.d/elpa/org-9.6.18/)] In-Reply-To: <87jznf7gqo.fsf@PWRD-20230207OU.> References: <87jznf7gqo.fsf@PWRD-20230207OU.> Date: Thu, 08 Feb 2024 15:21:40 +0000 Message-ID: <87v86zyoaj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: -9.73 X-Spam-Score: -9.73 X-Migadu-Queue-Id: 730EB3084A X-Migadu-Scanner: mx12.migadu.com X-TUID: yOp8vKkjNDvA Chang Xiaoduan writes: > I have been experimenting with org-num-mode recently. I find that if an > org-mode file enables org-num-mode on startup by adding: > > ```emacs-lisp > #+STARTUP: num > ``` > > and if there is a file local prop line: > > ```emacs-lisp > # -*- org-num-skip-unnumbered: t; -*- > ``` > then org-num-mode does not respect the file local variable, i.e., some > headings with the `UNNUMBERED` property set to `t` still get their > numbering. This also happens for `org-num-max-level` if it is set on the > file local prop line. If I toggle org-num-mode after visiting the > file, then org-num-mode respect those file local variables. This is known. #+STARTUP options are handled before buffer-local variables take effect. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57003 Handled. > What's more, I have tried to remove the `STARTUP` keyword, so I can > enable org-num-mode after visiting the file. However, without enabling > org-num-mode on visiting the file, Emacs reports those file local > variables as unsafe, though their values are safe, according to the > documentation. I guess it is determined as unsafe because org-num-mode > is not loaded. Yup. Fixed on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=bfc0cb372 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at