From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uHVqHCttGGQKCQAASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 15:26:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EFZfHCttGGRcBgEAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 15:26:51 +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 08B662A270 for ; Mon, 20 Mar 2023 15:26:46 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=apple.com header.s=20180706 header.b=YYQrltNz; dmarc=pass (policy=quarantine) header.from=apple.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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679322407; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dSx1gwTp9i+GKEvbsKrm7BGzLIfkU3GIpIpXNzFUlB8=; b=sV3xMiohJkjtzwUT6zAYz9ofylxW8vkS86Nh1Wo0N/TBAP3R2uGdCCqdDvJO/NlQyfYsPd ip35Tr4PdgLusNbTKMqTC7qtZ07XhM+Z8/vL41pzqdykYzcBifWB9+XVJcbu2sWJ9z/NQy wGYysqoakWKSkNLTiAzoGwLAAAI9QMT3OKnn9S+CAwqYCD4MIoSXUmyHaUXeRqqsw3nIUn A0rHiEW4OAMHfgg2PY7JS00FDn4sOpb4aItqAUZAZgz02o7bDOFngd5kcErc40Ikuy018P 66I2Th70VKdyeWbH1ncltTeoWmkYTtR91syXjN4r2UVfWoCXTPneiBSZosnkLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=apple.com header.s=20180706 header.b=YYQrltNz; dmarc=pass (policy=quarantine) header.from=apple.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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679322407; a=rsa-sha256; cv=none; b=JL4wuTzpEruwy5AuK7CFFe1wMHuBEgC5VH7J1scesSkV0eRF1ZQ86Yl/rZk7okhqCBVef6 IKlmeyTSom+JP5SvYyIeqvSo0aQQp9LD/UMRGpi6gDldOxUzA+PvpYwC+krtH2pQrD4V1N izOgV1ql5ffcYHitONXJyhNEpjLeLQ7M5CCbvzHHu0utFaS0HhNFfnRl7L+rpqYIbxkTCy YCYZtRYx8koW7LEtIJgF3CkN3jrElFJDrQSchmwRu+6kEWJBnvQscfEhjq7NMxL1bS/v6z CoK6B40hArGqe+VGsjU/YTE1cn9kQhtkEhGGq+B6T95H181vXgiN5iOkPe+zSw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peGSO-0005vX-K0; Mon, 20 Mar 2023 10:25:52 -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 1pdiXo-0002YX-Az for emacs-orgmode@gnu.org; Sat, 18 Mar 2023 22:13:12 -0400 Received: from rn-mailsvcp-mx-lapp03.apple.com ([17.179.253.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdiXm-0007Ul-NR for emacs-orgmode@gnu.org; Sat, 18 Mar 2023 22:13:12 -0400 Received: from ma-mailsvcp-mta-lapp04.corp.apple.com (ma-mailsvcp-mta-lapp04.corp.apple.com [10.226.18.136]) by rn-mailsvcp-mx-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPS id <0RRQ00ZF6TTIWG00@rn-mailsvcp-mx-lapp03.rno.apple.com> for emacs-orgmode@gnu.org; Sat, 18 Mar 2023 18:08:06 -0700 (PDT) X-Proofpoint-ORIG-GUID: uqenULApCN0u41SL9INTSzHanajGw3kv X-Proofpoint-GUID: uqenULApCN0u41SL9INTSzHanajGw3kv X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.573, 18.0.942 definitions=2023-03-09_14:2023-03-09, 2023-03-09 signatures=0 X-Proofpoint-Spam-Details: rule=interactive_user_notspam policy=interactive_user score=0 mlxlogscore=999 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303100013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : content-type : content-transfer-encoding : mime-version : subject : message-id : date : to; s=20180706; bh=dSx1gwTp9i+GKEvbsKrm7BGzLIfkU3GIpIpXNzFUlB8=; b=YYQrltNzCinnPGM1ei/RhE//YaFrhLZHl1Ph8uhaXtOejTOKNkD0u9J4nFIcgPG7+k/3 mVaeDLxLgS8+spVmbLIaHNWsZlsYaOt6QyMQjq59/pKuWmmgFKfoB7YrID060HPwwkvm +rYVVA9x75xYtw/QYVjuk4HFRf4Kg4W1vFSs/jC8m4bU9r/gzNNHsoLUfA2SVgHzCECR XkG/lHunoFd6ZTyEqV4Hd0mWOiMK2rvNVj4mJhXxj3f1uWS87qLruUyelKuq9gxqfHi/ wMubdH64hnQbS0R7t3LLesJGRWnghvzA2MLyA0p7ttU34X4BiPUBGH8Kq2bwJXD1HfyB ow== Received: from ma-mailsvcp-mmp-lapp03.apple.com (ma-mailsvcp-mmp-lapp03.apple.com [17.32.222.16]) by ma-mailsvcp-mta-lapp04.corp.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPS id <0RRQ00ZCLTTH6P00@ma-mailsvcp-mta-lapp04.corp.apple.com> for emacs-orgmode@gnu.org; Sat, 18 Mar 2023 18:08:05 -0700 (PDT) Received: from process_milters-daemon.ma-mailsvcp-mmp-lapp03.apple.com by ma-mailsvcp-mmp-lapp03.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) id <0RRQ00E00T4A6C00@ma-mailsvcp-mmp-lapp03.apple.com> for emacs-orgmode@gnu.org; Sat, 18 Mar 2023 18:08:05 -0700 (PDT) X-Va-A: X-Va-T-CD: ebf84f96aaa4d08ac07f3213c63ace9e X-Va-E-CD: cbde4e7b10d2618bf4c302c1ea75d1a2 X-Va-R-CD: a6863f03c20434dcc76fb87146f048b0 X-Va-ID: fbdcdb34-b1b0-43c5-8ed3-c9d398a5700c X-Va-CD: 0 X-V-A: X-V-T-CD: ebf84f96aaa4d08ac07f3213c63ace9e X-V-E-CD: cbde4e7b10d2618bf4c302c1ea75d1a2 X-V-R-CD: a6863f03c20434dcc76fb87146f048b0 X-V-ID: 2f22596f-c984-48aa-8735-b372c112452b X-V-CD: 0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.573, 18.0.942 definitions=2023-03-18_16:2023-03-16, 2023-03-18 signatures=0 Received: from smtpclient.apple (unknown [17.10.116.163]) by ma-mailsvcp-mmp-lapp03.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPSA id <0RRQ00B0TTTF7Z00@ma-mailsvcp-mmp-lapp03.apple.com> for emacs-orgmode@gnu.org; Sat, 18 Mar 2023 18:08:05 -0700 (PDT) From: Jonas Olofsson Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable MIME-version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: [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/)] Message-id: <26396316-1201-4D88-9D81-C87DDDA8885A@apple.com> Date: Sat, 18 Mar 2023 22:07:43 -0300 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=17.179.253.24; envelope-from=jonas.olofsson@apple.com; helo=rn-mailsvcp-mx-lapp03.apple.com 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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 20 Mar 2023 10:25:50 -0400 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: X-Migadu-Queue-Id: 08B662A270 X-Spam-Score: -11.20 X-Migadu-Spam-Score: -11.20 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: s/+xvpRimgUr Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I am trying to sort my agenda by a number of variables, but it seems that todo-state-down is not applied if added after priority-down. Instead it seems as if Priority first is applied, then the date the item is scheduled. Repro: 1. Set=20 org-agenda-sorting-strategy '((agenda priority-down todo-state-down) (todo priority-down todo-state-down effort-up category-keep = scheduled-up) (tags priority-down todo-state-down effort-up category-keep) (search category-keep)) 2. Set=20 org-todo-keywords '( (sequence "TODO(t!)" "NEXT(n!)" "WAIT(w!)" "|" = "DONE(d!)" "CANC(c!)" "DUPE(D!)") ) 3. Have three todos scheduled: * TODO [#C] Test SCHEDULED: <2023-03-16 Thu> * NEXT [#C] Test SCHEDULED: <2023-03-15 Wed> * WAIT [#C] Test=20 SCHEDULED: <2023-03-17 Fri> 4. Go to agenda. I expect to see items in the following order, since they are the same = priority. WAIT C Test NEXT C Test TODO C Test But I see: NEXT C Test TODO C Test WAIT C Test It seems the sorting is based on the scheduled time - NOT the todo state (since they are the same priority).=20 I've checked various things and priority, habit, all other org-agenda-sorting-strategy variables sort ok if indepdendently applied. I am only able to reproduce this issuey when I have todo-state-down AFTER priority-down in org-agenda-sorting-strategies. Any help appreciated. Regards, Jonas Emacs : GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0, Carbon = Version 165 AppKit 2113.6) of 2022-09-15 Package: Org mode version 9.6.1 (9.6.1-??-fe92a3c @ = /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)