Commit Graph

319 Commits

Author SHA1 Message Date
Carsten Dominik babd053bd6 Fix bulk agenda processing with parents and children in the loop
Bernt Hansen writes:

> Every so often I run into a situation where bulk refiling
> doesn't work anymore.
>
> I currently have 15 items in my refile.org file that I want
> to refile to other locations.  I marked a few of them and
> bulk refiled them just fine.  Then I marked a few more and B
> r fails with "Cannot find entry for marker #<marker at
> 297156 in norang.org>"
>
> I think this happens when I mark multiple tasks in the same
> subtree (i.e. the parent and a sibling) and refile both to
> the same location.  After that it gets confused.
>
> If I have a task like this in refile.org
>
> #+FILETAGS: REFILE
> * Test
> ** Test 2
>
> and run a tags match on REFILE I see both tasks.  Mark both
> with m in the agenda and B r to some other location.  It
> refiles the first (and this moves the sibling too) and then
> it's broken after that.
>
> I get the following backtrace
>
> Debugger entered--Lisp error: (error "Cannot find entry for
> marker #<marker at 297156 in norang.org>")

Indeed the happens because, when a parent gets refiled or
achieved, any entries corresponding to its children are
removed from the agenda.

We address this issue by

- sorting the markers, to make sure parents will be handled
  before children

- No longer throwing an error when a bulk action entry no
  longer is present in the agenda - most likely it was taken
  care of together with its parent.
2009-08-04 22:46:08 +02:00
Carsten Dominik 2eecb4c43c Fix white-space errors 2009-08-03 17:30:30 +02:00
Carsten Dominik 31ceed47ff New minor mode org-indent-mode
This mode implements outline indentation similar to clean view, but in
a dynamic and virtual way, at display time.
2009-08-03 06:24:24 +02:00
Bastien Guerry 7cdff7b1eb New timer functionality to set a timer from a headline.
This commit defines three new functions in org-timer.el:

- org-timer-set-timer, bound to `C-c C-x ;' in Org buffers
  and to `;' in Org agenda buffers.   This function sets a
  timer for the headline the cursor is currently it.  Up to
  three timers can be set.

- org-timer-show-remaining-time: this shows the remaining
  time for the last set timer.

- org-timer-reset-timers: this reset all timers.

This functionality was requested by Samuel Wales and emulates
that of tea-time.el -- see the emacswiki doc about tea-time.el:

  http://www.emacswiki.org/emacs/tea-time
2009-07-27 02:54:17 +08:00
Carsten Dominik d19ebd84c3 Agenda bulk commands: Add Schedule and Deadline
Agenda bulk commands on marked entries now can also set the scheduling
date or a deadline.  Normally, all entries will be set to the
specified date.  However, when writing the change as "++5d" or "++2w",
then each time stamp will independently be shifted by that amount.
2009-07-02 17:10:03 +02:00
Carsten Dominik b5edb36f94 Fix bug with matching sublevels 2009-06-28 08:45:56 +02:00
Carsten Dominik e5d6bd0cc0 Load org-icalendar when exporting agenda file to ics 2009-06-27 23:39:09 +02:00
Carsten Dominik f648323253 Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
Carsten Dominik cd4e52a5ef Release 6.28d 2009-06-26 17:23:27 +02:00
Carsten Dominik 94812099b0 Agenda: Add more keys to the view dispatcher 2009-06-26 17:22:48 +02:00
Carsten Dominik 00ddc4dba7 Release 6.28c 2009-06-26 09:27:50 +02:00
Carsten Dominik 5bbd1cb2df Use better keys for Bulk action selection 2009-06-26 09:27:08 +02:00
Carsten Dominik dfe2186724 Fix typos 2009-06-26 07:04:22 +02:00
Carsten Dominik e7ffcc1d4d Release 6.28b 2009-06-25 09:01:20 +02:00
Carsten Dominik 7906427aa6 Release 6.28 2009-06-25 08:59:59 +02:00
Carsten Dominik 9bf59dd0b5 Keep byte compiler happy 2009-06-25 07:29:32 +02:00
Carsten Dominik 2e3a26ae35 Agenda: Refile and bulk action
This commit implements refiling directly from the agenda.

It also implements a mechanism for selecting a number of entries in
the agenda and then executing a command on all of them.  Possible
actions include archive, refile, todo state setting, and more.
2009-06-24 21:50:42 +02:00
Carsten Dominik c76aaf8037 Agenda: Update agenda line after clocking out.
This was a request by Manish
2009-06-22 13:46:02 +02:00
Carsten Dominik e9028c2d0d Stuck projects: Honor `org-agenda-overriding-header'. 2009-06-18 23:34:29 +02:00
Carsten Dominik 8faf8271fe Improve a docstring 2009-06-18 09:56:59 +02:00
Carsten Dominik 379b24cc63 Fix whitespace issues 2009-06-08 08:00:46 +02:00
Carsten Dominik 96989dc01e Agenda: Allow custom command options to work better
When the agenda buffer for an agenda series is created, this was so
far done without the options of the custom agenda command in  place.
This meant that some options would not take effect, because the only
place where that did would have an effect was during creation of that
buffer.

This commit makes sure that the global options of an agenda series are
in fact in place when the buffer is created.
2009-06-04 09:23:57 +02:00
Carsten Dominik ae7b8f6b12 Push version number to 6.27trans 2009-05-26 15:41:44 +02:00
Carsten Dominik 0421dead4b Release 6.27a 2009-05-25 16:04:45 +02:00
Carsten Dominik 3ee470daa1 Agenda: Fix bug with killing entries from the agenda
Nicolas Goaziou writes:

> As I was saying in anoter post, it looks like there's something
> weird happening when using C-k in agenda view:
>
> 1. Create two new remember entries (i.e. test and test2) with the
> same tag (I used @office)
> 2. Narrow down the agenda view to only see the @office entries.
> 3. Kill the last but one entry (it should be "test") : both of
> "test" and "test2" disappear frow the view. Actually, "test2" is
> not properly killed, but it is scary nonetheless.
>
> It only happens with two last entries.
>
> Is anyone able to reproduce this ?
2009-05-23 23:03:00 +02:00
Carsten Dominik b681c7b26e Release 6.27 2009-05-23 08:22:04 +02:00
Carsten Dominik e88564bbba Agenda: New face for today.
There is now a separate for the date of today,
`org-agenda-date-today'.

Patch by Dmitri Minaev
2009-05-22 10:04:56 +02:00
Carsten Dominik b5b87d4b0e Agenda: Allow to remove the restriction while in agenda buffer.
`C-c C-x >' now also works while in the agenda.  Requested by Bernt
Hansen.
2009-05-22 00:38:46 +02:00
Carsten Dominik 9780353171 Agenda: Fix bug when computing agenda appointments with restriction in place 2009-05-21 18:47:33 +02:00
Carsten Dominik 86a19f342e Priorities: Conditionally disable priority commands
The new option `org-enable-priority-commands' can now be used to turn
off all priority-setting commands, to avoid setting a priority by
accident.
2009-05-21 18:01:08 +02:00
Carsten Dominik 0962662663 Agenda: Fix bug with time of day for clocking lines
Peter Frings writes:

> Good day, org-ers
>
> I have seen a *small* problem in the Agenda's log mode.
>
> Org-mode version 6.26d
> GNU Emacs 22.3.1 (i386-apple-darwin9.5.0, Carbon Version 1.6.0) of 2008-11-01
>
>
> I have this in time-sheets.org:
>
>
> * Project AI
> ** Enhancement PT <2009-04-30 Thu 10:00-11:00 +1w>
>    CLOCK: [2009-05-14 Thu 09:55]--[2009-05-14 Thu 10:45] =>  0:50
>
>
> But, the Agenda shows this:
>
> Day-agenda (W20):
> Thursday   14 May 2009
>                9:00...... ----------------
>   planning:    9:12- 9:55 Clocked:   (0:43) BUSY Notifications
>   time-sheet: 10:00-11:00 Clocked:   (0:50) Enhancement PT
>   time-sheet: 10:00-11:00 Enhancement PT
>               10:00...... ----------------
>               11:00...... ----------------
>

He is right.  Progress lines should never take their
time from the headline, always only from the triggering line.
2009-05-14 14:24:17 +02:00
Carsten Dominik d885d8f686 Agenda: Allow to start with log mode active
Benjamin Andresen writes:

> I was curious as to why a value such log-mode wasn't customizable
> to be run on start-up as follow-mode and clock-report-mode are.
>
> If Carsten thinks this is a good idea, I've attached a patch that
> may shave of 5 seconds of him adding it. It applies cleanly to
> current git HEAD.

This commit applies Beanjamin's patch
2009-05-14 09:40:53 +02:00
Carsten Dominik 8619361669 Reload: New key, works also in the Agenda
The key is now `C-c C-x !'.
2009-04-30 16:11:35 +02:00
Carsten Dominik f4f1d5cfd5 Stuck projects: Improve docstring of org-stuck-projects 2009-04-24 15:37:38 +02:00
Carsten Dominik 06491c24d8 Agenda: more optimization 2009-04-24 13:31:20 +02:00
Carsten Dominik 10cc01f7e7 Agenda: Allow to find multiple same-day time stamps in one entry
Tassilo Horn writes:

>  I have this entry in an org-file.
>
>  --8<---------------cut here---------------start------------->8---
>  ** Übung Grundlagen der Softwaretechnik (B 016)        :teaching:
>    <2009-04-22 Wed 08:30-10:00 +1w>
>    <2009-04-29 Wed 10:15-11:45> (Für Hannes übernehmen)
>  --8<---------------cut here---------------end--------------->8---
>
>  I expect it to be displayed every wednesday after 2009-04-22
>  for 08:30-10:00 and on 2009-04-29 it should be displayed
>  twice: one at the usual time and one for 10:15-11:45.
>
>  But the agenda shows only the regular entry (08:30-10:00)
>  and omitts the exception.  If I reorder the timestamps, so
>  that the exception comes first, only the exception will be
>  shown on 2009-04-29.  Every other wednesday shows the
>  regular repeater date.
>
>  What do I have to do to make that entry showing up twice on
>  29th April?

This commit adds a new option
`org-agenda-skip-additional-timestamps-same-entry'.  When set
to t, an entry that has multiple active time stamps will get
multiple lines in the agenda.
2009-04-22 09:54:18 +02:00
Carsten Dominik 69e6d249aa Push version number to 6.26trans 2009-04-22 09:08:13 +02:00
Carsten Dominik 73854f435d Release 6.26d 2009-04-22 06:42:17 +02:00
Carsten Dominik 595e9603ac Release 6.26c 2009-04-21 20:26:27 +02:00
Carsten Dominik e0cd12716a Release 6.26b 2009-04-21 10:21:36 +02:00
Carsten Dominik b8a5f1a7fc Release 6.26a 2009-04-19 22:31:36 +02:00
Carsten Dominik ba66d2c8ae Release 6.26 2009-04-19 08:38:49 +02:00
Carsten Dominik 99c7dacd66 Dependencies: New property NOBLOCKING
A NOBLOCKING property makes sure that an entry is never blocked by
whatever function in org-blocker-hook.
2009-04-08 17:01:54 +02:00
Carsten Dominik ef2ee3df5d Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
Carsten Dominik eef47f820f Release 6.25d 2009-04-05 15:29:45 +02:00
Carsten Dominik e2eebc83a1 Release 6.25c 2009-04-05 08:45:39 +02:00
Carsten Dominik 5624263d97 Release 6.25b 2009-04-03 19:18:41 +02:00
Carsten Dominik f2cbe79383 Agenda: Fix regexp bug that leads to incorrect time display 2009-04-03 17:43:30 +02:00
Carsten Dominik 20bc495a63 Agenda: Add notes to log book entries
If the trigger for a log mode entry in the agenda has notes, for
example a note associated with a state change or with a clock entry,
the first line of the notes will now be added to the logbook entry.
You can turn this off the with new variable
`org-agenda-log-mode-add-notes'.
2009-04-03 10:25:02 +02:00
Carsten Dominik 1426f8bcfd Release 6.25a 2009-04-02 18:24:52 +02:00