[Orgmode] depending TODOs, scheduling following TODOs automatically

2007-10-07 Thread Rainer Stengele
Hi!

Having a TODO which depends on an earlier TODO I would like to trigger the 
timestamped scheduling of
the following TODO when the former is DONE.
How do you folks handle such dependencies?
Could any automatic process be implemented?


* TODO job 1
SCHEDULED: <2007-10-12 Fr>
* TODO job 2 (followup of job 1)
* TODO job 3 (followup of job 2)



rainer



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


Re: [Orgmode] Re: Headline level change

2007-10-07 Thread Eddward DeVilla
My bad too.  I didn't have org-mode in front of me, and I thought it
was C-right, not M-right.  I count too much on muscle memory these
days.

Edd

On 10/7/07, Wanrong Lin <[EMAIL PROTECTED]> wrote:
>
> Sorry, my mistake. I should use M-S-right to shift the whole tree, not
> just M-right.
>
> Wanrong
>
> Wanrong Lin wrote:
> > Hi,
> >
> > With v5.11, I found out that if I change the level of a headline (say
> > from level-3 to level-5 since I use odd levels only), the subtree
> > under that headlines does not move to the right accordingly. I
> > remember when I just started to use org-mode (v5.06, I think), the
> > subtree will move too. Is this a bug or I missed something that has
> > been changed? Thank you.
> >
> > Wanrong
> >
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Headline level change

2007-10-07 Thread Wanrong Lin


Sorry, my mistake. I should use M-S-right to shift the whole tree, not 
just M-right.


Wanrong

Wanrong Lin wrote:

Hi,

With v5.11, I found out that if I change the level of a headline (say 
from level-3 to level-5 since I use odd levels only), the subtree 
under that headlines does not move to the right accordingly. I 
remember when I just started to use org-mode (v5.06, I think), the 
subtree will move too. Is this a bug or I missed something that has 
been changed? Thank you.


Wanrong





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


Re: [Orgmode] Headline level change

2007-10-07 Thread Eddward DeVilla
How are you moving it?  I know if you use C-right, only the
heading goes right.  If you use C-S-right, the whole sub-tree,
sub-headings and body text goes.  (And I wish it would re-wrap, but
that's a different request.)  If a body line is not indented (it
starts in column 0) it will not move right.

Edd

On 10/7/07, Wanrong Lin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> With v5.11, I found out that if I change the level of a headline (say
> from level-3 to level-5 since I use odd levels only), the subtree under
> that headlines does not move to the right accordingly. I remember when I
> just started to use org-mode (v5.06, I think), the subtree will move
> too. Is this a bug or I missed something that has been changed? Thank you.
>
> Wanrong
>
>
> ___
> Emacs-orgmode mailing list
> Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Headline level change

2007-10-07 Thread Wanrong Lin

Hi,

With v5.11, I found out that if I change the level of a headline (say 
from level-3 to level-5 since I use odd levels only), the subtree under 
that headlines does not move to the right accordingly. I remember when I 
just started to use org-mode (v5.06, I think), the subtree will move 
too. Is this a bug or I missed something that has been changed? Thank you.


Wanrong


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


[Orgmode] Timeline view - bug or by design?

2007-10-07 Thread Wanrong Lin

Hi,

The agenda timeline view does not show any "SCHEDULED" todo items, but 
does show items with an plain active time stamp without preceding 
"SCHEDULED". Is that a bug or by design? If that is by design, what is 
the rationale here? Thanks a lot for explaining this.


Wanrong


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


Re: [Orgmode] A puzzle to solve: saved categories vs. tags

2007-10-07 Thread John Wiegley
Bastien <[EMAIL PROTECTED]> writes:

> 1. Search for a regexp
> 2. Search for a complex query
> 3. Prompt interactively for a complex query
> 4. Show all tagged entries
> 5. Prompt for a specific tag
> 6. Prompt for a specific tag (restricting to TODO entries)
> 7. Show all TODO entries
> 8. Prompt for a specific TODO
> 9. Prompt for a specific TODO (restricting to tagged entries)

I didn't see "Prompt for a specific property and value" in your list.  Is this
already possible using a complex query?

John


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


[Orgmode] listp error 5.11b

2007-10-07 Thread Richard G Riley

I have just fired up emacs get this:

Loading org...done
OVERVIEW
Wrong type argument: listp, #

I tried an empty todo.org and the same issue.

I tried --debug-init, but nothing triggers.

Can anyone suggest a fix please?


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


[Orgmode] Org-mode 5.11 released

