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

2011-08-16 Thread Bastien
Hi David, David Maus writes: > At Wed, 10 Aug 2011 10:34:14 +0200, > David Maus wrote: >> >> Whats next: Handle folded subtrees. Currently org-schedule w/ active >> region schedules hidden subtrees, too. Using a tags/prop/todo query >> seems suboptimal because you would have to know the characte

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

2011-08-12 Thread David Maus
At Wed, 10 Aug 2011 10:34:14 +0200, David Maus wrote: > > Whats next: Handle folded subtrees. Currently org-schedule w/ active > region schedules hidden subtrees, too. Using a tags/prop/todo query > seems suboptimal because you would have to know the characteristics of > the region beforehand. To m

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

2011-08-10 Thread David Maus
Hi Bastien, I've created a dedicated topic branch on Github git://github.com/dmj/dmj-org-mode.git feat/org-loop-over-headlines And implemented looping over headlines in active region for org-schedule und org-deadline. Differences between this branch and your proposed patch: 1/ Extend the region

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

2011-07-28 Thread Bastien
Hi David, David Maus writes: > My vacation starts saturday so I do have time and really like to get > my hands dirty with some Lisp hacking. Great, thanks. > Now for the macro (2 iterations later): It might not be necessary to > factor out the functions if the function that invokes the looping

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 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) an

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 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 Pet

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

2011-07-27 Thread Bastien
Hi David, David Maus 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 w

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

2011-07-20 Thread David Maus
After a first look at the macro and its usage I have the feeling that the macro would be wrong and/or a bad design choice. It conditionally implements a mapping of body to a headline's siblings. Thus it is a specialized case of applying a function to zero or more headlines based on a selection cri

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

2011-07-19 Thread David Maus
At Mon, 18 Jul 2011 10:32:11 +0200, Bastien wrote: > > Dear all, > > from latest git repo: > > (setq org-loop-over-siblings-within-active-region-p t) > > will allow you to run some commands on several siblings in > the active region. > > For example: > > > * Item 1 > * Item 2 > * Item 3 > > > T

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

2011-07-18 Thread Bastien
Dear all, from latest git repo: (setq org-loop-over-siblings-within-active-region-p t) will allow you to run some commands on several siblings in the active region. For example: * Item 1 * Item 2 * Item 3 Then `C-c C-s' (org-schedule) will ask for a schedule date for each of the item