From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tiarnan Newsgroups: gmane.emacs.help Subject: Re: diary behaving strangely Date: 30 Oct 2002 10:34:27 +0000 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <867kg0xljg.fsf@wintermute.att.cmg.nl> References: <87r8e99qwy.fsf@wesley.springies.com> <8665vlb3r1.fsf@wintermute.att.cmg.nl> <871y699oo4.fsf@wesley.springies.com> <86znsw9u3a.fsf@wintermute.att.cmg.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035974287 28761 80.91.224.249 (30 Oct 2002 10:38:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 10:38:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186qEf-0007Tl-00 for ; Wed, 30 Oct 2002 11:38:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186qCT-0006g5-00; Wed, 30 Oct 2002 05:35:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 186qBP-00056e-00 for help-gnu-emacs@gnu.org; Wed, 30 Oct 2002 05:34:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 186qBL-00052O-00 for help-gnu-emacs@gnu.org; Wed, 30 Oct 2002 05:34:41 -0500 Original-Received: from [212.136.56.7] (helo=smtp3.cmg.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 186qBK-00051C-00 for help-gnu-emacs@gnu.org; Wed, 30 Oct 2002 05:34:38 -0500 Original-Received: from nl-nie-route01.cmg.nl (nl-nie-route01.cmg.nl [10.224.191.106]) by smtp3.cmg.com (8.12.1/8.12.1) with ESMTP id g9UAWKVp003249 for ; Wed, 30 Oct 2002 11:32:20 +0100 (MET) Original-Received: from wintermute.att.cmg.nl (ieattp1ifs6.att.cmg.nl [10.226.4.202]) by nl-nie-route01.cmg.nl with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VSVWRSNP; Wed, 30 Oct 2002 11:34:31 +0100 Original-Received: by wintermute.att.cmg.nl (Postfix, from userid 1001) id 8BC8B105BD; Wed, 30 Oct 2002 10:34:27 +0000 (GMT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <86znsw9u3a.fsf@wintermute.att.cmg.nl> Original-Lines: 55 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3099 >>>>> "T" =3D=3D Tiarnan writes: AS> If not, the problem is probably that you don't have AS> european-calendar-style set to t. Replying to myself... it seems that the problem was indeed the calendar style---it only accepts diary entries in the form: October 30, 2002 blah blah blah Once I amended the lisp to be slightly more careful about picking out the date, month and year, I was able to drop correctly formatted events into the diary, where they were picked up by the diary, and the appointment list. Thanks to AS for the hint (disregarded at first).=20 For anyone who is interested, here's the schnippet (largely purloined from the example on the emacs Wiki): (defun toc-outlook-invitation-to-diary () (interactive) (let ((buffer (or (get-buffer "*Article*") (current-buffer)))) (save-excursion (set-buffer buffer) (goto-char (point-min)) (when (re-search-forward "^Subject: \\(.*\\)$") (setq subject (match-string 1)) (beginning-of-buffer) (when (re-search-forward "^When: \\([0-9]+\\) \\(\\w+\\) \\([0-9]+\\) \\([= 0-9]+:[0-9]+\\).*$") (setq day (match-string 1)) (setq month (match-string 2)) (setq year (match-string 3)) (setq time (match-string 4)) (when (re-search-forward "^Where: \\(.*\\)$") (setq where (match-string 1)) (setq diary-buffer (find-file-noselect diary-file)) (set-buffer diary-buffer) (goto-char (point-max)) (insert (format "\n%s %s, %s\n\t%s %s (%s)\n" month day year time subj= ect where)) (save-buffer) (bury-buffer diary-buffer))))))) Anyway, now I'm happy, since Outlook can disappear completely from my desktop. Another positive example of the Law of Software Envelopment. Cheers Tiarn=E1n --=20 Tiarn=E1n =D3 Corr=E1in CMG-WDSC Sysadmin Cork. tiarnan.o'corrain@cmg.com +353-21-4933200 "Iraq: incredible weapons - incredible weapons." How do you know that?=20 "Uh, well... We looked at the receipt." -- Bill Hicks, 1992