From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 DirIDeGSnWNqCQAAbAwnHQ (envelope-from ) for ; Sat, 17 Dec 2022 10:58:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QDvXDOGSnWMxkAAAauVa8A (envelope-from ) for ; Sat, 17 Dec 2022 10:58:57 +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 E7F493EC4 for ; Sat, 17 Dec 2022 10:58:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Txq-0006Bs-Hr; Sat, 17 Dec 2022 04:58:43 -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 1p6Txj-00067v-9a for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 04:58:36 -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 1p6Txh-0006Qi-19 for emacs-orgmode@gnu.org; Sat, 17 Dec 2022 04:58:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E99C3240029 for ; Sat, 17 Dec 2022 10:58:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671271110; bh=pogjHLHtNKyhkjjKIs0JM1ccsXuH96sJws5V0qJrDuQ=; h=From:To:Cc:Subject:Date:From; b=VmoDdssDA3ubXPgYBenV3R/DbIVw7Atq+RnpAZGJ10sINazOYQ0sZp5bLyIO/+RNx PQ4S/WhzHiSHFQV3ZpZ+tqQlFqoVwXh1MLKEj+BeJsJ0tOJQMemQLUzzjb6xwTjsXn mamixI4SJbMbmbq3SV3IwdtJbfphX2xZB7qM3usioGnAub0oxiS2XZ1U5xFVVURV5B PqCR/vHg0ED5+FghrhvbMVlnJdc+LDcH1quMnYRlPUnDU7AFIEemLnaa4ZRN4dG13d IEcFct3TJYflGYQldkGP/aMf0H+jTVP+dHnuLKi6qSKVTJ281xWJugSP/pXnid/VIW 4BZtL2QTUUBRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NZ1d16l8Dz9rxB; Sat, 17 Dec 2022 10:58:29 +0100 (CET) From: Ihor Radchenko To: Jean Louis 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/)] In-Reply-To: <1d09b04459dbf1a1648d65bd6c372ce7.support1@rcdrun.com> References: <1d09b04459dbf1a1648d65bd6c372ce7.support1@rcdrun.com> Date: Sat, 17 Dec 2022 09:58:28 +0000 Message-ID: <87iliafj23.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, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671271136; 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=CjygwbR33FME4p5CS+Fe7W5tpR8PHYNnXlCZFWM4R3E=; b=cWrahzTDYGn0hPHRGEfclSCm8gY9uIdgcPCgPGfKr7Cqfn6wDCZV9tZvGHVBmBYFDxfR5X fItBCHVVDlyy0E1ZAtcsKbce9bwP3DMevrV2SThnwSNgcdS8Ad5Hq6FMzj2gYBywbcP8Es Fj4qBXSCDcJ64pyVdLQeTX9aWzqz1+ED9iQ4r6GFGVsNPKfbJDrRo4Q6ALu4BFkOkKshDm vrpZV201jXhL1BAy59/THZ0LdfhKBvCF1RSSePPU/ac4e/BZGvDOg4nOZSOYRtEVddb/gu yMRWGxCNswaCJ2Pk2l11+12ATr6u276SeYSWE0UKQ+3FOfK1kPvm+7aQJy9L9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VmoDdssD; 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=1671271136; a=rsa-sha256; cv=none; b=XIt+OYpINtdSG+OHQlmuieR/COcKtV5qAUZOix5CKQll2CncRJyWk+NjDmROVEn+vJnkF9 PdF7O8b91cH0H+NsmkwNUcTmrG1yUGxExmmKc14XM6DDyt61OpNTqCB4BIMtF+SgQSPp9s xIx10/+QLuUz8JdhutMzSvIZTChRUOeny4LuN8nEuD+Nl3DIBht8s/PMfwBV8A/yoEYgf4 j5ej5AoNIBxCxHh6lN25DvYBrX5tmHLmNNRsOI++nq8w9yHFJ3gZ0u+qrpRLtjYqAzZmPL wLmACC3bFz49VP8w1SGU02ulHyIehkklhyaJKKsb5WoVT5ElFwpVi8xtY+vpwg== X-Migadu-Spam-Score: -6.19 X-Spam-Score: -6.19 X-Migadu-Queue-Id: E7F493EC4 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VmoDdssD; 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 X-TUID: 0mQW+epp+ys7 Jean Louis writes: > In my opinion the function: (org-heading-components) shall not error, > no matter if it is called outside of the heading, it could still > return nil values if it is outside of the header. > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > looking-at(nil) > org-heading-components() > eval((org-heading-components) nil) > elisp--eval-last-sexp(nil) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > call-interactively(eval-last-sexp nil nil) > command-execute(eval-last-sexp) 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at