From: wtm <wtmonroe.ls@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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, 4 Jan 2017 16:44:00 -0600 [thread overview]
Message-ID: <CAOtLKaYMRihc7aXr1cLoQKOGo1K8TuXFpMRD1jvvxAUN67XySA@mail.gmail.com> (raw)
In-Reply-To: <874m1esb2l.fsf@nicolasgoaziou.fr>
Works perfectly. Thank you, Nicolas!
On Wed, Jan 4, 2017 at 4:40 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> 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,
next prev parent reply other threads:[~2017-01-04 22:44 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
2017-01-04 22:44 ` wtm [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOtLKaYMRihc7aXr1cLoQKOGo1K8TuXFpMRD1jvvxAUN67XySA@mail.gmail.com \
--to=wtmonroe.ls@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jorge13515@gmail.com \
--cc=mail@nicolasgoaziou.fr \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.