From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QKXWJeYVkmVWLAEAkFu2QA (envelope-from ) for ; Mon, 01 Jan 2024 02:31:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SMlbH+YVkmXxLwAA62LTzQ (envelope-from ) for ; Mon, 01 Jan 2024 02:31:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704072678; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=u9WBUtTbn/+uVJtb2EM+ge97WOR8anEGbigQZqiBpGU=; b=trNrtB/eOm4l9NqpXfRFYolzeL3DBcJ1+MmWth8g6+MFX8Eq+hD8mjZt9dHkRuzxT9bNvZ YJDTPATFsFQw2Ki5Hn+FD4nVUEmtbIpsDnR/mmT3DsX4dxKT8nruv/85UNvbdHVvKsMl7C I3HpKfnJabQZ99U1tFsYr9TAF1SVGPFQytmJuVEweHPBeZeJ4CJj5UFCwtoS4qT1Czrx6W /r6KyJzEMksHtDfJ4Gfx3YI6gOIGrEIWGa28KJ17XviK3+ZNMkpV57Zshm9CW9EJHKJ88r HTPQVrBBUWycK5ANMnQRpOk5GwhlacuPzsySO1Do0/5iPqE56LMWsm6FCyeERw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704072678; a=rsa-sha256; cv=none; b=PlCwjFm1wmREtm6mnn+FaUw/XnlFl2ZfXPGwuMTeJR5fB048fYKxMRxTxqQrNHnGFLLNwq tcIw1mT4Qe6ecFhjEqRWQOk3qCFEpsXLHgahLNoKsWRnIi84Yh73oIVKFC37jA+/Dys/Oa wyrjIFbsnsmPFxPu11UViOco8kgqdgZeQiVNjI/2d2OmC6uf/tofInwEhV/1hteGVVkEB6 Lk6AQXke6+Plv9S6ow8XGee6NdF1y0fzYiTPUKL2Y2ZFWxhYgrVpBREQkXFXGA63I2JW8F LbF3fYL6TtJ0ILztkPMG6dL5raOxLCLXVJ8gj0lldim8cZMZQlVIsgpvwhmZHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none 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 06FD6187FE for ; Mon, 1 Jan 2024 02:31:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rK78K-0000LW-5O; Sun, 31 Dec 2023 20:30:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rK78H-0000L7-Uu for emacs-orgmode@gnu.org; Sun, 31 Dec 2023 20:30:21 -0500 Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rK78B-0002dO-Vj for emacs-orgmode@gnu.org; Sun, 31 Dec 2023 20:30:21 -0500 Received: from mxplan1.mail.ovh.ca (unknown [10.111.58.27]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 01B632010E3 for ; Sun, 31 Dec 2023 21:30:04 -0400 (AST) Received: from rodrigomorales.site (54.39.251.57) by DAG2EX1.mxpca1.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sun, 31 Dec 2023 20:30:03 -0500 X-OVh-ClientIp: 181.65.25.226 Date: Sun, 31 Dec 2023 20:30:02 +0300 Message-ID: <355194690966e37531b8643292fe2b86@rodrigomorales.site> From: Rodrigo Morales To: Subject: Elisp function to get the upcoming event with the closest scheduled date MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [54.39.251.57] X-ClientProxiedBy: DAG2EX2.mxpca1.local (172.16.2.12) To DAG2EX1.mxpca1.local (172.16.2.11) X-Ovh-Tracer-GUID: 7b9e10e6-4b30-4bba-8d38-a56151b87d6e X-Ovh-Tracer-Id: 1557119573446630935 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrvdefledgfeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeffkffhvffugggtihesthdtjhdttddttdenucfhrhhomheptfhoughrihhgohcuofhorhgrlhgvshcuoehmvgesrhhoughrihhgohhmohhrrghlvghsrdhsihhtvgeqnecuggftrfgrthhtvghrnhepleefhfeuffduffevtdehffejvdehvedutdfhhfejieegveevjeejtdefieejheeinecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehjedpudekuddrieehrddvhedrvddvieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehmvgesrhhoughrihhgohhmohhrrghlvghsrdhsihhtvgeqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepvghmrggtshdqohhrghhmohguvgesghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=51.161.45.254; envelope-from=me@rodrigomorales.site; helo=smtpout1.mo12.mail-out.ovh.ca X-Spam_score_int: 23 X-Spam_score: 2.3 X-Spam_bar: ++ X-Spam_report: (2.3 / 5.0 requ) BAYES_20=-0.001, DATE_IN_PAST_06_12=1.543, FROM_FMBLA_NEWDOM28=0.798, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.27 X-Spam-Score: -3.27 X-Migadu-Queue-Id: 06FD6187FE X-Migadu-Scanner: mx12.migadu.com X-TUID: um0fv5iT5ioU I just learned that it is possible to add functions to tab-bar-format, which is the variable that controls the information that is shown in the tab-bar. I want to write a function that gets the upcoming event with the closest scheduled date so that it is shown in the tab-bar. I want to know if someone has written a function that accomplishes the described behavior. If not, does anyone have some tips for writing such function?