From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz_Stelmach?= Subject: org-prefere-future for other applications Date: Sat, 27 Feb 2010 13:29:45 +0100 Message-ID: <87hbp2g8ue.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlLo7-0006rZ-7e for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 07:30:07 -0500 Received: from [140.186.70.92] (port=37585 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlLo6-0006rR-Jx for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 07:30:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlLo5-0004BY-Lf for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 07:30:06 -0500 Received: from lo.gmane.org ([80.91.229.12]:40037) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlLo5-0004B6-FR for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 07:30:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NlLnz-0001Vr-SC for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 13:29:59 +0100 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Feb 2010 13:29:59 +0100 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Feb 2010 13:29:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello. I've tried to rearrange org-read-date and some other helper function to make them usable from other applications which might not want to prefere future dates. Unfortunatelly I can't do it without making org-read-date *require* additional argument (prefer-future) everytime it is called in orgmode like this: (org-read-date ... org-read-date-prefer-future) Is it possible to refactor the code the way I've described it (without too much fuss)? -- Miłego dnia, Łukasz Stelmach