emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-agenda-filter-effort and "invalid face reference"


From: wtm
Subject: Re: [O] org-agenda-filter-effort and "invalid face reference"
Date: Wed, 4 Jan 2017 16:44:00 -0600

Works perfectly.  Thank you, Nicolas!

On Wed, Jan 4, 2017 at 4:40 PM, Nicolas Goaziou <address@hidden> wrote:
> wtm <address@hidden> writes:
>
>> Wonderful!  Is there any elisp that I could add to my config to test
>> it?  I would love have this capability.
>
> You need to eval
>
>   (defun org-agenda-compare-effort (op value)
>     "Compare the effort of the current line with VALUE, using OP.
>   If the line does not have an effort defined, return nil."
>     (let ((effort (get-text-property 0 'effort-minutes (org-get-at-bol 
> 'txt))))
>       (funcall op
>                (or effort (if org-sort-agenda-noeffort-is-high 32767 -1))
>                value)))
>
> Regards,



reply via email to

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