2007-10-07 Thread Stephan Schmitt
Hi,

thanks for org-mode!

I found a bug org-mode 5.11b.

Carsten Dominik wrote:
>- The function `org-remember' can now be called with a
>  template selection key as argument.  This helps to make key
>  bindings that go directly to a specific template without
>  being prompted for a template, like this:
> 
>   (global-set-key [f5] (lambda () (interactive) (org-remember "j")))

Calling org-remember with an argument gives an error.
Fix:
# diff org.el~ org.el
12442c12442
<(if (string-p
org-force-remember-template-char)
---
>(if (stringp
org-force-remember-template-char)


Best,
Stephan


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


[Orgmode] [patch] Fix wanderlust in `org-store-link'

2007-10-07 Thread jemarch

Hello.

This tiny patch (against org version 5.10b, i didnt found a suitable
CVS repository to get non-released code) fixes `org-store-link' for
wanderlust summary mode. 

In both the latest wanderlust version (2.14.0) and in CVS wanderlust
the function `elmo-message-entity-field' do not return a list, but a
string containing the field contents.


2007-10-06  Jose E. Marchesi  <[EMAIL PROTECTED]>

* org.el (org-store-link): Expect a string from the call to
`elmo-message-entity-field' instead of a list.



--- org.el  2007-10-04 22:34:15.0 +0200
+++ org-foo.el  2007-10-06 22:44:10.0 +0200
@@ -10969,7 +10969,7 @@
  (elmo-msgdb-overview-get-entity
   msgnum (wl-summary-buffer-msgdb
 (from (wl-summary-line-from))
-(to (car (elmo-message-entity-field wl-message-entity 'to)))
+(to (elmo-message-entity-field wl-message-entity 'to))
 (subject (let (wl-thr-indent-string wl-parent-message-entity)
(wl-summary-line-subject
(org-store-link-props :type "wl" :from from :to to


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


[Orgmode] Bug: org-mode does not properly reenter tasks with the REPEAT timestamp when marked as 'DONE'

2007-10-07 Thread Robert Miesen
I apologize in advance if this is not where bugs are supposed to be sent, but i 
couldn't 
find a better place to file a bug report, so...




==BEGIN BUG REPORT==
I attempted to mark a task with the REPEAT timestamp as 'DONE' using 'C-c C-t'
and instead of the schedule timestamp for the task being moved according to the
value within REPEAT() (ex.--- REPEAT(+1w)), it simply is marked as 'DONE' like
a plain-old-task.

Reproducible: Always

Steps to Reproduce:
1. enter "TODO [#B] Some task REPEAT(+1d)
SCHEDULED: <2007-10-01 Mon>" as a task within an agenda tree
2. Mark it as done using 'C-c C-t'

Actual Results:  
Item is marked as done instead of prompting user for a closing note (if the
options for org-mode are set to do so) and marking the task as 'TODO' again.

Expected Results:  
User should have been prompted for a closing note (if the options for org-mode
are set to do so) and the item should have been marked as 'TODO', with the
'SCHEDULED' timestamp being updated according to the value found in the REPEAT
timestamp.



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


Re: [Orgmode] A puzzle to solve: saved categories vs. tags

2007-10-07 Thread Bastien
John Wiegley <[EMAIL PROTECTED]> writes:

> My desire: To hit C-u C-c \ and have it prompt me for the "entity" its
> going to search for. The possible entities are TAGS, or a property
> name. Then it asks for the text string, as usual. The result should
> make it possible for me to see all entries that came from a specific
> category or group of categories.

For now C-u C-c \ does something different:

,[ (info "(Org)Tag searches") ]
| `C-c \'
|  Create a sparse tree with all headlines matching a tags search.
|  With a `C-u' prefix argument, ignore headlines that are not a TODO
|  line.
`

I'm not using C-u C-c \ that much, mostly because I use agenda views a
lot.  But your request to make the C-c \ query interactive -- whatever
key it is bound to -- sounds nice.

As you probable know, you can already perform complex searches like:

  C-c \ [EMAIL PROTECTED]"code"/NEXT

This will search for headlines with the tag "Urgent", without the tag
"@Work", with category "code" and which TODO keyword is "NEXT".  Yes,
that's quite complex and I guess we sometime prefer not to care about
the syntax of the query, but rather be prompted for it.

If Carsten implements this, I think all the search facilities in Org
will need a bit of uniformization/clarification.  For now we have:

