emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Several %(expression) in org-agenda-prefix-format


From: Christophe Schockaert
Subject: Re: [O] Several %(expression) in org-agenda-prefix-format
Date: Fri, 15 Apr 2016 00:37:19 +0200

address@hidden writes:

> Hi list,
>
> I'm trying to setup some custom agenda views that would be useful for my 
> work but i'm unable to define a custom org-agenda-prefix-format with 
> several %expression successfully.
>
[...]
> I've come up with the following (mal-functionning) 
> org-agenda-prefix-format:
>
> %(org-get-entry (point) "Case" t) %(org-entry-get (point) "CaseNum" t) 
> %(org-entry-get (point) "FiscalYear" t)

Hi Laurent,

I encountered the same limitation when I tried something alike.

I finally solved it using 'concat' in one unique %expression :

(org-agenda-prefix-format
  "%((concat (or (org-entry-get (point) \"Case\" t) \"\") \" \"
             (or (org-entry-get (point) \"CaseNum\" t) \"\") \" \"
             (or (org-entry-get (point) \"FiscalYear\" t) \"\") \" \"))")

For better readability in the agenda, or more complex expressions, I
thought I could write an entire function for handling them, but I never
dit.

> I would really appreciate that someone points me into the right 
> direction.
>
> Thanks,
>
> Laurent
Well, I hope you'll be able to get something from this direction :-)

Christophe

-- 
--------------->  mailto:address@hidden
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right.
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink.  Adapt yourself !  The archer has to shoot accurately and quickly.
[Words of Erenthar, the bowman ranger] <---------------<<<<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]