emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Sorting by todo-keyword
@ 2008-08-05 18:42 Jan Seeger
  2008-08-12  8:06 ` Christian Egli
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Seeger @ 2008-08-05 18:42 UTC (permalink / raw)
  To: Orglist

I want to sort my todo agenda view by todo keyword. Is that currently
possible? It seems from the org-agenda-sorting-strategy keyword, that
this is not the case.

Regards,
Jan Seeger

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sorting by todo-keyword
  2008-08-05 18:42 Sorting by todo-keyword Jan Seeger
@ 2008-08-12  8:06 ` Christian Egli
  2008-08-12  8:42   ` Manish
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Egli @ 2008-08-12  8:06 UTC (permalink / raw)
  To: emacs-orgmode

Hi

"Jan Seeger" <jan.seeger@thenybble.de> writes:
> I want to sort my todo agenda view by todo keyword. Is that currently
> possible? 

AFAIK No, currently you cannot do that.

> It seems from the org-agenda-sorting-strategy keyword, that
> this is not the case.

I posted a patch for this against org 5.18a way back
(http://article.gmane.org/gmane.emacs.orgmode/5066). You'd have to
forward port it to the current version of org, but git should help you
there. 

Let me know if you get anywhere.

HTH
Christian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Sorting by todo-keyword
  2008-08-12  8:06 ` Christian Egli
@ 2008-08-12  8:42   ` Manish
  2008-08-12  8:52     ` Christian Egli
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2008-08-12  8:42 UTC (permalink / raw)
  To: Christian Egli; +Cc: emacs-orgmode

