[O] [PATCH] org-odt: Emit OD compatible date string in the default case

2011-07-27 Thread Jambunathan K
From 263ede1b312bb9330281e179b6d767c07cfbf12f Mon Sep 17 00:00:00 2001
From: Jambunathan K kjambunat...@gmail.com
Date: Wed, 27 Jul 2011 11:27:23 +0530
Subject: [PATCH 2/2] org-odt: Emit OD compatible date string in the default case

* contrib/lisp/org-odt.el (org-odt-format-date): New
(org-odt-update-meta-file): Use the above routine

Knocks off an error reported by
http://tools.services.openoffice.org/odfvalidator/
---
 contrib/lisp/org-odt.el |   28 +++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index bab7590..fbbf638 100644
--- a/contrib/lisp/org-odt.el
+++ b/contrib/lisp/org-odt.el
@@ -1351,10 +1351,36 @@ MAY-INLINE-P allows inlining it as an image.
   (message Created %s target)
   (set-buffer (find-file-noselect target t)))
 
+(defun org-odt-format-date (date)
+  (let ((warning-msg
+OpenDocument files require that dates be in ISO-8601 format. Please 
review your DATE options for compatibility.))
+;; If the user is not careful with the date specification, an
+;; invalid meta.xml will be emitted.
+
+;; For now honor user's diktat and let him off with a warning
+;; message. This is OK as LibreOffice (and possibly other
+;; apps) doesn't deem this deviation as critical and continue
+;; to load the file.
+
+;; FIXME: Surely there a better way to handle this. Revisit this
+;; later.
+(cond
+ ((and date (string-match % date))
+  ;; Honor user's diktat. See comments above
+  (org-lparse-warn warning-msg)
+  (format-time-string date))
+ (date
+  ;; Honor user's diktat. See comments above
+  (org-lparse-warn warning-msg)
+  date)
+ (t
+  ;; ISO 8601 format
+  (format-time-string %Y-%m-%dT%T%:z)
+
 (defun org-odt-update-meta-file (opt-plist)
   (with-current-buffer
   (find-file-noselect (expand-file-name meta.xml) t)
-(let ((date (or (plist-get opt-plist :effective-date) ))
+(let ((date (org-odt-format-date (plist-get opt-plist :date)))
  (author (or (plist-get opt-plist :author) ))
  (email (plist-get opt-plist :email))
  (keywords (plist-get opt-plist :keywords))
-- 
1.7.2.3


-- 


Re: [O] Habits not showing in agenda and no progress graph

2011-07-27 Thread John Hendy
On Wed, Jul 27, 2011 at 12:32 AM, Michael Brand
michael.ch.br...@gmail.com wrote:
 Hi John

 - State logging is working ok as seen from the LOGBOOK.

Good to know.

 - A habit task is simply not shown before the SCHEDULED date. Try this
  task state to get an impression of the graph (change TODO and DONE
  keywords to reflect your setup):

Ah. That might have done it. I was playing around a bit tonight and
noticed that if I changed the scheduled date, I got a little
multi-colored bar looking thing in agenda week view. Is that the
graph?

  #+begin_src org
    ,* TODO note down month's accomplishments/contributions
    ,  SCHEDULED: 2011-07-25 Mon .+5d/10d
    ,  :LOGBOOK:
    ,  - State DONE       from TODO       [2011-07-20 Wed 12:00]
    ,  - State DONE       from TODO       [2011-07-15 Fri 12:00]
    ,  :END:
    ,  :PROPERTIES:
    ,  :STYLE:    habit
    ,  :LAST_REPEAT: [2011-07-20 Wed 12:00]
    ,  :END:
  #+end_src

So... is the graph the above? Simply a documented history of habits?
Or is it something else (perhaps the colored thing in agenda view)?

 - Side note: It seems that like when experimenting you have set the
  task twice to DONE at the same time which is not useful but does not
  hurt to get started with habits.

Yeah -- it was an accident. I was just verifying that cycling to
done didn't really close the task but, indeed, added another state
change note and updated LAST_REPEAT. In real use, I wouldn't do this
more than per the scheduled habit timeline.

Lastly, if that graph *is* the colored bar in agenda, I notice that
it's cutting off most of my text. For example, this updated bit:

,-
| ** todo note down month's accomplishments/contributions
|SCHEDULED: 2011-07-22 Fri .+25d/35d
`-

Produces this in agenda:

,-
| Wednesday  27 July 2011
|  eval:   todo note down month's acc !
   :eval::
| Thursday   28 July 2011
`-

The space between acc and the ! is filled with blue, then green,
then a yellow, and then a red square(s). Can one change this
appearance and how early the graph starts?

If that's the graph, then I guess I just didn't understand how the
display in agenda worked and was mistaken in expecting future events
to show up as I scrolled through the year's view. I think that's fine.
Just wanted to make sure I wasn't messing something up.

The manual still gives the impression that the graph will show the
history of my habits, whereas this thing in agenda is only showing
whether I'm ahead, on schedule, or late for this *current* habit.


Thanks for any input,
John



 On Tue, Jul 26, 2011 at 23:22, John Hendy jw.he...@gmail.com wrote:
 I'm attempting to implement habits for a couple of routine things I
 should do at work on a regular basis. I've been following the manual
 to set this up:

 ,-
 | 1. You have enabled the habits module by customizing the variable
 org-modules. CHECK
 | 2. The habit is a TODO item, with a TODO keyword representing an
 open state. CHECK
 | 3. The property STYLE is set to the value habit. CHECK
 | 4. The TODO has a scheduled date, usually with a .+ style repeat
 interval... CHECK
 | 5. The TODO may also have minimum and maximum ranges specified by
 using the syntax ‘.+2d/3d’... CHECK
 | 6. You must also have state logging for the DONE state enabled... THINK SO
 `-

 I have mid-year and yearly reviews and *always* kick myself for not
 recording things I've done regularly, such that I end up scouring the
 earth for details about what I did in emails, calendar items, and org
 files. I'd like to do this monthly to save me 2x/year headaches. So...
 enter my first attempt at implementing habits:

 -
 ** todo note down month's accomplishments/contributions
    SCHEDULED: 2011-08-20 Sat .+25d/35d
   :LOGBOOK:
   - State done       from todo       [2011-07-26 Tue 16:02]
   - State done       from todo       [2011-07-26 Tue 16:02]
   :END:
   :PROPERTIES:
   :STYLE:    habit
   :LAST_REPEAT: [2011-07-26 Tue 16:02]
   :END:
 -

 Note that above for #6, I said I thought so. I'm saying that as the
 todo - done state appears to be tracked above in my cycling.
 Typically, I just get a completed inactive time stamp and it gets
 marked done. The fact that it stays open I'm guessing means the habit
 is working.

 But... I have a couple of questions:

 #1: the habits aren't showing up in agenda. I did =C-c a a=, then =v
 y= and accepted that I really wanted to see the year. I get no monthly
 views of the above habit, despite seeing the minibuffer mode as
 Org-agenda Year Dds Grid Habit If I press =K=, it tells me that
 habits have been turned off, so I know they were on.

 #2: I just don't understand this at all (from the manual):

 ,-
 | What's really useful about habits is that they are displayed along
 with a consistency graph,
 | to show how consistent you've been at getting that task done in the
 past. This graph shows
 | every day that the task was done over the past three weeks, with
 colors for each 

Re: [O] Habits not showing in agenda and no progress graph

2011-07-27 Thread Michael Brand
Hi John

On Wed, Jul 27, 2011 at 08:16, John Hendy jw.he...@gmail.com wrote:
 I was playing around a bit tonight and
 noticed that if I changed the scheduled date, I got a little
 multi-colored bar looking thing in agenda week view. Is that the
 graph?

yes, see also the PNG link in the first post of John Wiegley, the
author of org-habit.el, in this thread
http://thread.gmane.org/gmane.emacs.orgmode/43492

  #+begin_src org
    ,* TODO note down month's accomplishments/contributions
    ,  SCHEDULED: 2011-07-25 Mon .+5d/10d
    ,  :LOGBOOK:
    ,  - State DONE       from TODO       [2011-07-20 Wed 12:00]
    ,  - State DONE       from TODO       [2011-07-15 Fri 12:00]
    ,  :END:
    ,  :PROPERTIES:
    ,  :STYLE:    habit
    ,  :LAST_REPEAT: [2011-07-20 Wed 12:00]
    ,  :END:
  #+end_src

 So... is the graph the above? Simply a documented history of habits?

no

 Or is it something else (perhaps the colored thing in agenda view)?

yes, the the colored thing in agenda view

 Lastly, if that graph *is* the colored bar in agenda, I notice that
 it's cutting off most of my text. For example, this updated bit:
 [...]
 The space between acc and the ! is filled with blue, then green,
 then a yellow, and then a red square(s). Can one change this
 appearance and how early the graph starts?

I would look in C-h org-habit TAB done in an agenda view and maybe
also org-habit.el. (I did not change habit the config yet but
someday/maybe I would like to add somehow in org-habit.el a sort order
within habits of alternatively remaining days; now it's some ratio
of last and remaining days.)

 If that's the graph, then I guess I just didn't understand how the
 display in agenda worked and was mistaken in expecting future events
 to show up as I scrolled through the year's view. I think that's fine.
 Just wanted to make sure I wasn't messing something up.

 The manual still gives the impression that the graph will show the
 history of my habits, whereas this thing in agenda is only showing
 whether I'm ahead, on schedule, or late for this *current* habit.

maybe C-h org-habit-show-habits-only-for-today works for you?

 Thanks for any input

http://thread.gmane.org/gmane.emacs.orgmode/35628
http://orgmode.org/worg/org-tutorials/tracking-habits.html

Michael



Re: [O] Odd behavior with first org file opened

2011-07-27 Thread Tassilo Horn
Rafael rvf0...@gmail.com writes:

Hi Rafael,

 If I run:

 emacs -Q -L ~/Dropbox/emacs/site-lisp/org-mode/lisp/ 

 (that's where I put org-mode),
 and then open any org file (I have tried with a very simple one, with
 only one heading), such file is not syntactically colored. However, if I
 open any second org file, then it is colored without problem. Or if I
 say M-x revert-file with the first.

I think you need to require org-install to initialize an external org
version.  So basically

  emacs -Q -L ~/Dropbox/emacs/site-lisp/org-mode/lisp/ \
-e (require 'org-install)

should do the trick.

Bye,
Tassilo




Re: [O] Habits not showing in agenda and no progress graph

2011-07-27 Thread Memnon Anon
John Hendy jw.he...@gmail.com writes:

 Ah. That might have done it. I was playing around a bit tonight and
 noticed that if I changed the scheduled date, I got a little
 multi-colored bar looking thing in agenda week view. Is that the
 graph?

Yes.

  #+begin_src org
    ,* TODO note down month's accomplishments/contributions
    ,  SCHEDULED: 2011-07-25 Mon .+5d/10d
    ,  :LOGBOOK:
    ,  - State DONE       from TODO       [2011-07-20 Wed 12:00]
    ,  - State DONE       from TODO       [2011-07-15 Fri 12:00]
    ,  :END:
    ,  :PROPERTIES:
    ,  :STYLE:    habit
    ,  :LAST_REPEAT: [2011-07-20 Wed 12:00]
    ,  :END:
  #+end_src

 So... is the graph the above? Simply a documented history of habits?
 Or is it something else (perhaps the colored thing in agenda view)?

The colored graph in your agenda view.
A setting of 
 org-habit-following-days 7
 org-habit-preceding-days 21
 org-habit-show-habits-only-for-today t
will show that graph, representing the past 3 weeks and the next week
ahead in your *daily* Agenda for today.
If you have a task like Water plants that should be done
.+2d/4d, you will see how well you have been keeping up with it:
* marks DONE, ! marks today.
The background color reminds you of the range you set up:
Green is great, yellow is okay, red is ... bad ;).

 Lastly, if that graph *is* the colored bar in agenda, I notice that
 it's cutting off most of my text. For example, this updated bit:

Yes, better to keep the headlines short for habits or the graph will cut
it off.

 The space between acc and the ! is filled with blue, then green,
 then a yellow, and then a red square(s). Can one change this
 appearance and how early the graph starts?

See above.

 If that's the graph, then I guess I just didn't understand how the
 display in agenda worked and was mistaken in expecting future events
 to show up as I scrolled through the year's view. I think that's fine.
 Just wanted to make sure I wasn't messing something up.

From what I read, I don't think org-habit is the tool you want.
I found they work best for fairly regular tasks; I use them for cleaning
tasks like Do vacuum cleaning .+3d/5d.

 The manual still gives the impression that the graph will show the
 history of my habits, whereas this thing in agenda is only showing
 whether I'm ahead, on schedule, or late for this *current* habit.

If you are ahead, on schedule, late for this *current* habit now (!)
and for the past e.g. three weeks (asterisk).

Memnon




Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-27 Thread Daniel E . Doherty
At Tue, 26 Jul 2011 11:47:25 -0500,
Ryan,

Thanks for chiming in.  I'm still in the dark on this.  I'm hoping a
guru will ride to the rescue.

Org is without question the best organizational tool I've ever used, and
to use it for billing would be a real boon to me, but I'm stuck on this
issue at the moment.

Regards,

Dan

A Ryan Reynolds wrote:
 
 I've been quietly following this thread and I think I should chime in
 and say that I'm having the same problem. Maybe it's my lack of
 experience with Calc, but I just can't get any formula acting on time
 columns formatted as HH:MM to parse it as a number of minutes rather
 than a ratio of HH/MM.
 
 --
 A. Ryan Reynolds
 
 



Re: [O] org unavailable in ELPA package manager

2011-07-27 Thread Bastien
Hi Max,

hope you'll get this sorted out -- I'm sure Jambunathan will provide
usefull directions.

If you see anything that can be clearer in Worg's instructions, please
let us know.

Thanks!

-- 
 Bastien



Re: [O] Move to item to the bottom

2011-07-27 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 [Feature suggestion] (related to what I described in the last post of
 this thread):

 Keep configuration options for an org file in a separate file. Could
 be:
  * nameoftheorgfile.conf

I don't think this is necessary.  You can already include setup files 
by using the #+SETUPFILE: option.

HTH,

-- 
 Bastien



Re: [O] Remove orgx files

2011-07-27 Thread Bastien
Hi Nathan,

Nathan Neff nathan.n...@gmail.com writes:

 I've recently started using org-mode to export to html,
 and I have empty .orgx files laying around in my directory.

 Is there a way have the publish routine delete these .orgx files after
 exporting,
 or is there a way to specify that they should be created in ~/tmp or
 something like that?

it should be fixed now.  .orgx files are no longer kept anywhere.

Thanks for spotting this,

-- 
 Bastien



Re: [O] [PATCH] org-odt: Include mimetype in the exported odt file

2011-07-27 Thread Bastien
Hi Jambunathan,

Jambunathan K kjambunat...@gmail.com writes:

From 3530d2b3bd5b903e9b568a6412573faa79862d36 Mon Sep 17 00:00:00 2001
 From: Jambunathan K kjambunat...@gmail.com
 Date: Wed, 27 Jul 2011 02:50:48 +0530
 Subject: [PATCH] org-odt: Include mimetype in the exported odt file

Applied, thanks.

-- 
 Bastien



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-27 Thread Bastien
Hi Daniel,

Daniel E.Doherty ded-...@ddoherty.net writes:

 I am trying to take a duration output by CLOCKTABLE and multiply it by
 dollars-per-hour (or dollars-per-second, either way) and get an answer
 in units of dollars.

I see, thanks for the explanation.

 Can you suggest a way this can be done?  

Since latest git commit, you can now use ;t instead of ;T as a flag for
durations computations.  ;t will output results according to the new
variable `org-table-duration-custom-format', which you can check.

See this example:

#+begin_src org
  |  Task 1 |   Task 2 |Total |
  |-+--+--|
  |2:12 | 1:47 | 03:59:00 |
  | 3:02:20 | -2:07:00 | 0.92 |
  #+TBLFM: @2$3=$1+$2;T::@3$3=$1+$2;t
#+end_src

.92 is a fraction of hours, because `org-table-duration-custom-format'
is set to 'hours.

HTH,

-- 
 Bastien



Re: [O] Using org-mode for recipes (i.e. cooking)

2011-07-27 Thread Bastien
Hi Erik,

Erik Hetzner e...@e6h.org writes:

   https://gitorious.org/org-cook/org-cook
   https://gitorious.org/org-brew/org-brew

I'm a terrible cooker/brewer...  but I love these ideas!

I allowed myself to put this in Worg -- org-hacks.org, 
in a new Musings section.

Thanks :)

-- 
 Bastien



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-27 Thread Bastien
Hi Max,

Max Mikhanosha m...@openchat.com writes:

 Can you give an example?

 * Parent
 ** TODO Item 1
 ** TODO Item 2
 ** TODO Item 3
 ** TODO Item 4
 ** NEXT Item 5 Current  (the one with TRIGGER property)
 ** TODO Item 6
 ** Item 7
 ** TODO Item 8
 ** DONE Item 9

 Below are example list of candidates depending on option

 from-top  = 1,2,3,4,6,7,8
 from-bottom   = 8,7,6,4,3,2,1
 from-current  = 6,7,8,1,2,3,4
 from-current,no-wrap  = 6,7,8

 Adding todo-only will eliminate item 7 from all of above, adding
 include-done will include item 9.

 After inital candidate list is established as above, its sorted by priority
 or effort, then 1st item is made NEXT.

Cristal-clear, thanks!

 I grepped *.el and saw other file using it without eval-when-compile
 (it was htmlize.el i think), so I thought it was ok in contrib. 

To be clear: it *is* okay in contrib/ as files in contrib/ will not go
to Emacs core.  But the more we can avoid this the better.

 Attached is a test file you can use for all the situation that you
 asked clarification for. After testing this file I'm thinking maybe
 from-current should be a default instead of from-top. 

Yes, I also think from-current should be the default. 

Also, it would be really nice to update this tutorial on Worg and to
show how to use the new feature you introduced:

  http://orgmode.org/worg/org-contrib/org-depend.html

Thanks!

-- 
 Bastien



Re: [O] [PATCH] org-odt: Emit OD compatible date string in the default case

2011-07-27 Thread Bastien
Hi Jambunathan,

Jambunathan K kjambunat...@gmail.com writes:

From 263ede1b312bb9330281e179b6d767c07cfbf12f Mon Sep 17 00:00:00 2001
 From: Jambunathan K kjambunat...@gmail.com
 Date: Wed, 27 Jul 2011 11:27:23 +0530
 Subject: [PATCH 2/2] org-odt: Emit OD compatible date string in the
 default case

Applied, thanks.

-- 
 Bastien



Re: [O] Was tj3 -- tikz gantt chart

2011-07-27 Thread Bastien
Hi John,

John Hendy jw.he...@gmail.com writes:

 I looked into taskjuggler again, but I can't figure out what the
 status is on tj3 and org-mode. 

AFAICT, Org's Taskjuggler exporter works fine with both tj2 and tj3.  

You need to configure `org-export-taskjuggler-target-version'.

There is some work to be done to make this library even more useful (see
the the todo list in org-taskjuggler.el) but it's already usable.  I use
it for a project.

 In any case, it looks like *just* after this discussion, something a
 bit more formal came about for gantt charts and TikZ. I thought you
 and others might be interested in it:
 http://wiki.contextgarden.net/Gantt-tikz

 It looks like a summary/walkthrough of this package:
 http://www.martin-kumm.de/tex_gantt_package.php

 It looks quite reasonable and seems to be as advanced as I'd need for
 the moment -- just something to track progress and map action paths
 through a project. Anyway, let me know what you think and if you think
 org-mode could be adapted to export via that or pull together the
 necessary info to generate such a chart based on tags or properties. I
 haven't done much with that.

Nice -- I'd love to see how Org can produce such TeX gantt charts.

Thanks for the pointers,

-- 
 Bastien



Re: [O] [PATCH 1/2] Fix error with %e agenda prefix format when there is no effort set

2011-07-27 Thread Bastien
Hi Max,

Max Mikhanosha m...@openchat.com writes:

 2. Two new commands, org-agenda-effort-up, org-agenda-effort-down,
 that would shift the effort up/down to the next value, with suggested
 bindings of M-Left and M-Right, which will allow effortless editing of
 efforts in Agenda

That'd be nice -- thanks for your time!

-- 
 Bastien



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-27 Thread Bastien
Hi Max,

Max Mikhanosha m...@openchat.com writes:

 Amended patch attached, changes:

 - use (eval-when-compile) with require 'cl
 - changed include-done to todo-and-done-only
 - Added defcustom org-depend-find-next-options for default options
   which are now: from-current,todo-only,priority-up
 - cleaned up documentation  

Great.  Applied, thanks for the fast rewrite!

-- 
 Bastien



Re: [O] [PATCH] Fix %e agenda format and refresh of agenda items in general

2011-07-27 Thread Bastien
Hi Max,

Max Mikhanosha m...@openchat.com writes:

 Here is an updated patch, its split into 3 very small part, belowe is
 an explanaton of each:

I applied all three, thanks a bunch for this.

 1. First patch is my original patch to fix error with %e agenda
 format.

Okay.

 2. Second patch fixes what I beleive to be a logic bug. Most agenda
 related commands have the following format:

I understand and I agree, thanks for the clear explanations and the fix.

 3. Third patch changes (org-agenda-set-effort) to refresh the item. It 
 requires
 the 2nd patch to work.

Applied too.

Thanks a lot!

-- 
 Bastien



Re: [O] How to make a tag-todo search within a time range

2011-07-27 Thread Memnon Anon
Hi etimecowboy,

etimecowboy etimecow...@gmail.com writes:

 For example, I want to search the scheduled TODO items with the work
 tag in the past 3 days. I thought the searching string was:

 +work+SCHEDULED\today\+SCHEDULED=\today-3d\,
   ^?   ^?^?  ^?
 but failed to get the right output. Anyone could help?

C-c a m
+work+SCHEDULEDtoday+SCHEDULED-3d
RET

seems to work here.
I haven't done this in ages, so I looked the great 
tutorial advanced-searching.org @worg.

You escaped the `' which is not necessary when you are 
searching interactively AFAICS. 
Does it work with my recipe above, i.e. interactively?

Memnon





Re: [O] New feature: loop over siblings for some commands

2011-07-27 Thread Bastien
Hi David,

David Maus dm...@ictsoc.de writes:

 I highly recommend to not use this macro but to build the intended
 functionality with separate building blocks: Factor out the flesh of
 the respective functions (e.g. org-schedule) and use org-map-entries
 to map. As far as I can see, the latter provides all we need:

I took this road.

The first patch manually reverts the commit you are commenting.

The second patch lets `org-map-entries' take a region as a scope.

The third patch implements the loop functionality by just using
`org-map-entries', not a macro.

I'm sure we could have an `org-loop' macro factoring out the duplicate
code in the new `org-schedule' and `org-deadline'.  If you have time to
look at this, that will greatly help.

 Another abstraction: Instead
 'org-loop-over-siblings-with-active-region' something like:
 'org-loop-over-headlines-with-active-region' that can be set to a
 symbol or a list of symbols indicating which headings to loop over
 (e.g. 'siblings, 'children, ...).

The variable is now called `org-loop-over-headlines-in-active-region'
and understand these kind of values:

- nil: don't loop
- t: loop over all headlines
- MATCH: a tag/property/todo match to loop over matching headlines

If you can test these patches and send some feedback, that'd be nice!

Thanks again for the analysis and the suggested solution.

From 130dc4e2b1e6a353197a6277818b94b11c0c38d0 Mon Sep 17 00:00:00 2001
From: Bastien Guerry b...@altern.org
Date: Wed, 27 Jul 2011 16:32:41 +0200
Subject: [PATCH 1/3] Manually revert
 366254217ac6faea20a5d43fae065bd028806eab.

As David Maus pointed out, the implementation is not good.

* org.el (org-deadline, org-schedule): Don't loop.
(org-loop-over-siblings-within-active-region-p): Remove.
* org-archive.el (org-archive-subtree)
(org-archive-to-archive-sibling, org-toggle-archive-tag):
Don't loop.

* org-macs.el (org-loop-over-siblings-in-active-region):
Remove.
---
 lisp/org-archive.el |  426 +--
 lisp/org-macs.el|   20 ---
 lisp/org.el |  144 --
 3 files changed, 276 insertions(+), 314 deletions(-)

diff --git a/lisp/org-archive.el b/lisp/org-archive.el
index 30e6184..f6898ea 100644
--- a/lisp/org-archive.el
+++ b/lisp/org-archive.el
@@ -192,159 +192,158 @@ If the cursor is not at a headline when this command is called, try all level
 1 trees.  If the cursor is on a headline, only try the direct children of
 this heading.
   (interactive P)
-  (org-loop-over-siblings-in-active-region
-   (if find-done
-   (org-archive-all-done)
- ;; Save all relevant TODO keyword-relatex variables
- 
- (let ((tr-org-todo-line-regexp org-todo-line-regexp) ; keep despite compiler
-	   (tr-org-todo-keywords-1 org-todo-keywords-1)
-	   (tr-org-todo-kwd-alist org-todo-kwd-alist)
-	   (tr-org-done-keywords org-done-keywords)
-	   (tr-org-todo-regexp org-todo-regexp)
-	   (tr-org-todo-line-regexp org-todo-line-regexp)
-	   (tr-org-odd-levels-only org-odd-levels-only)
-	   (this-buffer (current-buffer))
-	   ;; start of variables that will be used for saving context
-	   ;; The compiler complains about them - keep them anyway!
-	   (file (abbreviate-file-name
-		  (or (buffer-file-name (buffer-base-buffer))
-		  (error No file associated to buffer
-	   (olpath (mapconcat 'identity (org-get-outline-path) /))
-	   (time (format-time-string
-		  (substring (cdr org-time-stamp-formats) 1 -1)
-		  (current-time)))
-	   category todo priority ltags itags atags
-	   ;; end of variables that will be used for saving context
-	   location afile heading buffer level newfile-p infile-p visiting)
-   
-   ;; Find the local archive location
-   (setq location (org-get-local-archive-location)
-	 afile (org-extract-archive-file location)
-	 heading (org-extract-archive-heading location)
-	 infile-p (equal file (abbreviate-file-name afile)))
-   (unless afile
-	 (error Invalid `org-archive-location'))
-   
-   (if ( (length afile) 0)
-	   (setq newfile-p (not (file-exists-p afile))
-		 visiting (find-buffer-visiting afile)
-		 buffer (or visiting (find-file-noselect afile)))
-	 (setq buffer (current-buffer)))
-   (unless buffer
-	 (error Cannot access file \%s\ afile))
-   (if (and ( (length heading) 0)
-		(string-match ^\\*+ heading))
-	   (setq level (match-end 0))
-	 (setq heading nil level 0))
-   (save-excursion
-	 (org-back-to-heading t)
-	 ;; Get context information that will be lost by moving the tree
-	 (setq category (org-get-category nil 'force-refresh)
-	   todo (and (looking-at org-todo-line-regexp)
-			 (match-string 2))
-	   priority (org-get-priority
-			 (if (match-end 3) (match-string 3) ))
-	   ltags (org-get-tags)
-	   itags (org-delete-all ltags (org-get-tags-at))
-	   atags (org-get-tags-at))
-	 (setq ltags (mapconcat 'identity ltags  )
-	   itags (mapconcat 'identity itags  ))
-	 ;; We first only copy, in case 

Re: [O] New feature: loop over siblings for some commands

2011-07-27 Thread Bastien
Hi David,

I've finally managed to get there.

David Maus dm...@ictsoc.de writes:

 The macro suffers from leaking: It let-binds symbols like beg, end
 etc. that might be present in ,@body. The let-bound symbols will
 shadow body's.

Yes, you're right.

 The whole problem of leaking macros is discussed in Peter Seibel's
 Practical Common Lisp, Chapter 8

 http://www.gigamonkeys.com/book/macros-defining-your-own.html

Nice reading!

 The solution is a heavy use of C-h f gensym RET for all symboles
 needed in the macro to create fresh, unique und uninterned symbols.

Thanks for the suggested solution.

I'll continue replying to your other email.

Thanks,

-- 
 Bastien



[O] making coloured tables

2011-07-27 Thread Andras Major
Hi there,

I'm really intrigued by org-mode's table and spreadsheet functionality
and would like to use it for those cases where I found excel and
gnumeric impractically cumbersome.

What I want are two slightly diffent things:

- Make tables that have cells with individual background colours when
exported as HTML or PDF.

- Make tables that have cells with background colours and typeface
details (bold, italic, etc.) based on contents of either the cells
themselves or other cells in the table. (Example: mark all negative
numerical values of a table with a red background.)

Furthermore, the colouring should be portable, i.e. independent of the
settings in .emacs.

Is this possible with org-mode?

Thanks,

  András



Re: [O] calculation question

2011-07-27 Thread Bastien
Hi Michael,

Michael Brand michael.ch.br...@gmail.com writes:

 As an alternative to overlays used by C-c } on a table to display
 the coordinate grid, I would suggest the attached patch that displays
 the coordinates in the table editor C-c ` like this:

 #+begin_src org
 #
 # Edit field @2$3 and finish with C-c C-c
 #
 123
 #+end_src

This is a neat addition, it enhances accessibility.

I've now applied this patch.

Thanks!

-- 
 Bastien



Re: [O] org-icons package

2011-07-27 Thread Bastien
Hi Renzo,

Renzo Been swangdood...@gmail.com writes:

 However, some things about the org-icons package... It seems to be a little
 outdated.  Are there many org-moders out there still using it?  

I'm not using it.

 Were there
 ever any plans to include it in the org-distribution? 

I don't know, I wasn't aware of this package.

 Right now it needs to be installed by hand, because the patch to
 org.el is outdated...  Also, I need to load it two times in my .emacs
 before the icons work...

The best thing would be to invite Nicolas Girard to discuss this 
on this list.  Can you do this?

Thanks,

-- 
 Bastien



[O] Trouble compiling

2011-07-27 Thread Avery Chan

To whom it may concern,

I am trying to load orgmode via the emacs-starter kit. Following the  
instructions, I did the following:


  508  cp -R emacs-starter-kit ~/.emacs.d
  509  cd /Users/avery/.emacs.d
  511  git submodule init
  515  git submodule update

The update procedure failed with the following output:

Cloning into src/org...
error: Unable to get pack file 
http://orgmode.org/org-mode.git/objects/pack/pack-beb4230c6615129746e9adfd39b5a38d78a4c191.pack
transfer closed with 49103369 bytes remaining to read
error: Unable to find db094c320412204a990668024f88eef00d307a44 under 
http://orgmode.org/org-mode.git
Cannot obtain needed object db094c320412204a990668024f88eef00d307a44
error: Fetch failed.
Clone of 'http://orgmode.org/org-mode.git' into submodule path 'src/ 
org' failed


Is there a way for me to fix this? I suspect that it is a  
configuration issue since when I tried the URL I got a 403.


Thanks!

Avery



Re: [O] Remove orgx files

2011-07-27 Thread Carsten Dominik

On 27.7.2011, at 14:37, Bastien wrote:

 Hi Nathan,
 
 Nathan Neff nathan.n...@gmail.com writes:
 
 I've recently started using org-mode to export to html,
 and I have empty .orgx files laying around in my directory.
 
 Is there a way have the publish routine delete these .orgx files after
 exporting,
 or is there a way to specify that they should be created in ~/tmp or
 something like that?
 
 it should be fixed now.  .orgx files are no longer kept anywhere.

Hi Bastien,

I have not looked at you patch.  But the orgx files are produced for
index and sitemap (I think) purposes.  If a site has many files and the
index get recreated after republishing a single changed file, the orgx
files would be needed.

Cheers.

- Carsten

 
 Thanks for spotting this,
 
 -- 
 Bastien
 




Re: [O] Agenda view filter

2011-07-27 Thread Bastien
Hi Renger,

Renger van Nieuwkoop ren...@ecoplan.ch writes:

 I try to define a view that should show me my agenda for today with
 all NEXT/TODO items with priority A.
 I found some code for the priority but did not manage to get it
 running with filtering for NEXT/TODO  (I tried adding (todo “NEXT|
 TODO”) but that did not work).
  
 (setq org-agenda-custom-commands
 '((p Prio A and scheduled agenda 
 ((org-agenda-entry-types '(:scheduled))
 (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp \\[#
 A\\]
 )

I don't have time to help more right now but I suggest you read this
great tutorial:

  http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html

Best,

-- 
 Bastien



Re: [O] Trouble compiling

2011-07-27 Thread Bastien
Avery Chan misterav...@gmail.com writes:

 Cloning into src/org...
 error: Unable to get pack file
 http://orgmode.org/org-mode.git/objects/pack/pack-beb4230c6615129746e9adfd39b5a38d78a4c191.pack

This URL works okay for me.

 transfer closed with 49103369 bytes remaining to read
 error: Unable to find db094c320412204a990668024f88eef00d307a44 under 
 http://orgmode.org/org-mode.git
 Cannot obtain needed object db094c320412204a990668024f88eef00d307a44
 error: Fetch failed.
 Clone of 'http://orgmode.org/org-mode.git' into submodule path 'src/org'
 failed

 Is there a way for me to fix this? I suspect that it is a configuration
 issue since when I tried the URL I got a 403.

Sorry I can't help further.  Hope someone will jump in.

Best,

-- 
 Bastien



Re: [O] Org-Mode Homepage error

2011-07-27 Thread Bastien
Hi Achim and Sebastian,

Achim Gratz strom...@nexgo.de writes:

 Bastien b...@altern.org writes:
 I fail to understand why an additional div id=preamble 
 should break Sebastian's tool.
 /mode lazybum

 For starters, the title now resides in the preamble, but the script
 looks for it in content.  This error is easily fixed, but I don't know
 if it has further repercussions.

Mhh...  I tried to patch org-info-src.js with this fix, to recompile 
it (and get org-info.js).  I copied the result here:

  http://orgmode.org/org-info2.js 

Then setting this path in `org-infojs-options', I tried various ways 
of getting a working HTML file, with the new div structure, but with 
no good result.

I have taken the simplest road for now: I've put the title back in the
content div and removed it from the default preamble -- although you
can still add it in the preamble.

I think it's better since it doesn't break people's configuration when
using org-info.js.

For such changes about the HTML structure, I need to better sync with
Sebastian to see how org-info.js can be updated and/or more flexible.
For example content is hardcoded in org-info.js and is not anymore 
in org-html.el, so this might lead to troubles.

Thanks for your input so far,

-- 
 Bastien



[O] Capture/refile and file+headline inquiry

2011-07-27 Thread John Hendy
1) How might it be possible to set custom expansion headlines for
capture templates?

For example, using the symbols from the capture note itself (kind of),
something like this:

-
(setq org-capture-templates
  '((j journal entry (file+olp ~/org/refile.org Journals %-mm)
 * %u %? \n :clock-in t :clock-resume t)))
-

To produce something like:

* Journals
** 2011-Jul
*** [2011-07-27 Wed] thing I'm capturing


2) Also, it seems that capture needs a single target file (refile.org
above), but most of the time, I just like to use it as an interface to
quickly file to any file. The tree structure options seem to only
apply to the target file; when refiling within capture (C-c C-w to a
file vs. sending off to refile.org), it will just send the headline
itself to something I have to manually specify for the refile target.

In other words:

--- C-c C-c automatically puts it into a datetree or whatever in refile.org
--- C-c C-w requires that I have the same datetree structure manually
created in a file other than refile.org, and then I have to choose it
by typing some letters, tabbing to completion, typing the next level
headline, tab completing, etc.

How can I refile to a set tree structure across any number of files via capture?



Thanks,
John



Re: [O] New feature: loop over siblings for some commands

2011-07-27 Thread David Maus
Hi Bastien,

At Wed, 27 Jul 2011 17:28:36 +0200,
Bastien wrote:

 Hi David,

 David Maus dm...@ictsoc.de writes:

  I highly recommend to not use this macro but to build the intended
  functionality with separate building blocks: Factor out the flesh of
  the respective functions (e.g. org-schedule) and use org-map-entries
  to map. As far as I can see, the latter provides all we need:

 I took this road.


 The first patch manually reverts the commit you are commenting.

 The third patch implements the loop functionality by just using
 `org-map-entries', not a macro.

 I'm sure we could have an `org-loop' macro factoring out the duplicate
 code in the new `org-schedule' and `org-deadline'.  If you have time to
 look at this, that will greatly help.

My vacation starts saturday so I do have time and really like to get
my hands dirty with some Lisp hacking.

Now for the macro (2 iterations later): It might not be necessary to
factor out the functions if the function that invokes the looping
can be called recursively.

E.g.

#+begin_src emacs-lisp
  (defmacro org-with-headline-siblings (function)
Apply function to siblings of current headline.
`(org-map-entries ,function 'siblings))

  (defun org-schedule ()
(...)
(if (or (not (org-region-active-p))
(not org-loop-over-siblings))
(let ((org-loop-over-siblings nil))
  (org-with-headline-siblings 'org-schedule
#+end_src

If the function takes arguments, we need to wrap the function call at
the end in a lambda.

And if this works out, we are almost there:

#+begin_src emacs-lisp
  (defmacro org-with-headline-siblings-maybe (predicate rest body)
Execute body on current headline's siblings if PREDICATE.
`(progn
   ,@body
   (if ,predicate
   (org-map-entries '(lambda () (progn ,@body)) 'siblings
#+end_src


  Another abstraction: Instead
  'org-loop-over-siblings-with-active-region' something like:
  'org-loop-over-headlines-with-active-region' that can be set to a
  symbol or a list of symbols indicating which headings to loop over
  (e.g. 'siblings, 'children, ...).

 The variable is now called `org-loop-over-headlines-in-active-region'
 and understand these kind of values:

 - nil: don't loop
 - t: loop over all headlines
 - MATCH: a tag/property/todo match to loop over matching headlines


Nice. These values can fit into org-map-entries MATCH argument, can't
they?

We would have:
 org-loop-over-headlines-in-active-region
  /
(org-map-entries FUNC optional MATCH SCOPE rest SKIP)
 /  \
   our functionregion is active

I'm not quite sure, but

a/ we move the check for an active region to org-map-entries: If
SCOPE is 'region but no region is active, org-map-entries simply
returns.

b/ we modify org-map-entries, so that a MATCH of nil means: No
match.

This way we can express the predicate as a condition of map.

#+begin_src emacs-lisp
  (defmacro org-loop-over-headlines (rest body)
`(progn
   ,@body
   (org-map-entries '(lambda () (progn ,@body)) 
org-loop-over-headlines-in-active-region 'region)))
#+end_src

 If you can test these patches and send some feedback, that'd be nice!

Scheduled for Sunday.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpQlLCvr2mkI.pgp
Description: PGP signature


Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-27 Thread Max Mikhanosha
At Wed, 27 Jul 2011 13:33:16 +0200,
Bastien wrote:
 
 Also, it would be really nice to update this tutorial on Worg and to
 show how to use the new feature you introduced:
 
   http://orgmode.org/worg/org-contrib/org-depend.html
 

Done, will push once I have permissions



Re: [O] Trouble compiling

2011-07-27 Thread Marc-Oliver Ihm

On 27.07.2011 11:18, Avery Chan wrote:

To whom it may concern,

I am trying to load orgmode via the emacs-starter kit. Following the
instructions, I did the following:

508 cp -R emacs-starter-kit ~/.emacs.d
509 cd /Users/avery/.emacs.d
511 git submodule init
515 git submodule update

The update procedure failed with the following output:

Cloning into src/org...
error: Unable to get pack file
http://orgmode.org/org-mode.git/objects/pack/pack-beb4230c6615129746e9adfd39b5a38d78a4c191.pack

transfer closed with 49103369 bytes remaining to read
error: Unable to find db094c320412204a990668024f88eef00d307a44 under
http://orgmode.org/org-mode.git
Cannot obtain needed object db094c320412204a990668024f88eef00d307a44
error: Fetch failed.
Clone of 'http://orgmode.org/org-mode.git' into submodule path 'src/org'
failed

Is there a way for me to fix this? I suspect that it is a configuration
issue since when I tried the URL I got a 403.

Thanks!

Avery



Hi !
Just try to download this with my browser, and it worked Okay for my. 
Maybe you hav become victim of a network glitch ? In which case a retry 
would help (if you not already have done this)

regards, Marc



[O] ordered lists with intervening paragraphs export to LaTeX

2011-07-27 Thread Henri-Paul Indiogine
Greetings!

I have the following setup in my orgmode file:

1. blah blah

some text in a paragraph

2. foo bar

some text in a paragraph

3 .

and so on

In LaTeX it starts renumbering at 1 each time.  I read the orgmode
manual for ordered lists and it tells to use [@1] , [@2], and so on to
force a certain number.  However, it is exported to LaTeX verbatim.

What to do?

Thanks,
Henri-Paul


--
Henri-Paul Indiogine

Curriculum  Instruction
Texas AM University
TutorFind Learning Centre

Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://people.cehd.tamu.edu/~sindiogine



Re: [O] making coloured tables

2011-07-27 Thread Sebastien Vauban
Hi Andras,

Andras Major wrote:
 I'm really intrigued by org-mode's table and spreadsheet functionality
 and would like to use it for those cases where I found excel and
 gnumeric impractically cumbersome.

 What I want are two slightly diffent things:

 - Make tables that have cells with individual background colours when
 exported as HTML or PDF.

 - Make tables that have cells with background colours and typeface
 details (bold, italic, etc.) based on contents of either the cells
 themselves or other cells in the table. (Example: mark all negative
 numerical values of a table with a red background.)

 Furthermore, the colouring should be portable, i.e. independent of the
 settings in .emacs.

I add wishes on the above list. Maybe someone will be able to implement them,
if they seem to make sense... So, here's my idea: having some automagic style
(background) applied on the cells to distinguish:

- the input cells (the ones you cannot delete... without troubles): they don't
  have any formula associated with them

- the final result cells: the ones with computed results

- the other ones, whose content is computed, but serves as input to other
  cells.

Would these be in different colors, I think it would make the reading of
tables much more efficient. And, as far as I know, this does not exist yet in
tools like Excel -- though people can manually apply such color conventions.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Agenda global list tweak

2011-07-27 Thread Ido Magal
I have nested tasks that are much harder to parse when presented in the
unindented agenda view.

I would like to replace the CATEGORY column with a column that shows the
parent of the task.

So instead of

todo.txtmow lawn
todo.txtclean mower
todo.txtbuy fuel

i'd see

todo.txt  mow lawn
mow lawn   clean mower
mow lawn   buy fuel

Is this easy to do?


Re: [O] ordered lists with intervening paragraphs export to LaTeX

2011-07-27 Thread Nicolas Goaziou
Hello,

Henri-Paul Indiogine hindiog...@gmail.com writes:

 I have the following setup in my orgmode file:

 1. blah blah

 some text in a paragraph

 2. foo bar

 some text in a paragraph

 3 .

 and so on

It should be:

1. blah blah

   some text in a paragraph

2. foo bar

   some text in a paragraph

3. ...

You can use C-j instead of RET to add a newline inside a list.

Now, if you want to use [@number] syntax, it should be:

5. [@5] blah blah
6. foo bar


Regards,

-- 
Nicolas Goaziou



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-27 Thread Daniel E . Doherty

Bastien,

Just re-gitted (git pull  make clean  make) and applied your new 't'
format specifier, and ... joy!  Many thanks for following up on this.  I
will now retire my old Windows-based invoicing system in favor of org.

Great work.

Regards,

Dan

At Wed, 27 Jul 2011 13:25:46 +0200,
bzg wrote:
 
 Hi Daniel,
 
 Daniel E.Doherty ded-...@ddoherty.net writes:
 
  I am trying to take a duration output by CLOCKTABLE and multiply it by
  dollars-per-hour (or dollars-per-second, either way) and get an answer
  in units of dollars.
 
 I see, thanks for the explanation.
 
  Can you suggest a way this can be done?  
 
 Since latest git commit, you can now use ;t instead of ;T as a flag for
 durations computations.  ;t will output results according to the new
 variable `org-table-duration-custom-format', which you can check.
 
 See this example:
 
 #+begin_src org
   |  Task 1 |   Task 2 |Total |
   |-+--+--|
   |2:12 | 1:47 | 03:59:00 |
   | 3:02:20 | -2:07:00 | 0.92 |
   #+TBLFM: @2$3=$1+$2;T::@3$3=$1+$2;t
 #+end_src
 
 .92 is a fraction of hours, because `org-table-duration-custom-format'
 is set to 'hours.
 
 HTH,
 
 -- 
  Bastien



Re: [O] [DEV] Org-Startup.el concept

2011-07-27 Thread Matthew Sauer
Bastien and the group,

I am thinking that to successfully pull this off I am going to have to
do two separate files for what I am wanting to do.  One that will be
called in .emacs through load that will load the custom agenda view.

So, my question is, I have my custom agenda command in a .el file that
I call from .emacs like this :
start code-start code---
(load Org-Startup-Agenda-Views)
end code -- end code --

I should be able to in the Org-Startup-Agenda-Views.el  have a command
that appends/cons/adds to the custom agenda views so that the agenda
views I want are available (at first going to be one but I think this
will expand to more than one) to be called for the startup view that
gets called after this.

I am thinking this will go at the end of a .emacs file and then call
the function to open the selected view (variables already set for it
in configuration (remember this is for beginners who use the GUI to
make it easy to customize out of the box)) for the startup with the
agenda in it.

Also, what will happen if I run the command to append the custom
agenda views and none have been defined?

Thanks,

-- 
Matthew


On Mon, Jul 25, 2011 at 7:58 PM, Bastien b...@altern.org wrote:
 Hi Matthew,

 Matthew Sauer improv.philoso...@gmail.com writes:

 The agenda view will be a user definable number of days calendar with
 a user defined number of days in the future view of upcoming deadlines
 or just unscheduled deadlines (a choice between the two may have to be
 implemented in the future as my skills grow and more contribute?) and
 at the bottom we would find TODO keywords (maybe I need to change this
 to != all not done keywords in the future) that are not scheduled and
 do not have a deadline on them (kind of a someday/sometime todos).

 Mmhh... an interactive interface for building custom agenda views?
 I'd be curious about the result, but that'd probably be useful!

 What I am needing to know is about adding an agenda view via a .el
 file to the custom agenda views.  Could I do that, something like
 this:
 -Cut here---start code---cut here---start code-
 (add-to-list
  '(org-agenda-custom-commands
    (quote
     (
      (s Startup View
 --Cut Here---end codecut hereend code

 Did you try this?  It should not work.

 In this file in Worg

  http://orgmode.org/worg/org-tutorials/advanced-searching.html

 you can see this example:

 #+begin_src emacs-lisp
  (add-to-list 'org-agenda-custom-commands
               '(b Big books tags +BIB_PAGES1000))
 #+end_src

 When I get my basic idea for the package outlined a little more I will
 ask for some help with testing on it at the github I have setup.

 Keep us posted!

 Thanks,

 --
  Bastien




Re: [O] Move to item to the bottom

2011-07-27 Thread Marcelo de Moraes Serpa
Hi Bastien,

Thanks, did not know about it.

M

On Wed, Jul 27, 2011 at 6:22 AM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  [Feature suggestion] (related to what I described in the last post of
  this thread):
 
  Keep configuration options for an org file in a separate file. Could
  be:
   * nameoftheorgfile.conf

 I don't think this is necessary.  You can already include setup files
 by using the #+SETUPFILE: option.

 HTH,

 --
  Bastien



[O] Development workflow

2011-07-27 Thread Marcelo de Moraes Serpa
Hey guys,

I'd like to start hacking the orgmode codebase and perhaps add my own
extensions and modifications. What's the best workflow? My main editor is
now MacVim, could I use it to edit and compile with emacs? I can understand
if things go smoother with emacs, and I could use viper if needed. I just
need to know how the overall hacking process look like.

Cheers,

Marcelo.


Re: [O] bulk relative time shift (in org file)?

2011-07-27 Thread Michael C Gilbert
On Jul 26, 2011, at 12:44 PM, Memnon Anon wrote:

  Bastien b...@altern.org writes:
 
 On an item, `C-c C-s' and `C-c C-d' now allows you to use
 +2d to say schedule in 2 days from today or ++2d to 
 say schedule in 2 days from existing timestamp.
 
 In agenda, `B s' and `B d' will also understand this and
 let you reschedule/redeadline items relatively.
 
 Let me know if this works okay for you -- and thanks for
 bringing this up again!
 
 ++ looks very useful! I pinged Michael who started this thread, I hope 
 we'll get an update
 on his perspective. 

I missed the ++ usage in this context completely. Yes, this gets me close to 
what I was looking for.

Ideally, something like this should be available in the org file, rather than 
in the agenda. The reason being is that it is a common project planning task to 
shift all related tasks back by some set period of time. I can see expanding 
the notion to take dependencies into account, but that is not critical. I'm 
just looking for a way to do this routine in the project management  planning 
contexts in my own work and in my organization

But if I shift back and forth to the agenda, then I can make this work. I'm 
assuming that the 'Cc C-s' and 'C-c C-d' commands don't work on regions or on 
everything under a heading?

— Michael




Re: [O] Habits not showing in agenda and no progress graph

2011-07-27 Thread John Hendy
Thanks to both you and Michael for persisting with me!

On Wed, Jul 27, 2011 at 9:26 AM, Memnon Anon
gegendosenflei...@googlemail.com wrote:
 John Hendy jw.he...@gmail.com writes:

 Ah. That might have done it. I was playing around a bit tonight and
 noticed that if I changed the scheduled date, I got a little
 multi-colored bar looking thing in agenda week view. Is that the
 graph?

 Yes.

Got it.

snip

 A setting of
  org-habit-following-days 7
  org-habit-preceding-days 21
  org-habit-show-habits-only-for-today t
 will show that graph, representing the past 3 weeks and the next week
 ahead in your *daily* Agenda for today.

I see the bar, but it's just not intuitive to me. Maybe I don't have
enough history, but I see now way that this bar is connected to
anything but the current task. That much I get, seeing the history of
my habits is not making sense.

snip

 If that's the graph, then I guess I just didn't understand how the
 display in agenda worked and was mistaken in expecting future events
 to show up as I scrolled through the year's view. I think that's fine.
 Just wanted to make sure I wasn't messing something up.

 From what I read, I don't think org-habit is the tool you want.
 I found they work best for fairly regular tasks; I use them for cleaning
 tasks like Do vacuum cleaning .+3d/5d.

Yeah; I don't know that I need the bar. I removed the style: habit
property and the functionality seems to be identical except that I get
no colored bar, and all the future events show up rather than only
when they are in the range. That's fine with me. I think I could get
the same with org-habit if I want to keep them out of the agenda
(thought I bet there's a way to fiddle with displayed recurring events
given what org-mode allows anyway).


 The manual still gives the impression that the graph will show the
 history of my habits, whereas this thing in agenda is only showing
 whether I'm ahead, on schedule, or late for this *current* habit.

 If you are ahead, on schedule, late for this *current* habit now (!)
 and for the past e.g. three weeks (asterisk).


I think I just must not have history -- I have no asterisk, just
green, blue, yellow, red, and !.


Thanks again to both of you (just responded to this one as the info
was pretty much the same and this one was more recent)
John


 Memnon






Re: [O] Development workflow

2011-07-27 Thread Jambunathan K

 Hey guys,

 I'd like to start hacking the orgmode codebase and perhaps add my own
 extensions and modifications. What's the best workflow? My main
 editor is now MacVim, could I use it to edit and compile with emacs?
 I can understand if things go smoother with emacs, and I could use
 viper if needed. I just need to know how the overall hacking process
 look like.

If you are comfortable with MacVim go with it. You don't have to compile
your elisp files at all and as a developer I would even venture to say
you shouldn't.

One's development workflow is well one's own and the only way to start
is to start with what one already knows and what one is already
comfortable with. In my experience, trying to be efficient while
starting out will remove the fun out of what you are doing.

If you are serious about your work, choose to work with the info/manuals
ONLY and use Google only as a supplement. Make a note of things as you
USE things so that you don't have to do it twice and keep organizing the
notes as it evolves. Good NOTE TAKING is a practical skill that will
help you in all endeavours.

Jambunathan K.

 Cheers,

 Marcelo.



-- 



[O] #+STARTUP: nologrefile seemingly not respected

2011-07-27 Thread Brian van den Broek
Hi all,

Either #+STARTUP: nologrefile is not behaving as intended, or I've
misunderstood the intention.

I have '(setq org-log-refile 'time)' in my .emacs. I have the line
'#+STARTUP: nologrefile' in a subtree at the bottom of my inbox.org.

Given this setup, I'd expect to get refiling notes with the time of
refiling when I refile from org files *other* than inbox.org and not
to get refiling notes when refiling from inbox.org. However, I get
refiling notes when refiling from any .org file, including inbox.org.

I am using org-mode 7.6 on emacs version 23.2.1

Is the problem with my expectations or in org-mode's behaviour?

Thanks and best,

Brian vdB



[O] Fwd: Development workflow

2011-07-27 Thread Marcelo de Moraes Serpa
Thanks Jambunathan, that's really some good advice. You're right, sometimes
we just postpone things because we think we should get ready for it.
Profound and true.

To make things easier though, I think I'll just go with Emacs + Vipermode
:)

Cheers,

Marcelo.
*
*

On Wed, Jul 27, 2011 at 11:32 PM, Jambunathan K kjambunat...@gmail.comwrote:


  Hey guys,
 
  I'd like to start hacking the orgmode codebase and perhaps add my own
  extensions and modifications. What's the best workflow? My main
  editor is now MacVim, could I use it to edit and compile with emacs?
  I can understand if things go smoother with emacs, and I could use
  viper if needed. I just need to know how the overall hacking process
  look like.

 If you are comfortable with MacVim go with it. You don't have to compile
 your elisp files at all and as a developer I would even venture to say
 you shouldn't.

 One's development workflow is well one's own and the only way to start
 is to start with what one already knows and what one is already
 comfortable with. In my experience, trying to be efficient while
 starting out will remove the fun out of what you are doing.

 If you are serious about your work, choose to work with the info/manuals
 ONLY and use Google only as a supplement. Make a note of things as you
 USE things so that you don't have to do it twice and keep organizing the
 notes as it evolves. Good NOTE TAKING is a practical skill that will
 help you in all endeavours.

 Jambunathan K.

  Cheers,
 
  Marcelo.
 
 

 --