[Orgmode] appointment implement variable warning time

2009-12-28 Thread Ivan Kanis
Hi,

I use appointment with org. I find that a global time delay for each
appointments is inconvenient. For example I need to be warned an hour
before an appointment downtown and only 5 minutes for a meeting at
work. I have hacked appt.el to keep track of a delay for each
appointment. The function appt-add is compatible with the old appt.

It should be applied after the feature freeze of emacs. You can download
the new version from my website http://kanis.fr/blog-emacs.html

Now I would like to hook this change this with org. I don't think it
would be a good idea to extend the timestamp as it's already pretty
complex. How could I add the number of minute in an entry in a way
that's not obtrusive?

Thanks for your ideas.
-- 
Ivan Kanis
http://kanis.fr

Parting is all we know of heaven, And all we need of hell.
-- Emily Dickinson 


___
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] Re: autoloading stuff

2009-12-28 Thread andrea
Thomas S. Dye t...@tsdye.com writes:

 Hi Andrea,

 On Dec 27, 2009, at 12:53 PM, andrea wrote:

 I don't believe this is addressed in the documentation.  Perhaps Eric
 or Dan can give you an answer when they are back on-line.

 All the best,
 Tom

I didn't find it either.
It't not so important after all, but it would be a nice thing to reduce
my emacs load time without losing features.
I also want to use the same configuration on many different hosts and
not on all of them I use so much stuff, so it's a waste of time...
Thanks



___
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] How to change CREATED property value to inactive in org-expiry

2009-12-28 Thread Carsten Dominik


On Dec 27, 2009, at 11:50 AM, Manish wrote:


Manish I have just spent an hour trying to figure out how to change
Manish the timestamp added as a result of org-expiry-insinuate to
Manish inactive with no success.  It seems to me that I need to
Manish change something in function org-expiry-insert-created but
Manish don't know what.  I also do not understand in which
Manish situations does an active timestamp for CREATED property make
Manish sense.

