From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QhBeFwJ4KmDlUAAA0tVLHw (envelope-from ) for ; Mon, 15 Feb 2021 13:32:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OFaMEgJ4KmB7dAAAbx9fmQ (envelope-from ) for ; Mon, 15 Feb 2021 13:32:50 +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 D062C31E84 for ; Mon, 15 Feb 2021 14:32:49 +0100 (CET) Received: from localhost ([::1]:46452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBdzc-0007gu-Pu for larch@yhetil.org; Mon, 15 Feb 2021 08:32:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBdtw-0005de-ME for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 08:26:57 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:8656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBdtG-0000us-21 for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 08:26:52 -0500 X-IronPort-AV: E=Sophos;i="5.81,180,1610406000"; d="asc'?scan'208";a="493055428" Received: from cbg35-2-78-242-14-140.fbx.proxad.net (HELO set) ([78.242.14.140]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2021 14:26:09 +0100 From: Alan Schmitt To: John Kitchin Subject: Re: programatically generate an agenda In-Reply-To: References: <878s7rq1wf.fsf@m4x.org> Date: Mon, 15 Feb 2021 14:26:08 +0100 Message-ID: <87blclo427.fsf@m4x.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: neutral client-ip=192.134.164.83; envelope-from=alan.schmitt@polytechnique.org; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 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: -4.46 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: D062C31E84 X-Spam-Score: -4.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: vwVbkdVU1jdc --=-=-= Content-Type: text/plain On 2021-02-14 12:12, John Kitchin writes: > If it is possible to set up what you want in an entry in > org-agenda-custom-commands, then you can call it in a program like > > #+BEGIN_SRC emacs-lisp > (org-agenda nil "w" nil) > #+END_SRC > > In that snippet, I have the key in an org-agenda-custom-commands set to > "w". > > that generates an agenda buffer for me, which I assume you can then use > the org-agenda-write command on. Thank you for the suggestion, this is most useful. Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmAqdnAfHGFsYW4uc2No bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlx4SqB/43I+y1+vLXupte cFaCqGtQL0vef2NEArKWnUc+2QbKyizAWAa7Eqr7cWMxDz0h6LZr4z59dBZomQ9v Btp383Mu6SJRS2pLo+wXN+uuJvNKNhaov64+GNe6QK4AAG3TGDbGdMhIq1Tr94wN D2L8OIB+mygvzs0PUlO+P+DpWPzk2fWdQ4NuHf6F1PayKvfhGXV1yrxXAu/b9EEm FyP/9a4Nh8iARviK85dgiebxz43zmIF8CFKnxjLWCzfeqAks8IWV4o/pobxifzGc M1+l1gMqF8XO8A5mWBQ2gr/7GO7/oo8AyZtsNueuxTmEH5Fu8Cwa6fNKesYD2zEp 4UaGU5I9 =FHyW -----END PGP SIGNATURE----- --=-=-=--