From mboxrd@z Thu Jan 1 00:00:00 1970 From: yanmcbe Subject: Re: org-agenda-filter-effort and "invalid face reference" Date: Thu, 5 Jan 2017 01:15:11 +0100 Message-ID: References: <87vatwjc8b.fsf@nicolasgoaziou.fr> <87fukzdevr.fsf@nicolasgoaziou.fr> <8760lvde85.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1141047ee347b605454dcdbd Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOvil-0003bh-03 for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 19:15:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOvij-0005AE-85 for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 19:15:54 -0500 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:35210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOvij-00059F-2K for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 19:15:53 -0500 Received: by mail-qt0-x22a.google.com with SMTP id c47so505912264qtc.2 for ; Wed, 04 Jan 2017 16:15:53 -0800 (PST) In-Reply-To: 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: org mode , Nicolas Goaziou --001a1141047ee347b605454dcdbd Content-Type: text/plain; charset=UTF-8 Wow, this issue comes very close to something I struggled for hours with (3h42') last year. It finally boiled down to this: sorting by effort in the agenda view only works (correctly) when org-agenda-remove-tags is t. Here's the (edited) ECM I created for IRC and eventually the list: http://paste.lisp.org/+7723 Is that still expected behaviour? Lack of documentation? The updated org-agenda-compare-effort Nicolas provided doesn't solve this, at least. Thanks Yan On Wed, Jan 4, 2017 at 10:10 PM, wtm wrote: > After some additional testing, I was able to isolate the problem: > org-agenda-filter-by-effort only filtered entries that had no tags or > tag inheritance. This leads me to believe that I just don't > understand how this command, org-agenda-filter-by-effort, is actually > supposed to work. If I have an entry like this: > > * TODO task 1 :tag: > :PROPERTIES: > :Effort: 0:30 > :END: > > And one like this: > > * TODO task 2 > :PROPERTIES: > :Effort: 0:30 > :END: > > And I've added the org file to the agenda list and created the > appropriate org-global-properties: > > (setq org-global-properties > '(("Effort_ALL". "0 0:10 0:30 1:00 2:00 3:00 4:00"))) > > Shouldn't org-agenda-filter-by-effort set to = "0:30" show both of > those tasks? In my case, I'm only seeing this one: > > * TODO task 2 > :PROPERTIES: > :Effort: 0:30 > :END: > > On Tue, Jan 3, 2017 at 3:50 PM, wtm wrote: > > Thanks, Nicolas. After adding that code to my config, I tried it > > again and although the message "invalid face reference" no longer > > displays, I'm still unable to see any of the entries > > > > I also tried it without any custom configuration except the addition > > of the code you sent. I had the same result: no more "invalid face > > reference" but no display of expected entries after filtering for > > effort. > > > > Perhaps I'm missing something very simple? If you have any > > suggestions, I'd love to try them. > > > > On Tue, Jan 3, 2017 at 3:29 PM, Nicolas Goaziou > wrote: > >> wtm writes: > >> > >>> I'm installing org-mode from elpa. Until that update is available > >>> would using the "org-faces.el" file in the latest git commit > >>> (http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commit; > h=3bba31ff44033e895fedd99857363dd5b0586b41) > >>> work? > >> > >> Meanwhile, you only need to put the following somewhere in your config: > >> > >> (defface org-agenda-filter-effort '((t :inherit mode-line)) > >> "Face for effort in the mode-line when filtering the agenda." > >> :group 'org-faces) > >> > >> > >> Regards, > > --001a1141047ee347b605454dcdbd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Wow, this issue comes very close to so= mething I struggled for hours with (3h42') last year.

It f= inally boiled down to this: sorting by effort in the agenda view only works= (correctly) when org-agenda-remove-tags is t. Here's the (edited) ECM I created = for IRC an= d eventually the list: http://paste= .lisp.org/+7723

Is that still expected behaviour? Lack of = documentation? The updated org-agenda-compare-effort Nicolas provided doesn= 't solve this, at least.

Thanks
Yan
=

On Wed, Jan 4, 20= 17 at 10:10 PM, w= tm <w= tmonroe.ls@gmail.com> wrote:
After some additional testing, I was able to is= olate the problem:
org-agenda-filter-by-effort only filtered entries that had no tags or
tag inheritance.=C2=A0 This leads me to believe that I just don't
understand how this command, org-agenda-filter-by-effort, is actually
supposed to work.=C2=A0 If I have an entry like this:

* TODO task 1=C2=A0 :tag:
:PROPERTIES:
:Effort: 0:30
:END:

And one like this:

* TODO task 2
:PROPERTIES:
:Effort: 0:30
:END:

And I've added the org file to the agenda list and created the
appropriate org-global-properties:

(setq org-global-properties
=C2=A0 =C2=A0 =C2=A0 '(("Effort_ALL". "0 0:10 0:30 1:00 = 2:00 3:00 4:00")))

Shouldn't org-agenda-filter-by-effort set to =3D "0:30" show = both of
those tasks?=C2=A0 In my case, I'm only seeing this one:

* TODO task 2
:PROPERTIES:
:Effort: 0:30
:END:

On Tue, Jan 3, 2017 at 3:50 PM, wtm <wtmonroe.ls@gmail.com> wrote:
> Thanks, Nicolas.=C2=A0 After adding that code to my config, I tried it=
> again and although the message "invalid face reference" no l= onger
> displays, I'm still unable to see any of the entries
>
> I also tried it without any custom configuration except the addition > of the code you sent.=C2=A0 I had the same result:=C2=A0 no more "= ;invalid face
> reference" but no display of expected entries after filtering for=
> effort.
>
> Perhaps I'm missing something very simple?=C2=A0 If you have any > suggestions, I'd love to try them.
>
> On Tue, Jan 3, 2017 at 3:29 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wr= ote:
>> wtm <wtmonroe.ls@gmail.com> writes:
>>
>>> I'm installing org-mode from elpa.=C2=A0 Until that update= is available
>>> would using the "org-faces.el" file in the latest gi= t commit
>>> (http://orgmode.org/w/org-mode.git?p=3Dorg-mode.git= ;a=3Dcommit;h=3D3bba31ff44033e895fedd99857363dd5b0586b41)
>>> work?
>>
>> Meanwhile, you only need to put the following somewhere in your co= nfig:
>>
>>=C2=A0 =C2=A0(defface org-agenda-filter-effort '((t :inherit mo= de-line))
>>=C2=A0 =C2=A0 =C2=A0"Face for effort in the mode-line when fil= tering the agenda."
>>=C2=A0 =C2=A0 =C2=A0:group 'org-faces)
>>
>>
>> Regards,


--001a1141047ee347b605454dcdbd--