From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MDOxDmsGTWIOZwEAgWs5BA (envelope-from ) for ; Wed, 06 Apr 2022 05:18:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SM7nC2sGTWLbRwEA9RJhRA (envelope-from ) for ; Wed, 06 Apr 2022 05:18:03 +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 BC9033B14E for ; Wed, 6 Apr 2022 05:18:02 +0200 (CEST) Received: from localhost ([::1]:50698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbwBF-00053Y-29 for larch@yhetil.org; Tue, 05 Apr 2022 23:18:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbw9t-000538-Bf for emacs-orgmode@gnu.org; Tue, 05 Apr 2022 23:16:38 -0400 Received: from server173-4.web-hosting.com ([68.65.122.210]:43136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbw9r-0004HN-Cw for emacs-orgmode@gnu.org; Tue, 05 Apr 2022 23:16:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hS3aYyg+cex510QrJm3X5TzAJrmU3EOQIq6G+txcsbg=; b=W/IP60sfe1h3o9xaOqijXOXDyA ct+SiIi1/q7euVlEsvKOHQzWqgLxsog4aXdyCpvJC+RF71ijIA6NXsD5wGJgvrjHqkG6559Be3pgb 4jdRkx4dFN0Gx8YN982pJYaJb4h8kgbjdooCA/Eyf/cNRzfKbjNY6FRMkLlWEl1mED2ffnIziObSy 7+9TycZFDDe/c7eziJRdLgWA6cvS2/eJTjfeV1O++aaH/mWCnvO+NCQrV4WwMdVUzfLVFdV7XR/K+ C6DJJvuhoyQhcraLizv3PVP5JcOZajxurIgp+9emGk6PRYehH4U72wS1a8136bLsABYOK5UxyHedS x37mFOfA==; Received: from [127.0.0.1] (port=47088 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1nbw9l-001l8E-9f for emacs-orgmode@gnu.org; Tue, 05 Apr 2022 23:16:33 -0400 MIME-Version: 1.0 Date: Tue, 05 Apr 2022 23:16:29 -0400 From: TRS-80 To: emacs-orgmode@gnu.org Subject: Re: Agenda without todos only if there is no other timestamp In-Reply-To: <2022-04-05T10-40-55@devnull.Karl-Voit.at> References: <2022-04-05T10-40-55@devnull.Karl-Voit.at> User-Agent: Roundcube Webmail/1.4.12 Message-ID: <2f5cd7ff3210beec704fda7b38d180a5@isnotmyreal.name> X-Sender: lists.trs-80@isnotmyreal.name Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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=1649215083; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hS3aYyg+cex510QrJm3X5TzAJrmU3EOQIq6G+txcsbg=; b=RBLy9WQCpgurdtL3NbS8aY4I/TBWYBKDAPi8FRybI77BqCFuRFtIfgfzdJ8q/zOpbt+CcJ WQwwW/ii8Ji2oT8GYQ+wyiLFCs3P8U4jsfSnk2UYIWBRPKL8FhaaPN/mSH+WSo/wK4wi92 HaeFRwZq2RwYePpVNCbnwnFRfOO7Fbli4vqCA+PHSWDOtAz1TWOl2+X3aLWwLO6svNF5nP RwpO5oKYaUSyd5hzQZdwlfiy22rpu3uEAVP9DF9tzqsu1xjJE1xjDxrV5DckF11hoguVQI E4+HKWalLfsZcnUr3Ex4PcdqsKPryir37xnG+yGCv19won7TI7MkAW3KmH8OUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649215083; a=rsa-sha256; cv=none; b=LY2xMzoKSp7mk6FieC1mdJHa2E7hBH6GQNdTwcykonFiWg769Yj00gkHvJzOHTY8a/Pt69 1a5nHIOD0oBElHV0KLpmIB7fOOZ62Um0yceX/XN0hnqa81I8qzH9Jef3iqFJggnu+X6QEY SoH8Xxu7yidoJylSU3k6W7FnGUY6aK4y0kXLSAZdvCsV64tlL5wsTszZ+fVMwGnskTkR7E RLG5jDvTMF0vd/bIViw5VOkaFKxnKgFUCw1Sau46xOj5Fh6AAwVT8teI+5nTDVGw5piAOk 3eSekWanyqtSS+HIyZRlty3qBvaTPuwaL2UhfKXDG2iQ/ID/pqhcgUCRNFKWng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b="W/IP60sf"; 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: 0.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b="W/IP60sf"; 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: BC9033B14E X-Spam-Score: 0.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: q9Pcy50H5oCb 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~. It's late and I am too tired, but if you are still floundering about after some days, send another mail and I will see what I can do to help. :) Cheers, TRS-80