| key | function | knows about| C-u  |
|-+--++--|
| C-c /   | org-occur| regexp |  |
| C-c \   | org-tags-sparse-tree | tags, and more | restrict to TODO |
| C-c C-v | org-show-todo-tree   | todo keywords  | ask for keyword  |

A few ideas about this:

1. I tend to use C-c \ a lot than C-c / -- but I find the C-c / key much
   more convenient.  I guess it's far too late to switch, but still.

2. AFAIK org-tags-sparse-tree is more powerful than org-show-todo-tree.
   If we add the possibility to build interactive queries, it will
   definitely become *the* universal search interface for Org.

3. Being able to restrict to TODO entries when searching for tags is
   nice, we should keep it somehow.  Maybe org-show-todo-tree could
   do something similar by restricting the search to tags?

If I sum up, here are the search capacities that we could end up with:

1. Search for a regexp
2. Search for a complex query
3. Prompt interactively for a complex query
4. Show all tagged entries
5. Prompt for a specific tag
6. Prompt for a specific tag (restricting to TODO entries)
7. Show all TODO entries
8. Prompt for a specific TODO
9. Prompt for a specific TODO (restricting to tagged entries)

All this might need to be put in the search functions somehow:

 {0,1,2,3} would be the "universal" search functions  
 {4,5,6}   would be the tag search
 {7,8,9}would be the TODO search

Well, sorry for such a long input, I hope it's still useful.

-- 
Bastien


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


[Orgmode] Tip: Interleaving notes and todos

2007-10-07 Thread John Wiegley
I've recently found it very happen to start adding non-task "notes" into the
flow of my todos.

What I do is make notes look like completed todos.  They get entered into the
regular flow, which prompts me either to a) generate a task from them, or b)
simply file them into their related category.  Since they are implicit in a
"complete" state, I have org-mode automatically archive them into my todo
archive after a certain number of days.

I set apart the coloring of notes from todo by using the "NOTE" todo state,
and the following face values (note, these assume a white background):

 (setq org-todo-keyword-faces
   (quote (("TODO" :foreground "medium blue" :weight bold)
   ("APPT" :foreground "medium blue" :weight bold)
   ("NOTE" :foreground "dark violet" :weight bold)
   ("STARTED" :foreground "dark orange" :weight bold)
   ("WAITING" :foreground "red" :weight bold)
   ("DELEGATED" :foreground "red" :weight bold

This is paired with the following at the top of my org-mode file:

  MY TASKS  -*- mode: org; fill-column: 78; after-save-hook: 
(archive-done-tasks) -*-

  #+SEQ_TODO: TODO STARTED WAITING DELEGATED APPT | DONE DEFERRED CANCELLED NOTE
  #+ARCHIVE: archive.txt::

If you're looking for the code behind `archive-done-tasks', just add the
code following this post to your .emacs file.

John

(defvar org-my-archive-expiry-days 7
  "The number of days after which a completed task should be auto-archived.
This can be 0 for immediate, or a floating point value.")

(defun org-my-archive-done-tasks ()
  (interactive)
  (save-excursion
(goto-char (point-min))
(let ((done-regexp
   (concat "\\* \\(" (regexp-opt org-done-keywords) "\\) "))
  (state-regexp
   (concat "- State \"\\(" (regexp-opt org-done-keywords)
   "\\)\"\\s-*\\[\\([^]\n]+\\)\\]")))
  (while (re-search-forward done-regexp nil t)
(let ((end (save-excursion
 (outline-next-heading)
 (point)))
  begin)
  (goto-char (line-beginning-position))
  (setq begin (point))
  (if (re-search-forward state-regexp end t)
  (let* ((time-string (match-string 2))
 (when-closed (org-parse-time-string time-string)))
(if (>= (time-to-number-of-days
 (time-subtract (current-time)
(apply #'encode-time when-closed)))
org-my-archive-expiry-days)
(org-archive-subtree)))
(goto-char end)
(save-buffer)))

(setq safe-local-variable-values (quote ((after-save-hook archive-done-tasks

(defalias 'archive-done-tasks 'org-my-archive-done-tasks)


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


[Orgmode] A puzzle to solve: saved categories vs. tags

2007-10-07 Thread John Wiegley
Ok, I have 147k of archived todos and notes now.  Some are tagged, some are
not.  Most have an ARCHIVE_CATEGORY property (ever since Carsten so kindly
implemented it).

My desire: To hit C-u C-c \ and have it prompt me for the "entity" its going
to search for.  The possible entities are TAGS, or a property name.  Then it
asks for the text string, as usual.  The result should make it possible for me
to see all entries that came from a specific category or group of categories.

john


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