From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YBzBK/Zf4l/MOgAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 21:07:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CKO+J/Zf4l92XAAA1q6Kng (envelope-from ) for ; Tue, 22 Dec 2020 21:07:02 +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 2DEC89401BC for ; Tue, 22 Dec 2020 21:07:02 +0000 (UTC) Received: from localhost ([::1]:45248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kros0-0005fo-9u for larch@yhetil.org; Tue, 22 Dec 2020 16:07:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krorb-0005fc-0V for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 16:06:35 -0500 Received: from smtprelay01.ispgateway.de ([80.67.31.39]:42115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krorT-0004Cc-3g for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 16:06:34 -0500 Received: from [46.244.197.197] (helo=condition-alpha.com) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1kroqy-0002rB-4R; Tue, 22 Dec 2020 22:05:56 +0100 Message-Id: From: Alexander Adolf To: Kyle Meyer Subject: Re: [feature request] org-agenda-skip-unless In-Reply-To: <87pn3mgpvf.fsf@kyleam.com> References: <87pn3mgpvf.fsf@kyleam.com> Date: Tue, 22 Dec 2020 22:06:21 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Received-SPF: pass client-ip=80.67.31.39; envelope-from=alexander.adolf@condition-alpha.com; helo=smtprelay01.ispgateway.de 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, SPF_HELO_PASS=-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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 2DEC89401BC X-Spam-Score: -2.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: AMJpIm5EAeO5 Hello Kyle, Kyle Meyer writes: > [ sorry for the slow response ] Same here... > [...] >> With that, my dream agenda would be: >> >> (setq org-agenda-custom-commands >> '(("n" "Agenda and all TODOs" >> ((agenda "" nil) >> (alltodo "" ((org-agenda-block-separator "") >> (org-agenda-overriding-header "TODO items with a date:") >> (org-agenda-skip-function '(org-agenda-skip-unless nil '(scheduled deadline))))) > > org-agenda-skip-if accepts notscheduled and notdeadline conditions. > Passing them both to a single org-agenda-skip-if wouldn't do what you > want because org-agenda-skip-if combines its conditions with `or'. > However, you could combine two separate org-agenda-skip-if calls: > > (org-agenda-skip-function > '(and (org-agenda-skip-if nil '(notscheduled)) > (org-agenda-skip-if nil '(notdeadline)))) Ha, that's genius! Many thanks for sharing your wisdom! While I'm apparently still on the learning curve, would you agree that wishing for some more documentation around org-agenda would not bear the danger of fostering opulence? ;-) Many thanks and happy holidays, --alexander