On Tue, Aug 12, 2008 at 1:36 PM, Christian Egli wrote:
> Hi
>
> "Jan Seeger" writes:
>> I want to sort my todo agenda view by todo keyword. Is that currently
>> possible?
>
> AFAIK No, currently you cannot do that.
>
>> It seems from the org-agenda-sorting-strategy keyword, that
>> this is not the case.
>
> I posted a patch for this against org 5.18a way back
> (http://article.gmane.org/gmane.emacs.orgmode/5066). You'd have to
> forward port it to the current version of org, but git should help you
> there.
>
> Let me know if you get anywhere.

I tried applying the patch but it failed.

zms@master:~/elisp/org-mode.git$ git-apply 5066-001.bin
5066-001.bin:178: trailing whitespace.
		'priority (org-get-priority txt)
5066-001.bin:192: trailing whitespace.
	 (donepa (member ta org-done-keywords))
error: org.el: No such file or directory
zms@master:~/elisp/org-mode.git$ emacs22 -nw     #cleaning the
trailing whitespace
zms@master:~/elisp/org-mode.git$ git-apply 5066-001.bin
error: org.el: No such file or directory
zms@master:~/elisp/org-mode.git$ cd lisp/
zms@master:~/elisp/org-mode.git/lisp$ git-apply ../5066-001.bin
error: patch failed: lisp/org.el:2679
error: lisp/org.el: patch does not apply

Best,
-- Manish

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sorting by todo-keyword
  2008-08-12  8:42   ` Manish
@ 2008-08-12  8:52     ` Christian Egli
  2008-08-12  9:15       ` Manish
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Egli @ 2008-08-12  8:52 UTC (permalink / raw)
  To: emacs-orgmode

Manish <mailtomanish.sharma@gmail.com> writes:

> On Tue, Aug 12, 2008 at 1:36 PM, Christian Egli wrote:
>> Hi
>>
>> "Jan Seeger" writes:
>>> I want to sort my todo agenda view by todo keyword. Is that currently
>>> possible?
>>
>> AFAIK No, currently you cannot do that.
>>
>>> It seems from the org-agenda-sorting-strategy keyword, that
>>> this is not the case.
>>
>> I posted a patch for this against org 5.18a way back
>> (http://article.gmane.org/gmane.emacs.orgmode/5066). You'd have to
>> forward port it to the current version of org, but git should help you
>> there.
>>
>> Let me know if you get anywhere.
>
> I tried applying the patch but it failed.

Did you apply against 5.18a? You should be able to checkout 5.18a,
apply the patch and try to do a rebase to bring the patch up to the
current version of org.

If that doesn't work then I guess some manual work is required.

HTH
Christian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Sorting by todo-keyword
  2008-08-12  8:52     ` Christian Egli
@ 2008-08-12  9:15       ` Manish
  2008-08-13  3:02         ` Manish
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2008-08-12  9:15 UTC (permalink / raw)
  To: Christian Egli; +Cc: emacs-orgmode

Sorry, I did not.

Will try this later tonight.  Thanks,

-- Manish

On Tue, Aug 12, 2008 at 2:22 PM, Christian Egli <christian.egli@sbszh.ch> wrote:
> Manish <mailtomanish.sharma@gmail.com> writes:
>
>> On Tue, Aug 12, 2008 at 1:36 PM, Christian Egli wrote:
>>> Hi
>>>
>>> "Jan Seeger" writes:
>>>> I want to sort my todo agenda view by todo keyword. Is that currently
>>>> possible?
>>>
>>> AFAIK No, currently you cannot do that.
>>>
>>>> It seems from the org-agenda-sorting-strategy keyword, that
>>>> this is not the case.
>>>
>>> I posted a patch for this against org 5.18a way back
>>> (http://article.gmane.org/gmane.emacs.orgmode/5066). You'd have to
>>> forward port it to the current version of org, but git should help you
>>> there.
>>>
>>> Let me know if you get anywhere.
>>
>> I tried applying the patch but it failed.
>
> Did you apply against 5.18a? You should be able to checkout 5.18a,
> apply the patch and try to do a rebase to bring the patch up to the
> current version of org.
>
> If that doesn't work then I guess some manual work is required.
>
> HTH
> Christian
>
>
>
> _______________________________________________
> 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
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Sorting by todo-keyword
  2008-08-12  9:15       ` Manish
@ 2008-08-13  3:02         ` Manish
  2008-08-14 14:38           ` Christian Egli
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2008-08-13  3:02 UTC (permalink / raw)
  To: Christian Egli; +Cc: emacs-orgmode

  > On Tue, Aug 12, 2008 at 2:22 PM, Christian Egli wrote:
  >> Manish writes:
  >>
  >>> On Tue, Aug 12, 2008 at 1:36 PM, Christian Egli wrote:
  >>>> Hi
  >>>>
  >>>> "Jan Seeger" writes:
  >>>>> I want to sort my todo agenda view by todo keyword. Is that currently
  >>>>> possible?
  >>>>
  >>>> AFAIK No, currently you cannot do that.
  >>>>
  >>>>> It seems from the org-agenda-sorting-strategy keyword, that
  >>>>> this is not the case.
  >>>>
  >>>> I posted a patch for this against org 5.18a way back
  >>>> (http://article.gmane.org/gmane.emacs.orgmode/5066). You'd have to
  >>>> forward port it to the current version of org, but git should help you
  >>>> there.
  >>>>
  >>>> Let me know if you get anywhere.
  >>>
  >>> I tried applying the patch but it failed.
  >>
  >> Did you apply against 5.18a? You should be able to checkout 5.18a,
  >> apply the patch and try to do a rebase to bring the patch up to the
  >> current version of org.
  >>
  >> If that doesn't work then I guess some manual work is required.

I tried applying the patch to 5.18a but it failed again.  How can I
help get more debug information?

,----
| lappy:~/elisp/org-mode.git $ git checkout -b release_5.18a release_5.18a
| Checking out files: 100% (112/112), done.
| Switched to a new branch "release_5.18a"
| lappy:~/elisp/org-mode.git $ git branch
|   master
| * release_5.18a
|   zms
| lappy:~/elisp/org-mode.git $ git-apply.exe 5066-001.bin
| error: patch failed: org.el:2679
| error: org.el: patch does not apply
`----

Regards,
-- Manish

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sorting by todo-keyword
  2008-08-13  3:02         ` Manish
@ 2008-08-14 14:38           ` Christian Egli
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Egli @ 2008-08-14 14:38 UTC (permalink / raw)
  To: emacs-orgmode

Manish <mailtomanish.sharma@gmail.com> writes:

> I tried applying the patch to 5.18a but it failed again.  How can I
> help get more debug information?
>
> ,----
> | lappy:~/elisp/org-mode.git $ git checkout -b release_5.18a release_5.18a
> | Checking out files: 100% (112/112), done.
> | Switched to a new branch "release_5.18a"
> | lappy:~/elisp/org-mode.git $ git branch
> |   master
> | * release_5.18a
> |   zms
> | lappy:~/elisp/org-mode.git $ git-apply.exe 5066-001.bin
> | error: patch failed: org.el:2679
> | error: org.el: patch does not apply
> `----

Yes, I know, I tried myself. The problem is most likely that Carsten
rearranged the source code substantially. My patch was for org.el but
the changes should now probably be applied to lisp/org-agenda.el.

I don't know git well enough to judge if there is an automated way to
bring this patch back to life. The only way I see ATM is to manually
port it to the current version of org.

Basically the patch is (was) fairly simple:

* add a function org-cmp-todo-state along the lines of org-cmp-* which
  compares todo states.

* add this function to org-entries-lessp

* adapt the various functions that are invoked by
  org-finalize-agenda-entries (org-agenda-get-todos,
  org-agenda-get-scheduled, etc) to include the todo state in the
  properties of the text for the agenda line. You can probably get
  some inspiration from my old patch. 

HTH
Christian

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-08-14 14:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 18:42 Sorting by todo-keyword Jan Seeger
2008-08-12  8:06 ` Christian Egli
2008-08-12  8:42   ` Manish
2008-08-12  8:52     ` Christian Egli
2008-08-12  9:15       ` Manish
2008-08-13  3:02         ` Manish
2008-08-14 14:38           ` Christian Egli

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).