From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CEcEEbsVKGDhaAAA0tVLHw (envelope-from ) for ; Sat, 13 Feb 2021 18:08:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YD26DLsVKGDIBwAAB5/wlQ (envelope-from ) for ; Sat, 13 Feb 2021 18:08:59 +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 8F0A9106AA for ; Sat, 13 Feb 2021 19:08:58 +0100 (CET) Received: from localhost ([::1]:57598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAzLk-0005vh-KS for larch@yhetil.org; Sat, 13 Feb 2021 13:08:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAzIV-0005um-Th for emacs-orgmode@gnu.org; Sat, 13 Feb 2021 13:05:36 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:9802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAzIO-0000HQ-Vd for emacs-orgmode@gnu.org; Sat, 13 Feb 2021 13:05:35 -0500 X-IronPort-AV: E=Sophos;i="5.81,176,1610406000"; d="asc'?scan'208";a="492848426" 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; 13 Feb 2021 19:05:24 +0100 From: Alan Schmitt To: "emacs-orgmode" Subject: programatically generate an agenda Date: Sat, 13 Feb 2021 19:05:20 +0100 Message-ID: <878s7rq1wf.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: , 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: 8F0A9106AA X-Spam-Score: -4.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0W0yt5O2HQQD --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, In my quest/endeavor/struggle to generate an org file for what I want to do during the day, I=E2=80=99m trying to leverage the power of org-agenda (= that does a lot of what I want to do) to create an org file. I learned of org-agenda-write, which I could use to write to file what I want then include it in my org file, but for that I need to create the correct org-agenda buffer. What is the elisp way of doing it? I tried using org-agenda-list, but it only seems to restore the current agenda view. For instance, (org-agenda-list nil nil 1) generates an agenda for the week (which is my default), even though I pass a SPAN argument of 1. I also don=E2=80=99t know how to set the org-agenda-skip ste= ps before calling that function=E2=80=A6 Thanks a lot for any suggestion on how to do this. Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmAoFOAfHGFsYW4uc2No bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlx0tCCADAbZYuVBChY1aL gSu0Og1UzVyEI/MHbN9vh+1XM7oDuR2dTOO3RurCSC1hDg1zqEpqthiX38ozPUgL pcrkLEiQxafpJ+qHkGr38oO2gLlWoVomqq8NyI+q2AicSzOKdtUGLMyc7C5ftRN6 cRONGnwJfyKSiLxwS9nmQgtAYdp7HhP+fpkSpmJyXkQagbUVyZzSbbFnJnOtqSCL olDWYhTCas9J+K/dKP5IEj+vvr0B0AVr6xAZ/AvzGY7tgm62AYxxBu4YgN3xR1of 6etM3UR7DEDZ44h65Suu8N+FHtLpBw06VsQNFORwZdrMkIbjGhQmPDcnPcsD4wc8 apIbcskY =a8Yq -----END PGP SIGNATURE----- --=-=-=--