From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IE5pLWhZnmMaBQEAbAwnHQ (envelope-from ) for ; Sun, 18 Dec 2022 01:06:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GAGDLGhZnmPMegAAG6o9tA (envelope-from ) for ; Sun, 18 Dec 2022 01:06:00 +0100 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 4E473297F8 for ; Sun, 18 Dec 2022 01:06:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6hBB-0007PB-V6; Sat, 17 Dec 2022 19:05:22 -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 1p6hBA-0007NX-5n for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 19:05:20 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6hB4-0001bq-Jc for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 19:05:16 -0500 Received: from localhost ([::ffff:102.87.40.167]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000055D55.00000000639E593B.00007A95; Sat, 17 Dec 2022 17:05:14 -0700 Date: Sun, 18 Dec 2022 03:04:40 +0300 From: Jean Louis To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Bug: Function org-heading-components is not resilient [9.4.3 (9.4.3-elpa @ /home/data1/protected/.emacs.d/elpa/org-20201216/)] Message-ID: Mail-Followup-To: Ihor Radchenko , emacs-orgmode@gnu.org References: <1d09b04459dbf1a1648d65bd6c372ce7.support1@rcdrun.com> <87iliafj23.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87iliafj23.fsf@localhost> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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 ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671321960; a=rsa-sha256; cv=none; b=NRKc7h8Y2UU63KTy5ssK0YKwAVxbOgQen54BgEOSd/Wd0NIonnLAOF6UoTrQQ5tetzeUPZ m+ygqI4cLR0vGwxzdWuHv5CNyaEnTSfjEVAP71UF5oaEMbd4bUgIPXccegQEX3CAQvIeMj uHgv41lxd4QEh+2jTD53YPNTBskZ0vUSc9JCS6QWJekcS203Omt1KcwvWvjTSX9h5qfdJV 9Kai/7nyBl202hPO5dvrWm7Q3Q+IZPdmp2TnjkhwpTQGHFE1mtj5Ng4C6QDkSwaTEGnF6D ypBfCujI0Gam7GrEZ3JP5DO2rqMtwuCYU1SWtlV/xA3Q9fLMC1bnl4YjKkZ7mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671321960; 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; bh=S5wQi1QIRbhb/bVlahtb5k6J6CuA+j9bpVY+sGXK3GE=; b=fTJkeZmvaNB1Kgt9soMDNz38edcemVGJyKtjhqSxf8m7tpeZS9RkYmYTd/16nDWXZFz4M3 n3QXtT9s16tShbsMhLvD6KOu1gJgBphMI7HgobpAtczkx7AtcHtm5rKKJi9SsHev/GztAL szQuJWQfcqXxW6CHpZAQHim7p+85lA892/tgyDDJ6C96+Irveltbzz3Qf8aPTao1cFz6iI YVOSLOYM5l5l2w4NLmmLHGS5A+1z4Ppt9HdwWsJxF8IxQjgrsV9NoENSV4d8VPEP7qie2r KT4vI+Xk7bZe0quXAGwzS5AfMCMYgkYEnN7Syf3IAl2sAfpDV9F+OOCL/FYdJw== X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none X-Migadu-Spam-Score: -1.57 X-Spam-Score: -1.57 X-Migadu-Queue-Id: 4E473297F8 X-TUID: Dn2owAWXyq1V * Ihor Radchenko [2022-12-17 12:59]: > The error looks like you attempted to run `org-heading-components' in > non-Org buffer. `org-heading-components' behaviour in non-Org buffers is > undefined. OK I can change it for my personal use, however, consider that function `org-heading-components' is useful to parse headings of Org, as Org markup too often comes in different other modes, for example, when I write e-mails, in mail-mode on this mailing list we have too often Org markup. Also consider that many Org function work outside of the Org mode, I find it not consistent by design. for example, create * Heading and run M-x org-id-get-create -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/