Re: [Orgmode] [PATCH] Allow 'prefix' to be set on the command line

2008-06-15 Thread Carsten Dominik


On Jun 3, 2008, at 3:34 AM, Peter Jones wrote:


This patch allows you to:

 make install prefix=/some/path

Makes installing Org-mode in a non-standard path a bit easier.


I have noticed that at least my version of make (GNU make 3.81) does  
allow me to set
the prefix like that out of the box, without the need add the ?  
before the = sign.



So I am now inclined to to remove this change again.  Peter, which  
version of make do *not* allow the prefix to be specified in this way?


- Carsten




From e0b6b847c6b8a4b0c41aff3bab0ea2fe5e45c082 Mon Sep 17 00:00:00 2001
From: Peter Jones [EMAIL PROTECTED]
Date: Thu, 29 May 2008 21:22:59 -0600
Subject: [PATCH] Allow 'prefix' to be set on the command line

This patch allows you to:

 make install prefix=/some/path
---
Makefile |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 35684f3..19fa9ca 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
EMACS=emacs

# Where local software is found
-prefix=/usr/local
+prefix?=/usr/local

# Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp
--
1.5.4.4


--
Peter Jones, pmade inc.
http://pmade.com
___
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] insert todo from agenda?

2008-06-15 Thread knubee
This seems like an obvious question, but I haven't been able to find an answer. 

Is there a simple command for entering a new TODO item from the agenda view?
(something analogous to i d for inserting a diary entry)

If not, how do people quickly enter new scheduled/deadline TODO items?

thanks



___
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: cdlatex like remember

2008-06-15 Thread Fabian Braennstroem
Hi Carsten,
* Carsten Dominik [EMAIL PROTECTED] wrote:

 On Jun 12, 2008, at 9:34 PM, Fabian Braennstroem wrote:

 Hi Dominik,

 My first name is Carsten (common mistake...)
