From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EPNDBL0eR2BrfAAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 07:07:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6JESAL0eR2BbCgAA1q6Kng (envelope-from ) for ; Tue, 09 Mar 2021 07:07:41 +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 579E725B73 for ; Tue, 9 Mar 2021 08:07:40 +0100 (CET) Received: from localhost ([::1]:60794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJWSx-00009r-30 for larch@yhetil.org; Tue, 09 Mar 2021 02:07:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJWSa-00009k-6y for emacs-orgmode@gnu.org; Tue, 09 Mar 2021 02:07:16 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:43867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJWSY-0002yk-8Y for emacs-orgmode@gnu.org; Tue, 09 Mar 2021 02:07:15 -0500 Received: by mail-pl1-x632.google.com with SMTP id d8so6088781plg.10 for ; Mon, 08 Mar 2021 23:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=r3vnmjid6dZ8JvioonMZqVRMgY1Ki4zAZnhfjhApsCA=; b=CwRYiyo4j7ijSeWC2NHpv1pyzZeyZerENA2deYyTAxRm0olaXuGEjdNoq4/1TZWMv8 W4ghi8bP4xIHppoQRT/+SvfxUofH924pq9m7FyPTjwS1AgvYApm5ZnOX3LOlbAAN7xzn sMXaMWrD4qLcILBGYkuhRaH4kxcILtg8uxa0GHNHueRM4fDbcoejiIng9pwCOwaXOz94 XzsTYP81bfXcv0fNaqdU5mh7qeDqVw0j4nf9/QvmcpZzXiX71IZS4a1YqhSOXEV2R5Dh LHsPu+SSnqRQ/9Ui85U/LzatAM6lQ7FGProbrlFGOzmRb/jn4N5nWGpKXtZApkGpC2xP kZVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=r3vnmjid6dZ8JvioonMZqVRMgY1Ki4zAZnhfjhApsCA=; b=i0n47CNj5jCChHVUQoBMt9Vfl3TLxDcA9hWtD7zs1pb8ekf3RAksABfpABZMPD9UBI QnTr1TAM2eRwBFdYdJTsSf9iWJFwM5bWlLxPtJQYaSB6ZnZabKrwoUsF7iy5ZUGmhelt 1j4lf55vPvgp/ibLu0BUh7r1nJZmLTOrxXJSnxPMy2cJq8xgJtkxhbhs6gFuHNSE4QR+ /gxDd5KMjQKMvnZ9owJ02U3mBX90D6Xjy/ZD3zGxiWq/I0csrcfjyzT2koBtujT4j/ag vfqeHMm4hYELxvpd9IOrbwEkL+P09fBt2V+SAIMcGBvqj3Kj7vxKLcEmxQc10CeNM2Rh KFXw== X-Gm-Message-State: AOAM530op+zgvB2+afi861Lp32Dmbi+up6HHksbesDVRF9t3SWO5Pq2O 5Q+7sPnlpf4hgNcAvCH6e5YO+iDxG6Y= X-Google-Smtp-Source: ABdhPJzCn2TPfGX4y24D3hs9BAg7FBfa2BeRcEGuxyDOpkaAty3ZvPsGVtBliq0cxAIqdABHM78qig== X-Received: by 2002:a17:902:b7c5:b029:e6:1a9f:5f55 with SMTP id v5-20020a170902b7c5b02900e61a9f5f55mr9804297plz.57.1615273631595; Mon, 08 Mar 2021 23:07:11 -0800 (PST) Received: from localhost (157-131-78-136.fiber.dynamic.sonic.net. [157.131.78.136]) by smtp.gmail.com with ESMTPSA id b3sm11118617pgd.48.2021.03.08.23.07.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 23:07:10 -0800 (PST) From: Jack Kamm To: Adam Spiers , org-mode mailing list Subject: Re: overloading of internal priority calculations in agenda In-Reply-To: <20201202142053.zexzdpmyv4ear3zc@gmail.com> References: <20201202142053.zexzdpmyv4ear3zc@gmail.com> Date: Mon, 08 Mar 2021 23:07:09 -0800 Message-ID: <87v9a0rejm.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=jackkamm@gmail.com; helo=mail-pl1-x632.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615273660; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=r3vnmjid6dZ8JvioonMZqVRMgY1Ki4zAZnhfjhApsCA=; b=dAmeVhpG+PBxsAEt/Ey/FCSIWEHJCZBr4Hxul5RX8dpGTKpZM3ollpna1AO6bXNohZF7sG JUWmg5XaHGiMVK5G8jRKKd3QgkuenGTZXSU9fUF4HbjUBEPA70cYgZFmqNk8/TFLNJ+88H M6flahc5f44ogyh8CEu5c9dcf38BZqaiNxG/gAu6dZy+3hffV/SVhd1o2ILmxMeV34yEKC LxK5UeethjfUGglATmTl+MTMdpWgO/ZVNhqh7+OhWmYhWud+SR/SNyzsNHoCm/fLD+4jfM LHRG4ipkFn4mHJx1vlreXjPqBBKem7XnHiTssiJXUJV/7XV12jiboR1znaFlug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615273660; a=rsa-sha256; cv=none; b=cKJBrP3B3UDnaX12D/jsU96fyLTgMS7Ec8r+YYyEbYNw/HsmXs/taNuEFYIGaYnCgF3kP+ JekOBIJOav+qi0MX2d2sFAEvtFoOfyQ1WaIF60AH2btsreHoOwzhb6Vn9K0SSR4sS20UHR hF8ygYgC5DBNgEWLYimndKmyOC3CJQhP6YuIUkiFxnvCVBauSnA32G4Q8QJrXgQBitTkOd YPAyHqoSoRSJRlUJmiHye58lhqgsQWWQ1pybLJwzO8qPZoA15mo+0Czk9/PGZZmhdT/rAo vqbdD8IqliGyawm/AMgeeh6NNlg+wvHbdElkpqVgrcUHIn9a3JTmzBbqOummBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=CwRYiyo4; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -3.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=CwRYiyo4; dmarc=pass (policy=none) header.from=gmail.com; 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: 579E725B73 X-Spam-Score: -3.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: WcujKS2/iD25 Hi Adam, > I further noticed that this overloading of the internal priority by > including timestamp and habit data causes disruption to the behaviour > I imagine most users would expect from `org-agenda-sorting-strategy'. > For example, if you have `priority-down' as the first entry in the > `agenda' section and `category-keep' as the second, then differences > in the SCHEDULED timestamp are included in the priority calculation > and can therefore prevent sorting of two adjacent [#B] items by > category. This seems like a bug to me, or at least breaks the > Principle of Least Surprise. I just ran into this issue you highlight here. In particular, I was trying to set the org-agenda-sorting-strategy to (priority-down scheduled-down) i.e., sorting by priority (highest first), and then within priority, sorting by scheduled (most recent first). However, the fact that the priority includes the scheduled timestamp makes this sorting strategy impossible. I agree this seems like a bug, in that it contradicts the written documentation as far as I can tell (for example, the *Help* for org-agenda-sorting-strategy mentions nothing of the fact that the priority includes the scheduled timestamp, and I don't see anything about it in the *Info* either). I imagine that many have gotten used to the default behavior of sort by highest priority, then by earliest scheduled timestamp, but we could keep this default behavior by adding "scheduled-up" after "priority-down" in org-agenda-sorting-strategy, as you allude. Jack