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 ADJPKSq2cWIrSwAAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 01:09:30 +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 EFhkKSq2cWLhVwAA9RJhRA (envelope-from ) for ; Wed, 04 May 2022 01:09:30 +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 5CBE13D197 for ; Wed, 4 May 2022 01:09:30 +0200 (CEST) Received: from localhost ([::1]:47496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nm1e5-0007D2-0m for larch@yhetil.org; Tue, 03 May 2022 19:09:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm1by-00079p-U8 for emacs-orgmode@gnu.org; Tue, 03 May 2022 19:07:22 -0400 Received: from ciao.gmane.io ([116.202.254.214]:57680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm1bg-0008Q1-Rj for emacs-orgmode@gnu.org; Tue, 03 May 2022 19:07:17 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nm1be-00040p-G1 for emacs-orgmode@gnu.org; Wed, 04 May 2022 01:06:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: TRS-80 Subject: Re: Agenda without todos only if there is no other timestamp Date: Tue, 03 May 2022 19:06:47 -0400 Message-ID: <87mtfy43nc.fsf@isnotmyreal.name> References: <2022-04-05T10-40-55@devnull.Karl-Voit.at> <2f5cd7ff3210beec704fda7b38d180a5@isnotmyreal.name> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Karl Voit Cancel-Lock: sha1:j6nPNp4fEaErhkaFz2EyxYlrudo= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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=1651619370; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=qd8N5c1U4LfIcut2U++AbWKE9LwdvCF9apLgpy/h8x0=; b=e1Fx2xmsD8kwut14a6aRh5Ij53z2fK6Qi6kTvhmNvSkCooUJdhCBv4EJzNw2QlBnho80dZ YXzTVd3zwAzRYElteQAkH4fe5r1qCNi04Qn7LG2fIVecWaKVmjFXuDgMbT/cylSHIRPg9n b5QS3/HOMKV3sbumuTVUP20OZMNTDNkbKv2nAk6oS9ZGkQn04Qbt1uXUi7HRktaKZkCiPF sWc/pcUpWZpEQkTJeaARj64f/0AUD2tEKtg0CsNqw5DJNBvj3jZEhzQmV36EhnI3k2vFYE yEWsg9LztF6u8bHpXh8C03slyUE0eGZt2Sdfm37M7KxJih2ZoseW/rYs8kGLNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651619370; a=rsa-sha256; cv=none; b=Z6bNuxCP0kbUw9kOdmaYRIP2l0KjA87DHLzVatjbkl6b/771FcAisAsQLmiKP9dvRKAHX7 0WXAfyMIYVz6UcNrFIT2LTcHe02BnXiWpwtFZAXPXiXpic+PzEW0Pjqs1GSDEC1SdQinJC tO2RRi0Ch3Y3zg/9H7JnErdobM35mDY7YP49YXttbmfmBYpRThyF8dCFQRE2fB/CbqC1EP /Hx6JWhltteE9WZxg8ID2qEakl9QzTEOxsy6aCbtUjpYdmOIE9yowQHs0pKXL0t5Ox/bPT SfRyaXhltu3ARAOdfCDDP7mI5pQc3bPL5XZBM16dn51nSQh6sGv18l7u2RWBDw== 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: -2.78 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: 5CBE13D197 X-Spam-Score: -2.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9XSklLwpd23Y TRS-80 writes: > On 2022-04-05 04:48, Karl Voit wrote: >> Hi, >> I've got following custom agenda for exporting: >> | ("n" "no TODO events +180d" >> | ((agenda "no TODO events +180d" >> | ((org-agenda-span 180) >> | (org-agenda-time-grid nil) >> | (org-agenda-entry-types '(:timestamp :sexp)) >> | (org-agenda-skip-function >> | '(or >> | (org-agenda-skip-entry-if 'todo 'any);; skip if any >> TODO state is found >> | (org-agenda-skip-entry-if 'category "errors");; skip >> if any TODO state is found >> | (my-skip-tag "lp") >> | ))))) >> | nil (,(concat my-org-files-path "agenda_180d_filtered_raw.html"))) >> (don't mind the stupid name - I may fix this as it is misleading >> here) >> This results in an HTML file that contains my appointments without >> the tasks. >> Unfortunately, I sometimes seem to schedule appointments within open >> todos such as: >> | * NEXT talk with Steve about the project X >> | SCHEDULED: <2022-04-05 Tue> >> | >> | - [X] ask him for a time-slot >> | - we settled for: <2022-04-05 Tue 14:00-15:00> >> Of course, those appointments are lost in my agenda export as >> specified above. This is a bummer and I want to fix this somehow. >> Tasks should be omitted only if there is no other time-stamp than >> deadline or scheduled. >> org-agenda-skip-if lists: >> | scheduled Check if there is a scheduled cookie >> | notscheduled Check if there is no scheduled cookie >> | deadline Check if there is a deadline >> | notdeadline Check if there is no deadline >> | timestamp Check if there is a timestamp (also deadline or >> scheduled) >> | nottimestamp Check if there is no timestamp (also deadline or >> scheduled) >> | regexp Check if regexp matches >> | notregexp Check if regexp does not match. >> | todo Check if TODO keyword matches >> | nottodo Check if TODO keyword does not match >> How is it possible to accomplish this? I think this would require >> something like "Check if there is a timestamp (except deadline or >> scheduled)" which isn't available yet. >> Any ideas on that one? > > I think you will need to write a custom ~org-agenda-skip-function~. > I realized there is probably an even easier way (no custom ELisp required), simply by creating a separate child heading for the meeting, which should then show up. Assuming I am following you correctly, how about: #+begin_src org * PROJECT Project X :PROPERTIES: :CATEGORY: P:X :END: ** PROJECT Discuss 'topic' with Steve *** DONE Ask Steve for a time-slot *** Meeting with steve <2022-04-05 Tue 14:00>--<2022-04-05 Tue 15:00> #+end_src N.B. the indentation levels. Couple notes here: 1. If you set CATEGORY on the parent, and have enabled inheritance, the 'P:X' should appear on left side in your agenda, at the time of this meeting, giving context. The 'P:' convention is just what I use to denote a Project (as opposed to an Area). 2. I follow GTD here, where anything with more subtasks is itself also considered another 'project'. You don't have to. In fact one of my todo keywords is actually PROJECT. 3. I guess you could use SCHEDULED just as well, but if you carefully read the manual, this is not the intent of SCHEDULED. An appointment (like this) should simply be a time slot (as I showed above). You can of course do whatever you like. :) I have included some things here that I might do which are not strictly necessary to solving your problem, but hopefully you can adapt this to your needs. Cheers, TRS-80