From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oA3EECW5e2LERQAAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 15:24:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WD6pECW5e2JCMAEA9RJhRA (envelope-from ) for ; Wed, 11 May 2022 15:24:53 +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 7A8FD291A0 for ; Wed, 11 May 2022 15:24:51 +0200 (CEST) Received: from localhost ([::1]:46602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nomKf-0000lL-RX for larch@yhetil.org; Wed, 11 May 2022 09:24:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nomJr-0000kz-Mu for emacs-orgmode@gnu.org; Wed, 11 May 2022 09:23:59 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:39801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nomJp-0003SW-VZ for emacs-orgmode@gnu.org; Wed, 11 May 2022 09:23:59 -0400 Received: by mail-pl1-x62a.google.com with SMTP id x18so1879853plg.6 for ; Wed, 11 May 2022 06:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=wDuIPS8QX2xrQU6+/QdCce0xeH9qhU1G/JgwBQdl4sA=; b=g8InTu3xNHUcfbl1DU34P12L9D6+6y3Z20YskVSguyUCfgUboh/IKXEw50bBs2xszV PaenOKBvaePooMlLtoXwMLoYkqbWR5uOuoYNyk4K7eB9Nn+JG6sIoyyxAVa7Cx+Am3/r CjMROYZAar8JWS+CXgVyu7wiWySgBeAcwuQMGOAPNNBPT5gnBptidhD4hnjPMnbwqCdj siKtkC+kczm83SmAUZiHJUkvXK6BclATJwYufnAgSY28Y88ifTD+QPkRb8G6n0/cZNS9 LkddvhMxxHXmmIv8fKo7J8ZwwPjgkk6VZtgtkkRXlATdO44l23N0hSN/jsx9EBQoL1hR pEKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=wDuIPS8QX2xrQU6+/QdCce0xeH9qhU1G/JgwBQdl4sA=; b=5zoBnWusai6Um9aJyHE8ZMBHwIcudv/SYbXXZc0U5hAPGjgK2llUXaqzgGy0l+SGH4 v6qfvIIBsFNnknz0btBaH5Xvqn/B22Sc5tyhGa8mvLcAnl1Qxq+s4C9qfK5oilHjH4Sa uNFQVbId31hdGZSQxzUIzcZAoYDviX13HhxIKA2BmVfVL2MkAskl7894u0yO5mH4BKpN fLHbFgiRlNJH3I9ZKRb3QXt8u+7Kpa3sHBB9HdL4xOD6+mW/1FkXiIcRide9n1xNLVtF xIkK0ZBg7FJ6m9t2xHkDxR9noejtlKNZENClB6PhnKQdxP2PiK+Ae+cFKfwARVs5uYY8 WydQ== X-Gm-Message-State: AOAM531Lpc/6YoSuMq6LIn9wiZ48upS9m0Vu2mCWkoPsPWsqa3sCwr7F ctTLlVvuUpxIHsWDtULlIlHf6wxlcrA4/YkB X-Google-Smtp-Source: ABdhPJxb9+SVsgfH4HOk4mXd76Ecd4XuyabSaN64YEwZlEd80dMFiMDXxNcrst+Pt1+QR29qwyYUug== X-Received: by 2002:a17:902:e211:b0:15c:f342:2fe6 with SMTP id u17-20020a170902e21100b0015cf3422fe6mr25927050plb.18.1652275436383; Wed, 11 May 2022 06:23:56 -0700 (PDT) Received: from localhost ([66.154.104.4]) by smtp.gmail.com with ESMTPSA id u11-20020a17090341cb00b0015e8d4eb2c7sm1830630ple.273.2022.05.11.06.23.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 06:23:55 -0700 (PDT) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: emacs-orgmode@gnu.org Subject: Re: org-agenda todos list sorted by earliest deadline first In-Reply-To: <875ymd9efn.fsf@k-7.ch> 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> <875ymd9efn.fsf@k-7.ch> Date: Wed, 11 May 2022 21:24:39 +0800 Message-ID: <87y1z8i4mg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" 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=1652275491; 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:dkim-signature; bh=wDuIPS8QX2xrQU6+/QdCce0xeH9qhU1G/JgwBQdl4sA=; b=TGi5HKAH2c0JQTIdW9KtFThQBnkVRGwtoArZfNU/tFZ27MjeOk5naLpQWATtNPxn9B2e8B Khj2y1qX6n2+y4Z1W1rwBvNUsBob5aeO8HC4Njq42yiiyvWImRGHDqv1IMI+ktlLYEgcGm uSpucj+cumWFvveMNFK00h/z7/8MgbSQtT/j+qm4ZttkJ5dpPpvuSIh1OGFmWJgqYPg30Z JqG/HgJrhEbmYLke1Af97l1XLc9AQppkTLEvsDKkvsA6wYUgEHR1AfovAX7RnU2XMVMPCV tEkN4GpP1oPEEG7UVRzn5rREClg4y3CiMcTgbpGBSoWBfio53OgucBRUrdtoSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652275491; a=rsa-sha256; cv=none; b=BkqnHMaJL4e0lBE+6NS/N/fUWzhclCOV20IyHlCTzTJ50YXH0YJip2V5TeUBcrIlQ7gdhI JKAUGAJI+RNK4iW2ZlX0nFozZcieW2Lswn5jzM35OryZAt5wqn5BQNUGsUebfHiT46JhkT mC7peKPyzdf8xIdCtbXwZ4m69TL/taCW4/1uwIKtD5GMKyYVl5tRm+jI6tcJzWeLmaUysw wxcI9U0y2Yh1hKGfNm8jtNa4u1Ur23Rb0oMfajEcIJ+VwH2C5O1ARrWZXm9VViyPHaSlH5 UR7o4GDa3W1ZE6l0jw4h4rIs5wsS20U5HcxHGTh0MffQMRYOWNs9GoVP6G+fHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=g8InTu3x; dmarc=pass (policy=none) header.from=gmail.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" X-Migadu-Spam-Score: -5.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=g8InTu3x; dmarc=pass (policy=none) header.from=gmail.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" X-Migadu-Queue-Id: 7A8FD291A0 X-Spam-Score: -5.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: FBtgp6lsi1Vf S=C3=A9bastien Gendre writes: > The only option I have to set is: > ``` > (setq org-agenda-sorting-strategy '((agenda deadline-down time-up habit-u= p 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? Yes. (setq org-agenda-sorting-strategy ...) is global setting. However, you can also set it locally inside custom agenda command if you wish. See the docstring of org-agenda-custom-commands: >> settings A list of option settings, similar to that in a let form, so l= ike >> this: ((opt1 val1) (opt2 val2) ...). The values will be >> evaluated at the moment of execution, so quote them when needed. optN can be org-agenda-sort-strategy. Best, Ihor