Re: [Orgmode] custom sorting of agenda items

2010-08-20 Thread Carsten Dominik
On Aug 20, 2010, at 1:49 AM, Ilya Shlyakhter wrote: The problem here is that I would have to insert a call to the hook in many different places as there are many different functions that collect entries for the agenda. in org-finalize-agenda-entries, when you call org-agenda-before-sorting-fi

Re: [Orgmode] custom sorting of agenda items

2010-08-19 Thread Ilya Shlyakhter
> The problem here is that I would have to insert a call to the hook in > many different places as there are many different functions that > collect entries for the agenda. in org-finalize-agenda-entries, when you call org-agenda-before-sorting-filter-function, could you save-excursion and move to

Re: [Orgmode] custom sorting of agenda items

2010-08-19 Thread Carsten Dominik
On Aug 17, 2010, at 6:40 PM, Ilya Shlyakhter wrote: Thanks Carsten, org-agenda-before-sorting-filter-function does what I need. It would be better if it was called with the point already on the corresponding headline in the corresponding buffer. This would also be faster as you could call it

Re: [Orgmode] custom sorting of agenda items

2010-08-17 Thread Samuel Wales
On 2010-08-04, Ilya Shlyakhter wrote: > When giving a user-defined function for org-agenda-cmp-user-defined, > the function gets two agenda entries. Is there a way from an agenda entry > to get to the original org entry? Here is code of a general nature. (defun alpha-org-entry-get (property &o

Re: [Orgmode] custom sorting of agenda items

2010-08-17 Thread Ilya Shlyakhter
Thanks Carsten, org-agenda-before-sorting-filter-function does what I need. It would be better if it was called with the point already on the corresponding headline in the corresponding buffer. This would also be faster as you could call it for all entries in one buffer at a time, avoiding a separ

Re: [Orgmode] custom sorting of agenda items

2010-08-16 Thread Carsten Dominik
On Aug 16, 2010, at 2:59 PM, Ilya Shlyakhter wrote: Thanks! Would things work faster if there was a user-defined hook that was called at each agenda entry at the same time the 'org-hd-marker property gets stored, so it could store any other things it needs from the entry as text properties fo

Re: [Orgmode] custom sorting of agenda items

2010-08-16 Thread Carsten Dominik
On Aug 16, 2010, at 2:59 PM, Ilya Shlyakhter wrote: Thanks! Would things work faster if there was a user-defined hook that was called at each agenda entry at the same time the 'org-hd-marker property gets stored, so it could store any other things it needs from the entry as text properties fo

Re: [Orgmode] custom sorting of agenda items

2010-08-16 Thread Ilya Shlyakhter
Thanks! Would things work faster if there was a user-defined hook that was called at each agenda entry at the same time the 'org-hd-marker property gets stored, so it could store any other things it needs from the entry as text properties for later use by user-defined entry sorting routine? ilya

Re: [Orgmode] custom sorting of agenda items

2010-08-16 Thread Carsten Dominik
On Aug 5, 2010, at 1:01 AM, Ilya Shlyakhter wrote: When giving a user-defined function for org-agenda-cmp-user-defined, the function gets two agenda entries. Is there a way from an agenda entry to get to the original org entry? Yes, the marker that points to the original entry is stored

Re: [Orgmode] custom sorting of agenda items

2010-08-04 Thread Ilya Shlyakhter
When giving a user-defined function for org-agenda-cmp-user-defined, the function gets two agenda entries. Is there a way from an agenda entry to get to the original org entry? Best would be if, besides a user-defined sort function, you could also provide a function that takes the org entry and

Re: [Orgmode] custom sorting of agenda items

2010-08-04 Thread Bastien
Hi Ilya, Ilya Shlyakhter writes: > I'd like to sort agenda entries in a custom agenda view by the value > of a text property that I put on the headlines. > Is there a way to do that? Well, no. Maybe playing around with org-map-entries could yield some result. -- Bastien ___

[Orgmode] custom sorting of agenda items

2010-08-04 Thread Ilya Shlyakhter
I'd like to sort agenda entries in a custom agenda view by the value of a text property that I put on the headlines. Is there a way to do that? thanks, ilya ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@