emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: wtm <wtmonroe.ls@gmail.com>
Cc: Jorge Morais Neto <jorge13515@gmail.com>,
	org mode <emacs-orgmode@gnu.org>
Subject: Re: org-agenda-filter-effort and "invalid face reference"
Date: Wed, 04 Jan 2017 23:40:50 +0100	[thread overview]
Message-ID: <874m1esb2l.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAOtLKaYdr6hJnF7wBejO_SiYh6rtWMmeF7B3MWeSRbBBQ4ihKQ@mail.gmail.com> (wtm's message of "Wed, 4 Jan 2017 16:37:36 -0600")

wtm <wtmonroe.ls@gmail.com> 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	other threads:[~2017-01-04 22:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-01 22:00 org-agenda-filter-effort and "invalid face reference" wtm
2017-01-03 17:16 ` Nicolas Goaziou
2017-01-03 19:55   ` wtm
2017-01-03 20:30   ` Jorge Morais Neto
2017-01-03 21:15     ` Nicolas Goaziou
2017-01-03 21:22       ` wtm
2017-01-03 21:29         ` Nicolas Goaziou
2017-01-03 21:50           ` wtm
2017-01-04 21:10             ` wtm
2017-01-04 22:31               ` Nicolas Goaziou
2017-01-04 22:37                 ` wtm
2017-01-04 22:40                   ` Nicolas Goaziou [this message]
2017-01-04 22:44                     ` wtm
2017-01-05  0:15               ` yanmcbe
2017-01-05 11:31                 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874m1esb2l.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jorge13515@gmail.com \
    --cc=wtmonroe.ls@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).