From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Change in order of tag collation from #+filetags plus heading tags [Regression 9.1 -> 9.2] Date: Fri, 04 Jan 2019 14:15:56 +0100 Message-ID: <87ftu8va0j.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfPKW-0007Vx-Bs for emacs-orgmode@gnu.org; Fri, 04 Jan 2019 08:16:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfPKT-0004Ma-8w for emacs-orgmode@gnu.org; Fri, 04 Jan 2019 08:16:04 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40245) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfPKT-0004Jg-2u for emacs-orgmode@gnu.org; Fri, 04 Jan 2019 08:16:01 -0500 In-Reply-To: (Kaushal Modi's message of "Thu, 3 Jan 2019 18:40:36 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > I have noticed a minor regression in the order in which Org collects the > "ALLTAGS" tags at point. > > Here is a simple Org file to reproduce that issue: > > ===== > > #+filetags: a > > * Level 1 > :b: > ** Level 2 > :c: > *** Level 3 > :d: > > ===== > > With point anywhere under ~* Level 3~ heading, evaluate: > > M-: (org-entry-get (point) "ALLTAGS") > > > In Org 9.1.x, the order of tags returned was ":a:b:c:d:". > But in Org 9.2, the order becomes ":b:c:a:d:". > > So, earlier (Org 9.1.x) the order was: > 1. tags from filetags > 2. tags from parent headings in order > 3. current heading tags > > In Org 9.2, the order is: > 1. *tags from parent headings in order* > 2. *tags from filetags* > 3. current heading tags > > Is this switch of order expected? The order of tags is unspecified, either in the docstring, in the manual, or in the syntax. So it doesn't really matter. Feel free to provide a patch if it bothers you. Regards, -- Nicolas Goaziou