From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Michael Tindall Subject: Re: [ Bug] tsia-{up, down} sorting strategy not working for tags search agendas Date: Tue, 23 Sep 2014 16:34:58 +0000 Message-ID: <4f48458c39df48669e4a82f4a6bdd580@fcmailsvr2.familycareinc.org> References: <86oau6kbwf.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWT3W-0004DR-Ha for emacs-orgmode@gnu.org; Tue, 23 Sep 2014 12:35:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWT3S-0006IR-3u for emacs-orgmode@gnu.org; Tue, 23 Sep 2014 12:35:10 -0400 Received: from outbound.familycareinc.org ([207.170.205.147]:44001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWT3R-00065z-Qa for emacs-orgmode@gnu.org; Tue, 23 Sep 2014 12:35:06 -0400 In-Reply-To: <86oau6kbwf.fsf@somewhere.org> Content-Language: en-US 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: 'Sebastien Vauban' , "emacs-orgmode@gnu.org" > -----Original Message----- > From: emacs-orgmode-bounces+subhant=3Dfamilycareinc.org@gnu.org > [mailto:emacs-orgmode-bounces+subhant=3Dfamilycareinc.org@gnu.org] On > Behalf Of Sebastien Vauban > Sent: Tuesday, September 23, 2014 12:57 AM > To: emacs-orgmode@gnu.org > Subject: Re: [O] [ Bug] tsia-{up, down} sorting strategy not working for = tags > search agendas > = > Subhan Michael Tindall wrote: > > I have the following agendas (among others) defined: > > ("x" "Last worked" ((alltodo "" ( (org-agenda-sticky nil) > > (org-agenda-sorting-strategy (quote (tsia-up > > todo-state-down))))))) ("y" "Last worked2" ((tags "LastWorked=3D{.+}" ( > > (org-agenda-sticky nil) > > (org-agenda-sorting-strategy (quote (tsia-up > > todo-state-down))))))) > > > > I have a property defined in headlines that have been worked on: > > :PROPERTIES: > > :LastWorked: [2014-09-02 Tue 16:02] > > :END: > > > > TODOs etc that have not been worked yet don't have this property. > > > > The top search ("x") creates an agenda with items with a LastWorked > > property sorted with the least recent first, down to most recent, > > followed by any items with the LastWorked property unset sorted by todo- > state. > > > > The bottom search ("y") creates an agenda with only items with > > LastWorked property set (which I want) but completely ignores the > > tsia-up sorting strategy and sorts only by todo-state. > > > > I have confirmed that org-agenda-sorting-strategy-selected is correct in > both cases. > > The only difference is the agenda type (tags vs alltodo) > > > > Any ideas where to look for this ? > = > I guess it's directly linked to a problem I reported last September. This= is > indeed annoying... > = > See issue #29 on http://orgmode.org/worg/org-issues.html (and see the > pointed thread). > = > Best regards, > Seb > = > -- > Sebastien Vauban > = Indeed, it does appear to be the same issue. I assuming no progress on fix= ing it? I guess that leaves me with two workarounds (suitable for my purposes anywa= y): Use the "alltodo" search type and either A) write a customized skip function to exclude any entries without a 'LastW= orked' property entry Or B) write a customized sort so that empty entries sort to the bottom, not th= e top (possibly in both directions IE ABCDEEEEE for tsia-up, DCBAEEEEE for tsia-down Either of these will get me what I want. I'm a reasonably competent progra= mmer, a minimal elisper, and have almost no familiarity with the org code. = Any suggestions on which of these would be easier or more straightforward? I did take a look through the code to see if I could sort this out myself, = but couldn't really make heads or tails of it. This message is intended for the sole use of the individual and entity to w= hich it is addressed and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email and delete the message. Thank you.