From mboxrd@z Thu Jan 1 00:00:00 1970 From: wtm Subject: Re: org-agenda-filter-effort and "invalid face reference" Date: Wed, 4 Jan 2017 16:44:00 -0600 Message-ID: References: <87vatwjc8b.fsf@nicolasgoaziou.fr> <87fukzdevr.fsf@nicolasgoaziou.fr> <8760lvde85.fsf@nicolasgoaziou.fr> <87h95esbit.fsf@nicolasgoaziou.fr> <874m1esb2l.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOuHr-0005Cg-5e for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 17:44:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOuHq-0004op-Fm for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 17:44:03 -0500 Received: from mail-wj0-x22c.google.com ([2a00:1450:400c:c01::22c]:35310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOuHq-0004ob-9H for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 17:44:02 -0500 Received: by mail-wj0-x22c.google.com with SMTP id i20so21433751wjn.2 for ; Wed, 04 Jan 2017 14:44:02 -0800 (PST) In-Reply-To: <874m1esb2l.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Jorge Morais Neto , org mode Works perfectly. Thank you, Nicolas! On Wed, Jan 4, 2017 at 4:40 PM, Nicolas Goaziou wrote: > 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,