From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Emacs Calendar - Removing holidays Date: Sat, 21 Nov 2020 20:47:18 +0100 Message-ID: <87wnye1ohl.fsf@web.de> References: <878sax1feb.fsf@web.de> <87361518cw.fsf@web.de> <87y2ixyw1p.fsf@web.de> <87o8jtyst9.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="19259"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org, Jean Louis To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 21 20:56:22 2020 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 1kgYze-0004vv-6d for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 20:56:22 +0100 Original-Received: from localhost ([::1]:45782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgYzd-0006ey-6q for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 14:56:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgYrZ-000890-7B for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 14:48:01 -0500 Original-Received: from mout.web.de ([212.227.17.11]:35933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgYrU-0005zr-VT for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 14:48:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1605988039; bh=7RWe4BPLIygQwHLDDiExoat5HNjcY8APuWrM55SUyb4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=FcawunHw6gfF/GeaVZ5WESxcEZuhzcFqvKOlWNPTQItj/ESo+M8451bUXWQ0lb5Tp qCh2y6k/ExWdS00FuwTWnxb5sM1sGdzOwV1B5AOAoxaop4u1MreZt080nMnS3e0oJv +em8JMIe+LeHG7o2km+zm5VbNvS/RkewZrx1BKuM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.219.247]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MKrLo-1kgYqt2Qm8-0002ts; Sat, 21 Nov 2020 20:47:19 +0100 In-Reply-To: (Christopher Dimech's message of "Thu, 19 Nov 2020 22:11:18 +0100") X-Provags-ID: V03:K1:WB1oEYp0vzkU9WDPaBox5CR47Cgwl1Ebg9tYH9DKuhmuNi39hRW kGy/dkKQeEelBytvjk1ArHCu6Aoi4Q8UPysy0So9j1rJFnTadLdGpQiwtf4EZ9Ef0wImjkd GAW5EW4B7WCp0m+2LZkW58w2a89hNAyjbVbAlrQfvhdhoxsIsA43Y/Sf+ysVhIui4Avd/jh wU9vXd0eUegQ6sTt4s+Gw== X-UI-Out-Filterresults: notjunk:1;V03:K0:x68WyYCMIw0=:/V0blB5R3pM/QbVQNVXoRM 1c1rBpK9UtLef9aL6ySyvoPxoWSIzQbataAIkeZYtCEeqfWrRvrISwl/4UMlbCnI/V0CzdcH9 W/MD9VIziMSRp5/uUURwYF1rP7ESz/MQ1AGJIBfiuGQbeVmGibfrWCtFBsJXllIBYFiF0GUkd d5PO9aO8g3hsi2jmbFh+bvy8ob9tjUZnqxySmW4vRTRtCrF/V1oNquu0Fxyq9x8ZXb9UP45zk uQSBa5gUkHcSYItjG9+Sd8BkoRZPndl0Smt1m5KLcA5U/bX03sBxh7RQCb9O9Vd0sgFrgEG41 ttua8zatUi3HzmuPxoMBDfqcm/RFW4W6OCEGhDTiBIbPVPkj151CpvKQRaTv9DMuOIpHs6Hpk Qnc46zyQRY5HyU5kHSbdeXzswiW10v/7KHRzsS7KPGEOD+DshweLJB13bFnAmT6fEQLe+Vlvs BVjK/2Nr3P8hGdOLx0VVg8ETCXcePwtR/hcEwTupipewrafjSpREoAvXlhPln6pefRJFrbMWS CMptQ83BH/HnjtfbVW6qXvuJcJ/a6CRb9XZcSsvHrzx+/HBqo9pgfAyb27bcFs94TI/8EEPNh +HArCCpjEL4gUTNaeJkK72+I7iSqRRWBPJXUvhGaHkpsO76QrrgJFSL/4aSMLrAc1NsjX1rPd fy1GWaz1XyyANjjx6BoDbSUqX4bB9ornwKgMS6hbT8HDL2vpBPZAf0JhGq/y2BuKgxeHtkRX8 fj0trIotnaHCpWBLtXEfCS205zu8kpZQNVajKAE6pDKL1bRrqm/CHMHHfea/1gQmIPKXTvir Received-SPF: pass client-ip=212.227.17.11; envelope-from=michael_heerdegen@web.de; helo=mout.web.de 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.23 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" Xref: news.gmane.io gmane.emacs.help:125451 Archived-At: Christopher Dimech writes: > Could you give some examples of "diary symbolic expressions" and how > they would be useful for setting work dates. The Emacs diary supports symbolic expressions that return a boolean value depending on the free variable `date'. Functions that can be used in such expressions are described in the manual. As a special non-nil value a string describing the event, and a cons (mark . string) including a mark type for the calendar are allowed. See `diary-lunar-phases' for an example. The good thing is that anything Elisp supports is allowed to be used in such expressions. The bad thing is that not so super many are predefined. > I am particularly interested in marking dates that are available for > deadlines, meetings. And another for those already set with > deadlines, meetings, etc. For org? For that you would need to have a predicate that would tell whether a given `date' is available or not. I guess someone on the org-mode user list might have an idea how to implement that. Maybe reusing some of the agenda code. Depending on how your meetings etc. are specified. Regards, Michael.