[Top][All Lists]

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

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

From: Nicolas Goaziou
Subject: Re: [O] org-agenda-filter-effort and "invalid face reference"
Date: Wed, 04 Jan 2017 23:40:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

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))


reply via email to

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