From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas Newsgroups: gmane.emacs.help Subject: Re: Cyclic block event in the diary Date: Sat, 09 Nov 2024 05:19:26 +0530 Message-ID: <86zfm9s2ux.fsf@gmx.net> References: <87jzdo7xny.fsf@riseup.net> <87bjyvp8p1.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20506"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: BP25 , help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 09 00:50:37 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t9YkO-0005Aw-QX for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Nov 2024 00:50:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9Yji-0004oe-Sx; Fri, 08 Nov 2024 18:49:54 -0500 Original-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 1t9Yjg-0004o5-NH for help-gnu-emacs@gnu.org; Fri, 08 Nov 2024 18:49:52 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9Yje-0002A8-Sh for help-gnu-emacs@gnu.org; Fri, 08 Nov 2024 18:49:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1731109772; x=1731714572; i=jimjoe@gmx.net; bh=09xht0BGXc4aijbiojvXK5jfRb95Wy2Y4Rpz9HRPywY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=pT5GVoJB7L4J+ghgaCTE3/agakO+uEj+y6S+8oSHK3MlI5kjKPNeOZ4lxAYF7GPU qifU+zK1VZmbqvg5+ICvgj84bkUl7yYXHuAUcnNc92OSt5HoYZp4WI2sP0Sfqb/RR H85vvQ5Vp8lxP4j/W8RDBK/JYqgKh+PeKawN2UZhXqpW5YBz6+XOoXaPvd1psKbkt k+HtVUSrkAYeyfjcBsmE9IhUMqfXHEvPGQSyjsC1GLrx1cAil8eD2PLQsULTqKJIq boztEtiKU9GKd3cn7AJ9OO0JyFb5mqH/7mt/p4y2OaC17VWbVJfL2c70kxf7BN4jU kQ+LrlGC/4AqbuWbpg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-3493 ([42.108.29.204]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M8QS2-1tDyaB2ot6-00Chq4; Sat, 09 Nov 2024 00:49:32 +0100 In-Reply-To: <87bjyvp8p1.fsf@web.de> (Michael Heerdegen's message of "Mon, 04 Nov 2024 11:58:02 +0100") X-Provags-ID: V03:K1:x5KdvDtbAoI4iEogiNcZxGI8fWxdaL5i3eCR2itKFJ/GCC6bcdP 3TPzgA4CgkHWcNg/qOzTi1HCEDagGN6gPIXFYcrPdUGNT3ukREh2gvphDCz4KrS9jWNifJf hQjZDF8I1QjySB8GY6Ic+oAREDsoyeDZFmlwbNSQBjHfayW467b0TdJPnzp2FOgnsQK9J9T 2/lye5difiulQt7vUI1Kg== UI-OutboundReport: notjunk:1;M01:P0:sHHBjvwi32w=;M80Pp42KLDDyStfTi6K+2CRdOw1 31WsOznYT8hcxv63SxJ9qXg0kVxEz/gdOIm2X1nl1Hr/h7IKY7YXGNc53P+BNyBWr6VvDmtRL cJPKsn1XxEBFMPqRb04T0tDa+b7FPfWUgrpKNxQ8HFcUApBH8KZmW01FmDUmmvyhmb7rihKRH LMYrS9GwcYsV/o0Q1IG8lpOWI97H4sNhxIfn5lxJHU7CG6P9zOIuOxSp/0QFY923vqdCc9x1W hI+YI0uYCBdot31lwm5EUO7y98lAIjbfc2I6NSGaxhV0NBzK7L/cefhz2sEEtJr75ruGhcmhj e7dfI0hhlqimzhuoU+kb6wPgeDgQelzMUTx2JD1yg9egCFL7imIegplrUdPjcusPd7vQtDa2A TFKKxxVHon6ZB3EMu67z6uafgdBpnjmSnqXkqHYETzlgMl7/q2VVjKpAzdpTS5thJX+8CrYiv 2PMCkTw91aEtszc9Vf2uEiH9NgNefwqBa9tAec7sEUrw3qk2Iu0GNw/t+X1/RigqkD0pmoazg tiKoquHC6E/JDZmHt/Wmdt91vsAcbbbkwaKt+lKZDjuZgK4uj1nXsamF4EHXFnRzboiOIBY89 aUTu/8mIdeQFDIH+PRxFKIyu+SK5liDlfPCUcbQY4UWlu+IF4yfJcKCEDWv7uHgHW6rhTgwgk AKIyMb3t7Fng8kn9NYLPuSxmeLyvOy5HO3zzCvoe3Ky6r7dGXho924FulDeFAllKQ7W0lwasG L5tKBM67gUqArXjSHyFmuwx1Fjw9aNwb+jPHzl4nlfxDZ6xhgYauUw8hNwDYYAc0UyQnl9B3 Received-SPF: pass client-ip=212.227.15.15; envelope-from=jimjoe@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148297 Archived-At: Michael Heerdegen wrote: > BP25 writes: > >> I want to make an entry on my diary which is a cyclic block >> event. Calendar mode provides commands to insert certain commonly used >> sexp entries. Do you guys agree that there's no way I can combine the >> commands for cyclic events and for block events? > > Depends on what you mean with "combine". You can combine as you wish > using Lisp, e.g. with `and' or `or', but that will probably not give you > the semantics you want. > >> Then, how would the Lisp expression look like for my cyclic block >> event? > > So you want a block that repeats in a certain interval, right? I would > have to think about how to get this in an easy way, but yes - I don't > think it would be a trivial combination of predefined functions. > > How is the repetition interval defined - something like "every month", > or more complicated? Should be as simple as, say: %%(and (diary-block 11 1 2024 11 15 2024) (diary-cyclic 2 11 7 2024)) IIUYC. --