From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aM4SB2yN3GQKMAEASxT56A (envelope-from ) for ; Wed, 16 Aug 2023 10:48:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UP7hBmyN3GS5gQEAauVa8A (envelope-from ) for ; Wed, 16 Aug 2023 10:48:44 +0200 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 8EDD949CB8 for ; Wed, 16 Aug 2023 10:48:43 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XoOF0+A4; 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=1692175724; 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=PnTqM77NbKbYviuiFB+IZPXaO6JFLt0PKt54LINCPUQ=; b=SovVsbtm6CGRHbitL9L7tjPnt+2ixOzfbRX0XdKZAkjI7/gfG5nyPNk+fDB3MlYDmNDTuz 7raFj2Ch6YqS/JNkCkuTxOns/NXz4bdkno/mLbiwPShoLkzHi2tR3395t06wjz2P1y7fzm /a+2DMqJbumi8bzB4RnSoJ/PZ0uBmYoT4L28zWfXSCDIHq+8bXFg4enLsopJRaXLXxIHYy KO4+Uy9W535lryraNqWVpkOWot0yyM9XoZsXO85F26LBYXUjiWepRcTRt9/wTdyOhmxBck keXQQP7u4+65JuqS5Jmdekqc/xEiOTgXX71zkFq1Sqtn26LlzQhj3A1UrltCCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XoOF0+A4; 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=1692175724; a=rsa-sha256; cv=none; b=ft+i9ZNUBvEaF6qpb+nDZ1Q/5GV2XReHDD/b5tJhhlgaYt6hn1xHB1pX1S98GbGg/3xgfF c4Hy1wBZmLj9rTIPVoZfk1/ZjAS/xFU7zNMpNg+qA3nlv7TDD7VqBmdzkWzT70TfOvdzqF +zbEgISsIdKeFIx2HJgMtdXJ1IzJaRKjAnB0hPHfW0Ncl2F4IMLP+TnfPTKOJphGow4Cby oEhaSwmxbKhXiHZDH4EQbPHM8yl2y8b1LoWS4p28Gt8+z3L9nDYasUuHAPaYHiBZ3iaY0a fOI+ahak6FozFPh6cxv+Zj1VsgJAJQDzBpwURgGrM1C2wbMgsZ62/PUCnu/jIA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWCBq-0002CV-3Z; Wed, 16 Aug 2023 04:47:42 -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 1qWCBo-0002CF-3V for emacs-orgmode@gnu.org; Wed, 16 Aug 2023 04:47:40 -0400 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 1qWCBl-0000J9-24 for emacs-orgmode@gnu.org; Wed, 16 Aug 2023 04:47:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 07C2B24002D for ; Wed, 16 Aug 2023 10:47:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692175653; bh=7sScUnr6aVDiZCwrfjMlxJlqIJHh3OOniuUNm/EI6+o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=XoOF0+A4LUZ+kiJaI7FY5KUzrWjCJaDH4Y8btOkZszKl6Vl9Oz7HAgD5nS9p5fN+Q cjVU7zhmaeHf4Re8l+vf2pB5VcKFcRznsePPOUwRlccE5e7mHM0ho4e+KY3W87yhva ATz9StK/DAvy4zXow+vHM96tWSRPw1Md+k3agfNX6nIKnNXQGlHpy4ALYn/zQHhm5r Uox/cqtvgFZU4cnCMhEeMAMRROo1oXkEhD99kWvB+hp/y8wAAFrxP0OV6DJKDFGoXB 6WGTj893FUHcMiYCkvIAea+fAHzpCZuzwZytuUU4vC/3AMLtLB2M4OC+RF16WVJa4v TaV1kA9KSzE4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RQhbM6KP5z6tvv; Wed, 16 Aug 2023 10:47:27 +0200 (CEST) From: Ihor Radchenko To: Rodrigo Morales Cc: org-mode-email Subject: Re: [BUG] org-get-outline-path misbehave in some scenarios when org-element-use-cache is t Inbox In-Reply-To: References: Date: Wed, 16 Aug 2023 08:47:56 +0000 Message-ID: <87cyznpe4j.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_H5=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8EDD949CB8 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -8.38 X-Migadu-Spam-Score: -8.38 X-TUID: GAP9Fe8lkJE0 Rodrigo Morales writes: > I've noticed that =org-get-outline-path= report incorrect information > when =org-element-use-cache= is =t=. This mail shows some experiments > that demonstrates this bug. Thanks for reporting! It was a bug in parser cache code. Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=27a41d418 > With regards to experiment 2, we know that passing either ="FOO\n"= or > ="FOO" "\n"= insert the same content, so I'm wondering how come > passing different parameters to =insert= which result in the same > outcome can affect the behavior of =org-get-outline-path=. The difference is that "FOO\n" is processed a single buffer modification (insert a string), while "FOO" "\n" triggers two modifications (insert string, insert another string). The latter case was not processed properly, missing that "\n" created a new heading: 1. Insert "FOO" -> FOO** 1-2 2. Insert "\n" -> FOO ** 1-2 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at