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 ms0.migadu.com with LMTPS id KGULJsaf6mF4RQAAgWs5BA (envelope-from ) for ; Fri, 21 Jan 2022 12:57:58 +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 8C2IIsaf6mEKhgEAauVa8A (envelope-from ) for ; Fri, 21 Jan 2022 12:57:58 +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 36EF0302A6 for ; Fri, 21 Jan 2022 12:57:58 +0100 (CET) Received: from localhost ([::1]:49730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAsYG-0004rb-QO for larch@yhetil.org; Fri, 21 Jan 2022 06:57:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAsQh-0002lG-0y for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 06:50:16 -0500 Received: from [2a00:1450:4864:20::131] (port=38491 helo=mail-lf1-x131.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAsQa-00036M-2z for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 06:50:01 -0500 Received: by mail-lf1-x131.google.com with SMTP id bu18so33146612lfb.5 for ; Fri, 21 Jan 2022 03:49:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=gQXPE80/BhY5+Kjnq+LCgvAyBe5NLtKQCoCr0Bf6ooo=; b=YWoLhosV6adVr4F74PQgh2BU4/FJ5e4bGQFRojotIbN1rWigl024X4eK+XWpYC5yFm X+37x+DQI08CQ9GQD1UXP/kXyiu/mDX3+3Q1rVXJfT3j096tUILFf+gvqQeT70ixcQAC FY6/qJ5otG0pkGfns/EgaSF+0PK7OL5ZIjeQfDko7BtbNsIl4+9z4gGWYBfseOvacWcn 5DtrqNh84B+N7MALCB5LTLuaZNwP3lWaLgNalbESaKfh6oPK78FDvraVEJDHpb7S63Iy vnIj8i3pPh3Bh4UigDqoHovNLi7Nw2tLATdAT4d6yEkiMbg7bfeT81axQgUccxlEhBWP 9tqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=gQXPE80/BhY5+Kjnq+LCgvAyBe5NLtKQCoCr0Bf6ooo=; b=bJjezpTMrK4+ejMVwLuCXP7Dvq6RBJErB5jTiV/uDtKx2Ynz47FF6Qd+F2NGrSeWa8 z7BOUkz8Wfnqu+Urdh6E+zFusW0JCgY7Glx73y76y738nmH0zYIBwF1RHR8rHP7D18Jb e8tMxV3xuMXxQn8i1IuLnfuNwBVpfO8kpu+fyy+KKSNBSntGKbzJSbUtQKMdqs+B2eft R/loCsiJ6Hf+RQRjYrpejaE0iz8O3xIqpQwyLpyyQekmABrkuJh2bQ5jBIt8OEGX6eTz 4CC9tN7xoCHLOeC/zS+muCTlw6jLNinoJwbf3D0yfeJkzhKwzG5bB+5PO3mTEpifpoHW NICw== X-Gm-Message-State: AOAM533k8nwn+DzrOfYnv8m9THmARjOqh7veu/xGHQVaa/xg9ksnFzpq z0mkzu5L33AtA2SJVGWVXzI= X-Google-Smtp-Source: ABdhPJzFJZMTc7nYSrX7VqvjYmNopB8h3UZqp8KbwCkVZCPRJfO4cFfr3KSh/257yRs7NcIdOPQwQw== X-Received: by 2002:a05:651c:1066:: with SMTP id y6mr2886488ljm.276.1642765797680; Fri, 21 Jan 2022 03:49:57 -0800 (PST) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id t25sm230731lfr.86.2022.01.21.03.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 03:49:57 -0800 (PST) From: Ihor Radchenko To: Anders Johansson Subject: Re: [BUG] org-element-cache: The inherited property is set wrong In-Reply-To: References: Date: Fri, 21 Jan 2022 19:54:25 +0800 Message-ID: <87y239z4lq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::131 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=yantar92@gmail.com; helo=mail-lf1-x131.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642766278; 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=gQXPE80/BhY5+Kjnq+LCgvAyBe5NLtKQCoCr0Bf6ooo=; b=BIDmEf7KzzDqe2LoyKPBL01Ezk/h9PgX85I4VBN353yS62M6Kkxu10gbpkb/Try/zXtY4u 4qwLWT3yR0YM+QaLxHEoEsn5n7FpVl1NcxMat6HXKGHQ5s7T63QhuoYdQ2mHwhKTTIq+fA os/Wow9SCEf9djK0rB4GObhW5cF1+kQMGZMq87h/Mt1+Z2yp+e5+ETDZUV+4yDZxNY2Uls HcKTR72yEaubAheKjQ6RPvd8rzWc3HnVZtl5zftuqClYTpAnwH+hQ8WntKFJQG6vOe2BCA npSbbUc9zbfUzvQzEzMJXY8zAKIF6Y+FGprwbVmdO+6mYlGNvAgzmCkXImYblg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642766278; a=rsa-sha256; cv=none; b=lR7TqSBPwJ8MDNr89bTl+CRE/PVd7X+ObEazyQrLqcCfvuHiz5CCP84CWF0AMaC9alhBmI yjih/zA37z0dkaC3gH2Nj0w4Y+EHHXQIfUTALyFWdlxUhf1ZhETxNfGwTV+Yju3PdmvzQv 6+HrX1ZTjXDfppIHxzzORcEK6R945qngU8yd7e9vxw5Nkurh83iTSixYIPIKWvC7a7are4 Gr7FAqBScGeo3//PCSvH56vqvburHrlYuc3xcqwO2sxCMDAshDxDjjb+E643E7gNVQ7PU8 ocVVOYjQchQb0wH2O6facfRAvx0M8h6J624V68hngKQjhG7JNJze1PtZS5JxeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YWoLhosV; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YWoLhosV; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 36EF0302A6 X-Spam-Score: -3.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: q8KkfYDhBuGg Anders Johansson writes: > Hi, > I had some trouble with completing tags, where the already set tags > were wrongly identified. I have dug this down to a problem with > caching. > > with org-element-use-cache=t and org-use-tag-inheritance=t > --- Org > * headline 1 :tag1: > ** headline 2 :tag2: > --- end org > > ... > A solution that seems to work for me was to change > (cl-copy-list cached-tags) > to > (mapcar #'copy-sequence cached-tags) Fixed. Thanks for the detailed analysis and the solution! I have seen this bug myself in the past, but was not able to reproduce reliably. Best, Ihor