From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Eliachevitch Newsgroups: gmane.emacs.help Subject: Emacs calendar to display nth weekay in month, e.g. every 3rd Wednesday Date: Sun, 11 Jan 2015 21:03:14 +0100 Message-ID: <54B2D702.3020307@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1421006627 30222 80.91.229.3 (11 Jan 2015 20:03:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2015 20:03:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 11 21:03:41 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAOjd-0002yX-66 for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Jan 2015 21:03:41 +0100 Original-Received: from localhost ([::1]:59222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAOjc-0004lL-Jd for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Jan 2015 15:03:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAOjQ-0004lE-AR for help-gnu-emacs@gnu.org; Sun, 11 Jan 2015 15:03:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAOjM-0007N0-6x for help-gnu-emacs@gnu.org; Sun, 11 Jan 2015 15:03:28 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:64635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAOjL-0007HX-TD for help-gnu-emacs@gnu.org; Sun, 11 Jan 2015 15:03:24 -0500 Original-Received: from [129.13.225.206] ([141.3.208.9]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MNdxu-1Y7dZr1elW-007Cey for ; Sun, 11 Jan 2015 21:03:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 X-Provags-ID: V03:K0:9VvZNgVNNw0qNA/wkIydrENFlYjmFLbqPZhNCq4VTKOMf0SBQmE KrV9EcyXWA0Rq9S/GCYQhkIVmytSOajFcsAPzKE9mGWd8ikC0/wSkawzPmkW7oIdr7icDVm vXvH/61c4zayI6OniaO+AAOSBvT2WocyaougPxCFUjKm3B8oPqDMrDovYNa4IIsodMQqIkM NV2QeucOLR1GzrieYTK9w== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102001 Archived-At: Hi, There are several events for me each month which take place for example on the 3rd Wednesday or on the first Tuesday of each month. Is there some way to add them to my diary file, so that they will be added to the list of diary entries and displayed in the calendar for all dates to which this rule applies? Maybe there is already some functionality to do this, but I haven't found it yet. At least it's justnot a simple regex on the date. If there is something like this, I would like to know. I am actually a newbie when it comes to programming in emacs lisp. I have just started this week. I managed to create a function that checks if a date is for example a 3rd Wednesday, but I am still not sure how to combine it with the diary. I would have to implement some special syntax for entering it into the diary file and add some regexes for that and should study the diary code more... I still haven't figured out how entries are added to the diary-entries-list. So if somebody who knows the emacs calendar could provide some help or hints, I would be really thankful. Greetings, Michael