From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-agenda-filter-effort and "invalid face reference" Date: Wed, 04 Jan 2017 23:40:50 +0100 Message-ID: <874m1esb2l.fsf@nicolasgoaziou.fr> References: <87vatwjc8b.fsf@nicolasgoaziou.fr> <87fukzdevr.fsf@nicolasgoaziou.fr> <8760lvde85.fsf@nicolasgoaziou.fr> <87h95esbit.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOuEn-00040d-07 for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 17:40:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOuEm-0003sA-Bg for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 17:40:53 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45384) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOuEm-0003ry-5O for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 17:40:52 -0500 In-Reply-To: (wtm's message of "Wed, 4 Jan 2017 16:37:36 -0600") 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: wtm Cc: Jorge Morais Neto , org mode wtm 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,