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 ms5.migadu.com with LMTPS id +HGjEOnvemLadwEAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 01:06:17 +0200 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 eEaLEOnvemL1PQEAauVa8A (envelope-from ) for ; Wed, 11 May 2022 01:06:17 +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 CB883E64D for ; Wed, 11 May 2022 01:06:16 +0200 (CEST) Received: from localhost ([::1]:43960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noYvn-0004eX-9x for larch@yhetil.org; Tue, 10 May 2022 19:06:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noYuz-0004eF-G6 for emacs-orgmode@gnu.org; Tue, 10 May 2022 19:05:25 -0400 Received: from 96-100-31-185.ftth.cust.kwaoo.net ([185.31.100.96]:58210 helo=gandalf.k-7.ch) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noYux-0000vH-KM for emacs-orgmode@gnu.org; Tue, 10 May 2022 19:05:25 -0400 Received: from sherazad-lan (_gateway [192.168.1.1]) (Authenticated sender: seb) by gandalf.k-7.ch (Postfix) with ESMTPSA id 852D4E8106; Wed, 11 May 2022 01:05:17 +0200 (CEST) References: <2ED8EEDD-E19B-4F5D-BCB5-CD9DFE2B0F67@k-7.ch> <7E046240-663C-40A2-8EE4-C267E6E727A6@k-7.ch> <87zgl1f525.fsf@localhost> <87h778f5ja.fsf@localhost> <875ynof1cs.fsf@localhost> User-agent: mu4e 1.6.6; emacs 27.2 From: =?utf-8?Q?S=C3=A9bastien?= Gendre To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: org-agenda todos list sorted by earliest deadline first Date: Wed, 11 May 2022 01:00:33 +0200 In-reply-to: <875ynof1cs.fsf@localhost> Message-ID: <875ymd9efn.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: permerror client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=gandalf.k-7.ch X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.187, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, TVD_RCVD_IP=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652223976; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ydXtWv+QmTTLHoqKaWyrWSV3JzzGi6Qst5QZG4XJ++U=; b=A9YBBoaKD+IVkpRgQV1iYbdsrUUaB413n0boI8BdnTrx2+abgokvVpmwe/A3Rl3Dxw01Dk BV3R0Jl4OQt3kpNTWIrklBnU+G1oB3r+g0CLWi5cwF4xBuIx/0O4bf7x/sE5Q7OKNNi8i7 EsznNun/Y5bcfkMZepLMKgsUUXOWneOcexRio2goUfbcRp0c9cLxEOZYKDAaen1/tGYvwe EA+iKNkpnJ8/+Yuo+dTC/HJ4M3e3KBjrMNDPG4bpZuJV9a4flvsF4hU2kQ82HkIIe34OoD 4uPj2ufs7OPTCPKHLeYkGrQmfEjppYkYs0k59kyTjARpFRVEcFI5cOkKxeGXng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652223976; a=rsa-sha256; cv=none; b=n0UamNI7OiAoiVeAVipnOdBAkLh15aTgj8YB8Ztahtts9BvSXNmfp4QG25a8aWfPwFW2Vw ttaALK7cvOVlqs9IMdUq6AcERIvynEGWlP15lAt6mtGTbz77hhGBwqKUPDGXgMijkkDiEV 9KQLTyfXXu0J7NtzDoHl7x1EYegc9qpn+M3DYAfHJpjCLGt0s4XXl25t5/sjjy8RQWSrl0 JT8TAt6tQWRTKu3fMMYc+9VDllZ6TdwBcX6xQ9Yt6uglXOXbWOVVL8f+GA+Uj3EP6EbWOK zIjgCRCuqFJCHA+ireGOhrK/c0WapFIHZbrFoNMGJsCNh4krWvfGL+55CCQ2mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Spam-Score: -3.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Queue-Id: CB883E64D X-Spam-Score: -3.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: tdfQ/HshPE2E So, I updated to Org-mode 9.5.3 from ELPA and the problem is gone. Now, I get the tasks in the agenda in the correct order: Earliest deadlines firsts, on top of the tasks list, then the tasks without deadlines. The only option I have to set is: ``` (setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-up = priority-down timestamp-down category-keep) (todo deadline-up priority-down category-keep) (tags priority-down category-keep) (search category-keep))) ``` Do the `deadline-up` option will apply to all todo lists in the agenda=C2= =A0? Even the ones in custom views=C2=A0? Ihor Radchenko writes: > S=C3=A9bastien Gendre writes: > >> If I evaluate the same setq and define the same tasks, my result withe o= rg-agenda tasks list are: >> >> Global list of TODO items of type: ALL >> Press =E2=80=98N r=E2=80=99 (e.g. =E2=80=980 r=E2=80=99) to search again= : (0)[A$ >> (1)TODO (2)DONE >> test: TODO test1 >> test: TODO test2 >> test: TODO test3 >> test: TODO test4 >> >> I tested at this moment with Org version 9.5.2 on Emacs version 27.2 > > I am unable to reproduce using Emacs 27.2 + latest Org main or bugfix. > Can you try to reproduce starting from emacs -Q? > See https://orgmode.org/manual/Feedback.html or > https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9 for > detailed instructions. > > Best, > Ihor