From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id hWCIATyVKmRaEgAASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 10:58:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2N1nADyVKmS4VQAAauVa8A (envelope-from ) for ; Mon, 03 Apr 2023 10:58:36 +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 AF57B3B269 for ; Mon, 3 Apr 2023 10:58:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjG0b-0007zJ-VA; Mon, 03 Apr 2023 04:57:49 -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 1pjG0X-0007z2-Mu for emacs-orgmode@gnu.org; Mon, 03 Apr 2023 04:57:46 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjG0T-0000GH-8i for emacs-orgmode@gnu.org; Mon, 03 Apr 2023 04:57:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CA829240257 for ; Mon, 3 Apr 2023 10:57:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680512258; bh=m65v+vRr6401QdDImDWFBV/t8xy6bkehLRWx5efa3oA=; h=From:To:Cc:Subject:Date:From; b=OsgF0HsWrGYQv5cSmpbvjyN5NK7v02NQlPesvhpfoiXPk5deEBw3h9z0s79PIjAdS oXuQOz8PVvtTR+Od+f8zHMv4YIvzeYJ47utE7NggZkgS3qsqH9roKbHHq+/pe/wISD KcjD5Rt87kUnf2wiOCgh16YhjUjmQqCMN86OZi9o8q8G5Ol2ejU5UdJDoFPuaNHiOW X4NDymX+1OO5p+3UmmR9d8NDTnnIYg7VGmW9N3iq38ZHKcMUC9WDW+o57vPY0m9767 t9UmGraI6kC6pk+oiiNZBzTsNsjtvXyTT8xlcEkFSR85wf/DKb7GqUwIuzI2AjxjyY Pii91nynThbug== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PqlCP3py4z6tn4; Mon, 3 Apr 2023 10:57:37 +0200 (CEST) From: Ihor Radchenko To: Samuel Wales Cc: Jonas Olofsson , emacs-orgmode@gnu.org Subject: Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)] In-Reply-To: References: <26396316-1201-4D88-9D81-C87DDDA8885A@apple.com> <874jqdowiz.fsf@localhost> <87ileraeqg.fsf@localhost> <87cz4yxtia.fsf@localhost> <874jpymx99.fsf@localhost> Date: Mon, 03 Apr 2023 08:59:54 +0000 Message-ID: <87fs9hbat1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680512315; a=rsa-sha256; cv=none; b=E3QVz+H2oKjduXoGMzoaBsbeI6ygOEu2Jcq7ztEtS0beOvneFM+WF69TAPNvodB4flmXaP 2+b7mzK3f/vs0MUsthtmhzqiTh0wceCJ98+Qj1ocqgw1ElpBT03b7W6soGHjI8SXvMUDKR QnGYhf/qjCbdVsrmOa9rAQ65J9Hs4IFYXNto3pzJxtpDHAu80r0pmOd0gPyK+wOkIoHC3/ cnldmLrK/jCsiRJtwD+n3ZMW99gm+v864u/KDCUQslJ6PcRgEY+RE4wqGnbMrmw3uwtBvC m4abpfbta6zPbistCgHHh+K2lPA2RljAUuUG+SEUWec0FNT/NR9IFX7cR9rnsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OsgF0HsW; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680512315; 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=SnlRhbTRaKiEUaiN25vCfd2ii52wEFCJnrk2w6SuDGw=; b=FStqPTGBCOSLwQysKtwsLMF5EbzfPaRv7mDbUYxVkMjMwpzfyH9VXG/ZCk2t7dkm2L/ZN8 7KTMMk908x3DIK1B8DMpESeIICmJkVz7ExumlqDP+Sz2wAIFaQkcNYajD9GBzCmmiMkPq1 v0wkgM9RFhdNVywWfapeuc1Ey3BO2oqr6MQT3hBp/QlT0QXpfq0NuQ6eFeRU4AU2EhebTy kKjSevHqz/gr/+/4f7cofPIKK0qwia1TdJRwAZEuW3tsjm4kx+kkWH03x7qQ4oY9ZZ4F93 hXGCeiGW9fU5Pi8FxyjY/jno4qyySz5kcWBV20nL/5++lQZJK12q1l0xlJeEpA== X-Migadu-Spam-Score: -4.73 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OsgF0HsW; dmarc=pass (policy=none) header.from=posteo.net; 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-Spam-Score: -4.73 X-Migadu-Queue-Id: AF57B3B269 X-TUID: rNyWsgq1JlpX Samuel Wales writes: > i was not intending to talk about that xkcd. there has been confusion > about 2 definitions of priority, and your urgent will likely help. if > the docs referred to priority cookies, your argument is good. i did > not think every reference did incl code. Well. I am pretty sure that the docstring in org-agenda was talking about agenda-specific priorities. However, it was against Org's terminology even 15 years ago - the earliest time I can track the discussed docstring and manual entry in Git history. Now and earlier, Org manual introduced priorities as [#A]-[#C] basically everywhere with a single exception: when talking about agenda default sorting "Within each category, items are sorted by priority (@pxref{Priorities}), which is composed of the base priority (2000 for priority @samp{A}, 1000 for @samp{B}, and 0 for @samp{C}), plus additional increments for overdue scheduled or deadline items." Notably, no reference has been ever made to this statement in the manual from `org-agenda-sorting-strategy' docstring. So, the terminology here has been confusing since forever and the only clue about agenda special treatment of "priority" term has been in the manual, not even linked to `org-agenda-sorting-strategy',- only to the "default order" of agenda sorting. My patch does not affect the default agenda sorting, so the previous manual's claim is not contradicted. My commit also solves the terminology confusion. Thus, I observe no regression and see not why we should not be free to adjust how agenda treats 'priority-up/down in `org-agenda-sorting-strategy'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at