David I recently started to patch org-expiry.el and enabling inactive
David timestamps was the first thing I patched. The modified version
David is on the expiry+ branch in a copy of org-mode @github.com:
David
David http://github.com/dmj/org-mode/tree/expiry+
David
David I hope I got the git-things rights this time so fetching and
David merging it with a local branch of the original should work.
David
David Next thing on my list is to toggle auto inserting of the
David creation date for Todo headlines only.
David
David To enable inactive timestamps when using the expiry+ branch
David simply set the variable `org-expiry-inactive-timestamps' to t.

Works as advertised. :)  Hope the patch makes it to org-mode soon.


Hi,

Please contact Bastien about this.

- 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] Can we make a refloc programmatically?

2009-12-28 Thread Robert P . Goldman
I find that when I'm refiling my MobileOrg tasks, I almost always want them to
go to one particular place (my master todo list).

I'd like to make a command that refiles to that location, specifically.

The closest I've been able to get to this is to bind the org-refile-targets
dynamic variable around a call to org-refile.  This gives me a single candidate
location, which I get if I press the tab key for completion.  But it seems wrong
to have to press that tab key.

I believe I could avoid that, if I could pass a rfloc argument to org-refile,
but I'm not sure how to make one of these data structures (not for the first
time, I wish that defstruct was in elisp...).  Is there some function to which
one could pass a filename and a header regexp?

thanks,
Robert





___
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] Re: Organizing a students live

2009-12-28 Thread Carsten Dominik

Hi Daniel,

On Dec 27, 2009, at 1:51 AM, Daniel Martins wrote:


I liked the idea of org-diary-class!


I have added the function now to org-agenda.el



About avoiding holidays and certain weeks:

I used remind and wyrd for a while  and they are a quite good software
for dealing with such appts.

There we have the OMIT function where we determine holidays and other
non-working days including Sat and Sundays


Normally we have an OMIT list at the beginning of file

Some functions simply omit those dates

Other expressions use another keyword AFTER (or BEFORE)  to change
OMIT behaviour

like
23 Mar AFTER OMIT Bank payment

eg If 23 Mar is in Saturday it will appear in Monday

This preamble is just to say 2 things:

1) remind/wyrd could be used as a benchmark for some of the calendar
isuues we have

2) I do not know if the week number in a year is a practical way of
setting exceptions to org-diary-class

Daniel

PS Wyrd page is

http://pessimization.com/software/wyrd/


Interesting.  But too complex for now - and I actually do prefer local  
control.


- Carsten







2009/12/26 Carsten Dominik carsten.domi...@gmail.com:

Hi Daniel,

I think it is a good idea to add such a function to org-mode.  But I
am not sure if skipping holidays is the best, because Universities
also have lecture-free weeks etc.

So I am more thinking about a function like this (untested)

(defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname rest skip-weeks)
 Entry applies if date is between dates on DAYNAME, but skips SKIP- 
WEEKS.

Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
`european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
`european-calendar-style' is t.  The weeks are ISO week numbers where
the item should not apply.
 (let* ((date1 (calendar-absolute-from-gregorian
(if european-calendar-style
(list d1 m1 y1)
  (list m1 d1 y1
(date2 (calendar-absolute-from-gregorian
(if european-calendar-style
(list d2 m2 y2)
  (list m2 d2 y2
(d (calendar-absolute-from-gregorian date)))
   (and
(= date1 d)
(= d date2)
(= (calendar-day-of-week date) dayname)
(or (not skip-weeks)
(progn
  (require 'cal-iso)
  (not (member (car (calendar-iso-from-absolute d)) skip- 
weeks

entry)))


What do you think?

- Carsten

On Dec 21, 2009, at 4:54 PM, Daniel Martins wrote:


In fact, it helps! Thanks

However a sentence like this:


+# a class that meets every Monday evening between February 16 and
April 20, 2009
** Class 7:00pm-9:00pm
%%(and (= 1 (calendar-day-of-week date)) (diary-block 2 16 2009 4  
20

2009))

is not an example of simplicity and visibility for a quite common  
feature!


Maybe as a suggestion we could encapsulate such a huge expression  
in a

simpler org-mode function ?

Daniel


PS In

http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#toc12

I found another suggestion which I do not know how to include in  
org-mode




Schedule

If you want to write a schedule for school or university, you need  
to
define a block (it’s derived from diary-block) between two dates  
and a

weekday. The following function also recognizes holidays and won’t
send you to school on those days… :)

  (defun diary-schedule (m1 d1 y1 m2 d2 y2 dayname)
Entry applies if date is between dates on DAYNAME.
  Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
  `european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
  `european-calendar-style' is t. Entry does not apply on a  
history.

(let ((date1 (calendar-absolute-from-gregorian
  (if european-calendar-style
  (list d1 m1 y1)
(list m1 d1 y1
  (date2 (calendar-absolute-from-gregorian
  (if european-calendar-style
  (list d2 m2 y2)
(list m2 d2 y2
  (d (calendar-absolute-from-gregorian date)))
  (if (and
   (= date1 d)
   (= d date2)
   (= (calendar-day-of-week date) dayname)
   (not (check-calendar-holidays date))
   )
   entry)))

Then: %%(diary-schedule 22 4 2003 1 8 2003 2) 18:00 History






2009/12/20 Matt Lundin m...@imapmail.org:


Daniel Martins daniel...@gmail.com writes:

All academics here present (including of course Carsten) suffer  
from

the same problem, I think


*** Math classes
2009-12-10 Thu 11:00-14:00 +1w


will repeat forever and ever...

We need to create a schedule for a period.

The package remind (and its simple interface wyrd) do this job
wonderfully but I do not know how to deal with this problem in Org
mode


The following FAQ should help:

http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files

- Matt








- Carsten





___
Emacs-orgmode mailing list
Please use `Reply 

Re: [Orgmode] Re: Organizing a students live

2009-12-28 Thread Daniel Martins
 Interesting.  But too complex for now - and I actually do prefer local
control.

I know it is complex.

I thought about the first steps

I was thinking about a variable (list?) with predefined holidays

or better omit-holidays

such as org-omit-holidays

