From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KcDOJvb70l/yTQAA0tVLHw (envelope-from ) for ; Fri, 11 Dec 2020 04:56:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QD4UIvb70l+3cwAAB5/wlQ (envelope-from ) for ; Fri, 11 Dec 2020 04:56:22 +0000 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 351A094011C for ; Fri, 11 Dec 2020 04:56:22 +0000 (UTC) Received: from localhost ([::1]:49374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knaTc-0001He-AW for larch@yhetil.org; Thu, 10 Dec 2020 23:56:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kna1S-0002fj-Gk for emacs-orgmode@gnu.org; Thu, 10 Dec 2020 23:27:18 -0500 Received: from out1.migadu.com ([2001:41d0:2:863f::]:38982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kna1O-0005ct-AS for emacs-orgmode@gnu.org; Thu, 10 Dec 2020 23:27:14 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1607660826; h=from:from: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; bh=5w17rTeQdJsxAKENAmQeM/HxS5lMsCOodPwMit00RSI=; b=JlnD5h7hgUzZGwnGucFOWrPhpHI/g7dRe5cXEtX0bdddWORfrc7HH8aPg8KRjeP80CitMS Wl7vr8oUOixryPDS+aXCx1tuW1JoTQvNixZLcTE6wTyD5SEGQjyi+re8HHcbLbGuoU3HUL gFw7zWkpZMlJwCmzO4m8zQ39hTzaWRpRyUtWF8RBVLK8gX18JWhUJVRytAM/tlRgZk8iMq spj6N1d5QpK5kBaTSgM/V+98tKsc+/hJHkqmtK8iicBsp9zJDl4BBpAPaODxuH2cJgQPJG EC99BUSn/d5f8ucxQGm0eWO5HLM6uisl9K1S6eetHdWjUnKmZRKQig4wSCGNcg== From: Kyle Meyer To: Ihor Radchenko Subject: Re: [PATCH] Fix org-in-archived-heading-p when tag contains ARCHIVE as a substring In-Reply-To: <87o8j3e49r.fsf@localhost> X-Woof-Patch: applied Message-ID: <87zh2lklwn.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Date: Fri, 11 Dec 2020 04:27:06 GMT Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=JlnD5h7h; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 351A094011C X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: bQcsS6hcLSRw Ihor Radchenko writes: > Subject: [PATCH] Fix org-in-archived-heading-p > > * lisp/org.el (org-in-archived-heading-p): When called on a heading > with a tag containing org-archive-tag string as a substring, that > heading was incorrectly recognised as archived. Changed matching > against the whole :tag1:tag2:...: string to matching against tag list > as returned by `org-get-tags'. > * testing/lisp/test-org.el (test-org/in-archived-heading-p): Add test > when one of the heading tags contains org-archive-tag as a substring. Nicely done. Pushed (a03f17e49). Thank you.