Re: [O] org-agenda-filter-effort and "invalid face reference"

2017-01-04 Thread yanmcbe
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,
>
>


[O] automatically updating a table (including adding rows)

2017-01-04 Thread yanmcbe
Hi

I have a bit of a rambling question. I'd like to have a table to which I
can decide to have a row added which contains a value computed from a
columnview table (the ratio of time logged over the total amount of
Effort). That's the main goal, but since it doesn't work like I want, I'm
looking for some general advice as well (e.g. on TBLFM lines using lisp
forms).

I have created a MCE at http://paste.lisp.org/+771D

Hopefully some of the gotchas I encountered are clearly explained there.
Please let me know if you read all of this and didn't understand what I'm
asking for specifically!

Thanks!

Kind regards
Yan


[O] inheritance of mutually exclusive tags

2016-12-28 Thread yanmcbe
Org-mode allows marking a set of tags as mutually exclusive. It also allows
the inheritance of tags.

(from now on I am talking only about these mutually exclusive tags)

When a tag is set in a parent, but also in a child, what I expect to happen
is that the child is not included in searches/selections with the parent
tag.

In the example [0], a search for black (e.g. C-/ m black ) should not
match poodle, because it is white.

Now I realize that the mutually exclusive tag concept is probably only a
convenience for adding tags with C-c. And it doesn't seem to have any other
implications, but it would be nice to have. Do you think this is a
possibility or that I could get this behaviour some other way?

Thanks!

[0] http://paste.lisp.org/+76JF


Re: [O] org mode capture to headline at point

2016-05-28 Thread yanmcbe
Thanks!

You misunderstood though! Ending up over the asterisk is what my function
does (if it works as intended)! So it should work anywhere in the heading?