From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: outlook message/diary handling Date: Sun, 05 May 2013 02:00:40 +0100 Message-ID: <87y5bu6y13.fsf@ferrier.me.uk> References: <87txmio5p3.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367715656 19897 80.91.229.3 (5 May 2013 01:00:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 May 2013 01:00:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 05 03:00:54 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UYnJt-0002Gq-KQ for ged-emacs-devel@m.gmane.org; Sun, 05 May 2013 03:00:53 +0200 Original-Received: from localhost ([::1]:49212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYnJt-0004as-8d for ged-emacs-devel@m.gmane.org; Sat, 04 May 2013 21:00:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYnJn-0004ab-Pz for emacs-devel@gnu.org; Sat, 04 May 2013 21:00:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYnJl-0003qG-5y for emacs-devel@gnu.org; Sat, 04 May 2013 21:00:47 -0400 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:46362 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYnJk-0003pt-Tr; Sat, 04 May 2013 21:00:45 -0400 Original-Received: from nferrier (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTP id 6F98AAC0512; Sun, 5 May 2013 03:11:03 +0200 (CEST) Original-Received: from nferrier (localhost [127.0.0.1]) by nferrier (Postfix) with ESMTPS id 278DF1600B7; Sun, 5 May 2013 02:00:41 +0100 (BST) In-Reply-To: (Glenn Morris's message of "Sat, 04 May 2013 19:58:16 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159307 Archived-At: Glenn Morris writes: > More entries for diary-outlook-formats are welcome. > (The one time I got Outlook appointment messages, this feature was no > use, as I explain in the comments before that variable.) Ok... well, I'll do that if I can get a useable dev tree going so I can submit up to date patches. [insert bzr rant here] > I think code for mailers that don't come with Emacs doesn't belong in > Emacs. I added diary-from-outlook-function that those mail clients can > set to whatever. Why would you think that? we allow things to be packaged. We should encourage good APIs for separations sake. Encouraging cohesive code is just a quick way to build spagehetti. Which is what this looks like. diary-from-outlook-function is kind of what I was thinking of doing. I was going to suggest a buffer-local variable for something like that so modes could set it up if they wanted to. >> 2. diary-from-outlook ends with diary-from-outlook-internal which only >> handles diary entries in Emacs' diary format. But many people like to >> keep their diary in org mode. So being able to add entries in either >> format would be good. > > If Org mode needs something different for some reason, I think that's > code that belongs in Org mode. So try emacs-orgmode@gnu. Well, it's the Emacs code that's doing this. I would add a further layer of indirection to the entry handling code that allowed the user to choose a type of diary entry which then selected an appropriate function. I'll send patches I guess, again, when I have a working emacs repo.