Sorry...


 * Dominik, C. [EMAIL PROTECTED] wrote:
 Hi Fabian,

 I have no plans to extend cdlatex in this direction,
 it is really a LaTeX support module and not a general
 template module.

 Ok, but it is really great; I love it!

 That is good to know, I also could not live without it.


 There are *many* emacs packages that implement template
 insertion in one way or another.  Maybe you can find something
 here:

  http://emacs-template.sourceforge.net/related.html

 I am not sure if I understand what you mean by
 remember destrys my views.

 It was not really correct. I am actually having my emacs tiled into  
 four to
 eight windows. Org 'destroys' the setup, which is kept using

 (defun my-toggle-window-state ()
 (interactive)
 (if my-saved-configuration
;; We're in the one-window mode and want to switch back.
(progn
  (set-window-configuration my-saved-configuration)
  (setq my-saved-configuration nil))
  ;; We're in the multi-window mode, and want to save it and
  ;; move to the single window mode.
  (setq my-saved-configuration (current-window-configuration))
  (delete-other-windows)))

 Interesting.  Take a look at the variable `org-agenda-window-setup',  
 maybe that
 will help?

Thanks, I will try it!


Greetings!
 Fabian



___
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: insert todo from agenda?

2008-06-15 Thread Cezar Halmagean
knubee [EMAIL PROTECTED] writes:

 This seems like an obvious question, but I haven't been able to find an 
 answer. 

 Is there a simple command for entering a new TODO item from the agenda view?
 (something analogous to i d for inserting a diary entry)

 If not, how do people quickly enter new scheduled/deadline TODO items?


I'd like to see this feature too as I am alwas in my agenda buffer.

As people do it now is by using remember.

Cezar



___
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: insert todo from agenda?

2008-06-15 Thread Carsten Dominik


On Jun 15, 2008, at 9:01 PM, Cezar Halmagean wrote:


knubee [EMAIL PROTECTED] writes:

This seems like an obvious question, but I haven't been able to  
find an answer.


Is there a simple command for entering a new TODO item from the  
agenda view?

(something analogous to i d for inserting a diary entry)

If not, how do people quickly enter new scheduled/deadline TODO  
items?




I'd like to see this feature too as I am alwas in my agenda buffer.

As people do it now is by using remember.


What could be better than remember for this purpose?

- Carsten



___
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: insert todo from agenda?

2008-06-15 Thread Richard G Riley
Carsten Dominik [EMAIL PROTECTED] writes:

 On Jun 15, 2008, at 9:01 PM, Cezar Halmagean wrote:

 knubee [EMAIL PROTECTED] writes:

 This seems like an obvious question, but I haven't been able to
 find an answer.

 Is there a simple command for entering a new TODO item from the
 agenda view?
 (something analogous to i d for inserting a diary entry)

 If not, how do people quickly enter new scheduled/deadline TODO
 items?


 I'd like to see this feature too as I am alwas in my agenda buffer.

 As people do it now is by using remember.

 What could be better than remember for this purpose?

 - Carsten

I think that, if I understand the issue, from the agenda it would be
nicer for a default action to insert with the scheduled date defaulted
to the day which has focus.


___
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: insert todo from agenda?

2008-06-15 Thread Cezar Halmagean
Richard G Riley [EMAIL PROTECTED] writes:


 I think that, if I understand the issue, from the agenda it would be
 nicer for a default action to insert with the scheduled date defaulted
 to the day which has focus.

exactly...



___
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: insert todo from agenda?

2008-06-15 Thread knubee
 I think that, if I understand the issue, from the agenda it would be
 nicer for a default action to insert with the scheduled date defaulted
 to the day which has focus.

yes, it would be convenient if we could do that.



___
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] agenda display of scheduled sub-tasks

2008-06-15 Thread knubee
I find it helps if I can block out certain portions of my calendar to complete
certain sub-tasks. In other words, I like to look at my agenda for the day and
know that I should complete, say, sub-task A between 10-12.

I have tried the following:

** TODO Main Task [0/2]
   DEADLINE: 2008-06-17 Tue 
   - [ ] Sub-task A SCHEDULED: 2008-06-16 Mon 08:00-10:00
   - [ ] Sub-task B SCHEDULED: 2008-06-17 Tue 10:00-12:00

The result is close to the desired behavior, but the agenda view displays the
title for the MAIN task:

Monday16 June 2008
  todo:   8:00-10:00 Scheduled:  TODO Main Task [0/2]
Tuesday17 June 2008
  todo:  10:00-12:00 Scheduled:  TODO Main Task [0/2]

I would prefer to see the title of the specific SUB-TASK in the agenda view.
Like so:

Monday16 June 2008
  todo:   8:00-10:00 Scheduled:  TODO Sub-task A [0/2]
Tuesday17 June 2008
  todo:  10:00-12:00 Scheduled:  TODO Sub-task B [0/2]

Is there a way to achieve this?

thanks.



___
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] agenda display of scheduled sub-tasks

2008-06-15 Thread broek



I find it helps if I can block out certain portions of my calendar   
to complete
certain sub-tasks. In other words, I like to look at my agenda for   
the day and

know that I should complete, say, sub-task A between 10-12.

I have tried the following:

** TODO Main Task [0/2]
   DEADLINE: 2008-06-17 Tue
   - [ ] Sub-task A SCHEDULED: 2008-06-16 Mon 08:00-10:00
   - [ ] Sub-task B SCHEDULED: 2008-06-17 Tue 10:00-12:00

The result is close to the desired behavior, but the agenda view displays the
title for the MAIN task:

Monday16 June 2008
  todo:   8:00-10:00 Scheduled:  TODO Main Task [0/2]
Tuesday17 June 2008
  todo:  10:00-12:00 Scheduled:  TODO Main Task [0/2]

I would prefer to see the title of the specific SUB-TASK in the agenda view.
Like so:

Monday16 June 2008
  todo:   8:00-10:00 Scheduled:  TODO Sub-task A [0/2]
Tuesday17 June 2008
  todo:  10:00-12:00 Scheduled:  TODO Sub-task B [0/2]

Is there a way to achieve this?

thanks.




Try making Sub-tasks A and B TODO items. Doesn't that do more or less  
what you want? (It won't show the sub-tasks as [0/2], but then that  
wouldn't be accurate---neither sub-task has 2 components.)


Best,

Brian vdB


___
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: insert todo from agenda?

2008-06-15 Thread Manish
May be I misunderstood but it seems following setup
does all that you want (and more).

Please see below.

,[ Relevant setup ]
| (defun my-start-clock-if-needed ()
|  (save-excursion
|(goto-char (point-min))
|(when (re-search-forward :CLOCK-IN: nil t)
|   (replace-match )
|   (org-clock-in
|
| (setq org-remember-templates
|   (quote
|(
| (Client1 Task ?g * NEWTASK %? %^g %\n  SCHEDULED: %t\n
:CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client1.org Unprocessed
Tasks)
| (Client2 Task ?G * NEWTASK %? %^g % \n  SCHEDULED: %t\n
:CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client2.org Unprocessed
Tasks)
| (Personal Tasks ?p * NEWTASK %? % \n  SCHEDULED: %t\n
:CLOCK-IN:\n  CREATED: %U\n  ~/org.git/personal.org Unprocessed
Tasks)
| (Appointment @ Client1 ?a * APPT %? % \n  SCHEDULED: %^{At:
}T\n  :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client1.org New
Appointments)
| (Appointment @ Client2 ?A * APPT %? % \n  SCHEDULED: %^T{At:
}\n  :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client2.org New
Appointments)
| (Notes ?n * %?\n  %a\n  CREATED: %U\n  ~/org.git/notes.org Notes)
| (Journal 106 \n* JOURNAL Entry at %U\n  %?
~/org.git/journal.org Journal)
|   )))
`

