From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Beck" Subject: How to change agenda sorting order temporarily? Date: Mon, 30 May 2016 14:14:03 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7M5E-0002zm-FV for emacs-orgmode@gnu.org; Mon, 30 May 2016 08:14:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7M58-0002l8-FN for emacs-orgmode@gnu.org; Mon, 30 May 2016 08:14:11 -0400 Received: from mout.web.de ([212.227.15.4]:60901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7M58-0002l2-5J for emacs-orgmode@gnu.org; Mon, 30 May 2016 08:14:06 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs orgmode-mailinglist
I'm working with a lot of pre-defined agendas, but I sometimes would like to change the sorting order of one of those to different criteria (by time, alphanumerically, etc.).
 
I did not find a way to do that in org-mode directly - did I overlook something, or do I really have to change the configuration of the whole agenda and rebuild it?
 
Related problem:
If I change the configuration of the agenda by changing the customizing options, those changes do only have an effect, if I kill the agenda buffer and launch the agenda again.
It would be nice, if I just could rebuild the existing agenda with "r" or "g", but that does not seem to be sufficient?
 
Kind regards
 
Martin
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: How to change agenda sorting order temporarily? Date: Mon, 30 May 2016 08:25:50 -0700 Message-ID: <874m9fy3cx.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7P3f-0005O3-TE for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:24:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7P3a-0006f8-R7 for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:24:46 -0400 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:35953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7P3a-0006ep-JM for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:24:42 -0400 Received: by mail-pf0-x22d.google.com with SMTP id f144so52828752pfa.3 for ; Mon, 30 May 2016 08:24:41 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Martin Beck , emacs orgmode-mailinglist Hi Martin, Martin Beck writes: > I'm working with a lot of pre-defined agendas, but I sometimes would > like to change the sorting order of one of those to different criteria > (by time, alphanumerically, etc.). > I did not find a way to do that in org-mode directly - did I overlook > something, or do I really have to change the configuration of the > whole agenda and rebuild it? Did you find the variable `org-agenda-sorting-strategy'? That offers a lot of possibilities. > Related problem: > If I change the configuration of the agenda by changing the > customizing options, those changes do only have an effect, if I kill > the agenda buffer and launch the agenda again. > It would be nice, if I just could rebuild the existing agenda with "r" > or "g", but that does not seem to be sufficient? I'm afraid I don't know the answer to this, but would also be interested to hear what it is. Best, Richard From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: How to change agenda sorting order temporarily? Date: Mon, 30 May 2016 10:33:16 -0500 Message-ID: <87wpmbblxf.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7PC9-00020e-Ee for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:33:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7PC4-0008KI-Ch for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:33:32 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7PC1-0008Gp-UB for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:33:28 -0400 In-Reply-To: (Martin Beck's message of "Mon, 30 May 2016 14:14:03 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Martin Beck Cc: emacs orgmode-mailinglist "Martin Beck" writes: > I'm working with a lot of pre-defined agendas, but I sometimes would > like to change the sorting order of one of those to different criteria > (by time, alphanumerically, etc.). > > I did not find a way to do that in org-mode directly - did I overlook > something, or do I really have to change the configuration of the > whole agenda and rebuild it? > > Related problem: > If I change the configuration of the agenda by changing the > customizing options, those changes do only have an effect, if I kill > the agenda buffer and launch the agenda again. > It would be nice, if I just could rebuild the existing agenda with "r" > or "g", but that does not seem to be sufficient? > Here's a quick function that works for me: --8<---------------cut here---------------start------------->8--- (defun my-org-agenda-change-sorting-strategy (strategy) "Change the sorting strategy." (interactive (list (completing-read "Choose a strategy: " (mapcar 'cdr (cdr org-sorting-choice)) nil t))) ;; adjust the following types as needed - e.g., add 'agenda, etc. (org-agenda-check-type t 'todo 'tags 'search) (let ((org-agenda-sorting-strategy (list (intern strategy)))) (org-agenda-redo))) --8<---------------cut here---------------end--------------->8--- Matt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: How to change agenda sorting order temporarily? Date: Mon, 30 May 2016 10:38:02 -0500 Message-ID: <87r3cjblph.fsf@fastmail.fm> References: <87wpmbblxf.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7PGk-0005fK-Ja for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:38:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7PGg-0000jr-Ih for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:38:18 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:47118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7PGe-0000hL-9F for emacs-orgmode@gnu.org; Mon, 30 May 2016 11:38:14 -0400 In-Reply-To: <87wpmbblxf.fsf@fastmail.fm> (Matt Lundin's message of "Mon, 30 May 2016 10:33:16 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Martin Beck Cc: emacs orgmode-mailinglist Matt Lundin writes: > "Martin Beck" writes: > >> I'm working with a lot of pre-defined agendas, but I sometimes would >> like to change the sorting order of one of those to different criteria >> (by time, alphanumerically, etc.). >> >> I did not find a way to do that in org-mode directly - did I overlook >> something, or do I really have to change the configuration of the >> whole agenda and rebuild it? >> >> Related problem: >> If I change the configuration of the agenda by changing the >> customizing options, those changes do only have an effect, if I kill >> the agenda buffer and launch the agenda again. >> It would be nice, if I just could rebuild the existing agenda with "r" >> or "g", but that does not seem to be sufficient? >> > > Here's a quick function that works for me: > > (defun my-org-agenda-change-sorting-strategy (strategy) > "Change the sorting strategy." > (interactive (list > (completing-read "Choose a strategy: " > (mapcar 'cdr (cdr org-sorting-choice)) > nil t))) > ;; adjust the following types as needed - e.g., add 'agenda, etc. > (org-agenda-check-type t 'todo 'tags 'search) > (let ((org-agenda-sorting-strategy (list (intern strategy)))) > (org-agenda-redo))) I should add that with this function the new sort order is temporary. Pressing "r" for refresh will restore the default sort order for the buffer. Matt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to change agenda sorting order temporarily? Date: Mon, 30 May 2016 10:55:54 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7RPx-0006wa-MH for emacs-orgmode@gnu.org; Mon, 30 May 2016 13:55:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7RPv-0000Kw-Sa for emacs-orgmode@gnu.org; Mon, 30 May 2016 13:55:56 -0400 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]:35790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7RPv-0000Kq-Nx for emacs-orgmode@gnu.org; Mon, 30 May 2016 13:55:55 -0400 Received: by mail-vk0-x22a.google.com with SMTP id d127so70197263vkh.2 for ; Mon, 30 May 2016 10:55:55 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Martin Beck Cc: emacs orgmode-mailinglist we have more or less instant tag filtering. i wonder if we could also have instant sort order changing?