emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Faulty logic in org-cmp-tag/alpha


From: Nicolas Goaziou
Subject: Re: [O] [PATCH] Faulty logic in org-cmp-tag/alpha
Date: Sun, 10 Mar 2019 11:15:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

Carlos Pita <address@hidden> writes:

> Hi all,
>
> there is a problem in this kind of logic:
>
>     (cond ((not ta) +1)
>       ((not tb) -1)
>       ((string-lessp ta tb) -1)
>       ((string-lessp tb ta) +1))))
>
> in that when both ta and tb are nil then they are arbitrarily sorted.
> Since the agenda sorting strategy is lexicographic this logic
> virtually invalidates any strategy that puts tag or alpha first, v.g.
> '(tag-up priority-down).
>
> I've attached a patch returning nil when both ta and tb are nil so as
> to fallback to the next sorting criterion without favoring lhs nor
> rhs.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]