we could add the omit dates in any place
  (add-to-list 'org-omit-holidays 25 Dec)
  (add-to-list 'org-omit-holidays 1 Jan)
  (add-to-list 'org-omit-holidays 1 May)
etc.


Then we could change (adapt) the

function calendar-check-holydays from holidays.el


I did a search-replace to something like this:

(defun org-check-calendar-omit-holidays (date)
  Check the list of org-omit-holidays for any that occur on DATE.
The value returned is a list of strings of relevant org-omit-holiday
descriptions.
The org-omit-holidays are those in the list `org-omit-holidays'.
  (let ((displayed-month (extract-calendar-month date))
(displayed-year (extract-calendar-year date))
(org-omit-holiday-list))
(dolist (h (calendar-org-omit-holiday-list))
  (if (calendar-date-equal date (car h))
  (setq org-omit-holiday-list (append org-omit-holiday-list (cdr
h)
org-omit-holiday-list))

with these adaptation we could use a slighly changed  version of the
diary-schedule function  I sent before.

I did not go further nor tested it.

Thinking again now: I think it is better to avoid holidays than week
numbers. The problem is that we have to decide which holidays are really
holidays and not rely on the holidays variables that come with Emacs.


Daniel

2009/12/28 Carsten Dominik carsten.domi...@gmail.com

 Hi Daniel,


 On Dec 27, 2009, at 1:51 AM, Daniel Martins wrote:

  I liked the idea of org-diary-class!


 I have added the function now to org-agenda.el



 About avoiding holidays and certain weeks:

 I used remind and wyrd for a while  and they are a quite good software
 for dealing with such appts.

 There we have the OMIT function where we determine holidays and other
 non-working days including Sat and Sundays


 Normally we have an OMIT list at the beginning of file

 Some functions simply omit those dates

 Other expressions use another keyword AFTER (or BEFORE)  to change
 OMIT behaviour

 like
 23 Mar AFTER OMIT Bank payment

 eg If 23 Mar is in Saturday it will appear in Monday

 This preamble is just to say 2 things:

 1) remind/wyrd could be used as a benchmark for some of the calendar
 isuues we have

 2) I do not know if the week number in a year is a practical way of
 setting exceptions to org-diary-class

 Daniel

 PS Wyrd page is

 http://pessimization.com/software/wyrd/


 Interesting.  But too complex for now - and I actually do prefer local
 control.

 - Carsten







 2009/12/26 Carsten Dominik carsten.domi...@gmail.com:

 Hi Daniel,

 I think it is a good idea to add such a function to org-mode.  But I
 am not sure if skipping holidays is the best, because Universities
 also have lecture-free weeks etc.

 So I am more thinking about a function like this (untested)

 (defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname rest skip-weeks)
  Entry applies if date is between dates on DAYNAME, but skips
 SKIP-WEEKS.
 Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
 `european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
 `european-calendar-style' is t.  The weeks are ISO week numbers where
 the item should not apply.
  (let* ((date1 (calendar-absolute-from-gregorian
(if european-calendar-style
(list d1 m1 y1)
  (list m1 d1 y1
(date2 (calendar-absolute-from-gregorian
(if european-calendar-style
(list d2 m2 y2)
  (list m2 d2 y2
(d (calendar-absolute-from-gregorian date)))
   (and
(= date1 d)
(= d date2)
(= (calendar-day-of-week date) dayname)
(or (not skip-weeks)
(progn
  (require 'cal-iso)
  (not (member (car (calendar-iso-from-absolute d)) skip-weeks
entry)))


 What do you think?

 - Carsten

 On Dec 21, 2009, at 4:54 PM, Daniel Martins wrote:

  In fact, it helps! Thanks

 However a sentence like this:


 +# a class that meets every Monday evening between February 16 and
 April 20, 2009
 ** Class 7:00pm-9:00pm
 %%(and (= 1 (calendar-day-of-week date)) (diary-block 2 16 2009 4 20
 2009))

 is not an example of simplicity and visibility for a quite common
 feature!

 Maybe as a suggestion we could encapsulate such a huge expression in a
 simpler org-mode function ?

 Daniel


 PS In

 http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#toc12

 I found another suggestion which I do not know how to include in
 org-mode


 
 Schedule

 If you want to write a schedule for school or university, you need to
 define a block (it’s derived from diary-block) between two dates and a
 weekday. The following function also recognizes holidays and won’t
 send you to school on those days… :)

  (defun diary-schedule (m1 d1 y1 

[Orgmode] [PATCH] Log removal of deadline/scheduled dates

2009-12-28 Thread Paul Holcomb

 Patch to record a note for removal of SCHEDULED or DEADLINE property.

-- 
Paul Holcomb   *pholcomb\@  cpoint  net*
GPG key fingerprint  2B62 05AE EE74 845A 705F  D716 28C4 FE1C 088F CFAC
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 27af308..c57b71c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2060,7 +2060,10 @@ When nil, only the date will be recorded.
 (state . State %-12s from %-12S %t)
 (note .  Note taken on %t)
 (reschedule .  Rescheduled from %S on %t)
+(delschedule .  Not scheduled, was %S on %t)
 (redeadline .  New deadline from %S on %t)
+(deldeadline .  Removed deadline, was %S on %t)
+(created .  CREATED %t)
 (clock-out . ))
   Headings for notes added to entries.
 The value is an alist, with the car being a symbol indicating the note
@@ -2074,6 +2077,7 @@ empty string.
 
 In fact, it is not a good idea to change the `state' entry, because
 agenda log mode depends on the format of these entries.
+
   :group  'org-todo
   :group  'org-progress
   :type '(list :greedy t
@@ -2083,8 +2087,10 @@ agenda log mode depends on the format of these entries.
   state) string)
  (cons (const :tag Heading when just taking a note note) string)
  (cons (const :tag Heading when clocking out clock-out) string)
+ (cons (const :tag Heading when an item is no longer scheduled 
delschedule) string)
  (cons (const :tag Heading when rescheduling reschedule) string)
- (cons (const :tag Heading when changing deadline redeadline) 
string)))
+ (cons (const :tag Heading when changing deadline  redeadline) string
+   (cons (const :tag Heading when deleting a deadline 
deldeadline) string
 
 (unless (assq 'note org-log-note-headings)
   (push '(note . %t) org-log-note-headings))
@@ -10644,6 +10650,9 @@ scheduling will use the corresponding date.
   (let ((old-date (org-entry-get nil DEADLINE)))
 (if remove
(progn
+ (when (and old-date org-log-redeadline)
+   (org-add-log-setup 'deldeadline nil old-date 'findpos
+  org-log-redeadline))
  (org-remove-timestamp-with-keyword org-deadline-string)
  (message Item no longer has a deadline.))
   (if (org-get-repeat)
@@ -10665,6 +10674,9 @@ scheduling will use the corresponding date.
   (let ((old-date (org-entry-get nil SCHEDULED)))
 (if remove
(progn
+ (when (and old-date org-log-reschedule)
+   (org-add-log-setup 'delschedule nil old-date 'findpos
+  org-log-reschedule))
  (org-remove-timestamp-with-keyword org-scheduled-string)
  (message Item is no longer scheduled.))
   (if (org-get-repeat)
@@ -10919,8 +10931,12 @@ EXTRA is additional text that will be inserted into 
the notes buffer.
  (or org-log-note-state )))
 ((eq org-log-note-purpose 'reschedule)
  rescheduling)
+((eq org-log-note-purpose 'delschedule)
+ no longer scheduled)
 ((eq org-log-note-purpose 'redeadline)
  changing deadline)
+((eq org-log-note-purpose 'deldeadline)
+ removing deadline)
 ((eq org-log-note-purpose 'note)
  this entry)
 (t (error This should not happen)
___
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] Announcing org-ruby

2009-12-28 Thread Eric Schulte
That's great!

Thanks for sharing this.

Have you mentioned org-ruby to the people at github.  I know that they
were looking for a tool with which to export README.org files in github
repositories to HTML, but they felt that a full Emacs instillation was
too large of a requirement.  I bet they'd be interested in using
org-ruby for this job.

Also, would you mind adding this information to
http://orgmode.org/worg/org-blog-wiki.php

Thanks! -- Eric

Brian Dewey bde...@gmail.com writes:

 I want to use org-mode files in one of the many Ruby static website 
 generation tools (Webby, Webgen,
 Jekyll, etc.). Thus, I needed a way to extract simple HTML from an org-mode 
 file without relying on
 emacs. 

 Thus, org-ruby was born. It's not nearly as full featured as the emacs-based 
 HTML export, but at the
 moment I am successfully using org-mode files as content for Webby static 
 websites.

 Full source is here: http://github.com/bdewey/org-ruby

 Or you can just grab the gem and go:

 sudo gem install org-ruby

 ___
 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


___
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