This setup:

- schedules the task by default for today (%t)
- records the date the task was created (%T)
- prompts for tags (%^g)
- start the clock when you start creating the task and offer to clock
  out when you save the task (:CLOCK-IN: and my-start-clock-if-needed)
- takes you to the location the task is being filed when you save (%).

You can then refile it using org-refile. (C-c C-w by default.)

This works irrespective of the buffer you are in (you need not be in ageda.)

Thanks to Bernt for much of this setup and ideas.

Please do see sec. #9 for more details.  It lets you be pretty creative.

Best,
-- Manish


___
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: insert todo from agenda?

2008-06-15 Thread Manish
   Please do see sec. #9 for more details.  It lets you be pretty creative.

I meant sec #9 of the org manual.  Sorry.

-- Manish


___
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: insert todo from agenda?

2008-06-15 Thread Richard G Riley
Manish [EMAIL PROTECTED] writes:

 May be I misunderstood but it seems following setup
 does all that you want (and more).

 Please see below.

 ,[ Relevant setup ]
 | (defun my-start-clock-if-needed ()
 |  (save-excursion
 |(goto-char (point-min))
 |(when (re-search-forward :CLOCK-IN: nil t)
 |   (replace-match )
 |   (org-clock-in
 |
 | (setq org-remember-templates
 |   (quote
 |(
 | (Client1 Task ?g * NEWTASK %? %^g %\n  SCHEDULED: %t\n
 :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client1.org Unprocessed
 Tasks)
 | (Client2 Task ?G * NEWTASK %? %^g % \n  SCHEDULED: %t\n
 :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client2.org Unprocessed
 Tasks)
 | (Personal Tasks ?p * NEWTASK %? % \n  SCHEDULED: %t\n
 :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/personal.org Unprocessed
 Tasks)
 | (Appointment @ Client1 ?a * APPT %? % \n  SCHEDULED: %^{At:
 }T\n  :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client1.org New
 Appointments)
 | (Appointment @ Client2 ?A * APPT %? % \n  SCHEDULED: %^T{At:
 }\n  :CLOCK-IN:\n  CREATED: %U\n  ~/org.git/client2.org New
 Appointments)
 | (Notes ?n * %?\n  %a\n  CREATED: %U\n  ~/org.git/notes.org 
 Notes)
 | (Journal 106 \n* JOURNAL Entry at %U\n  %?
 ~/org.git/journal.org Journal)
 |   )))
 `

 This setup:

 - schedules the task by default for today (%t)

The Agenda insert should set the date and time to the date and time
under the cursor so I dont think this is the same thing being requested.


___
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