all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christophe Schockaert <R3vLibre@citadels.eu>
To: laurent.jucquois@posteo.de
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: Several %(expression) in org-agenda-prefix-format
Date: Fri, 15 Apr 2016 00:37:19 +0200	[thread overview]
Message-ID: <87shynbyw0.fsf@artlab.createcnix.lan> (raw)
In-Reply-To: <14bdd0027a3034e92aae833e31c0e5d3@posteo.de>


laurent.jucquois@posteo.de 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:R3vLibre@citadels.eu
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] <---------------<<<<

  parent reply	other threads:[~2016-04-14 22:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 13:02 Several %(expression) in org-agenda-prefix-format laurent.jucquois
2016-04-14 21:12 ` Adam Porter
2016-04-15  8:16   ` laurent.jucquois
2016-04-14 22:37 ` Christophe Schockaert [this message]
2016-04-15  8:10   ` laurent.jucquois
2016-04-15 14:44     ` Nick Dokos
2016-04-15 15:52       ` Christophe Schockaert
2016-04-15 15:56       ` laurent.jucquois
2016-04-15 16:00 ` Ken Mankoff
2016-04-15 17:49   ` laurent.jucquois
2016-04-15 19:55   ` Peter Davis
2016-04-15 21:47     ` Adam Porter

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=87shynbyw0.fsf@artlab.createcnix.lan \
    --to=r3vlibre@citadels.eu \
    --cc=emacs-orgmode@gnu.org \
    --cc=laurent.jucquois@posteo.de \
    /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.