Re: [Orgmode] org-prefere-future for other applications

2010-03-01 Thread Carsten Dominik


On Feb 27, 2010, at 1:29 PM, Łukasz Stelmach wrote:


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)


Hi Lukasz, I do not yet understand what is the issue...

- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-prefere-future for other applications

2010-03-01 Thread Carsten Dominik


On Feb 27, 2010, at 1:29 PM, Łukasz Stelmach wrote:


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)



Ah, may be this is what this is about:

(defun org-my-read-date (optional prefer-future)
   (let ((org-read-date-prefer-future prefer-future))
  (org-read-date)))

?

- Carsten


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-prefere-future for other applications

2010-02-27 Thread Łukasz Stelmach
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



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode