From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Several %(expression) in org-agenda-prefix-format Date: Fri, 15 Apr 2016 12:00:36 -0400 Message-ID: References: <14bdd0027a3034e92aae833e31c0e5d3@posteo.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar6Al-0002cK-Uu for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 12:00:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar6Ai-0000hv-Mk for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 12:00:43 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:33649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar6Ai-0000hX-Iy for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 12:00:40 -0400 Received: by mail-qg0-x231.google.com with SMTP id j35so83530994qge.0 for ; Fri, 15 Apr 2016 09:00:39 -0700 (PDT) In-reply-to: <14bdd0027a3034e92aae833e31c0e5d3@posteo.de> 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: laurent.jucquois@posteo.de Cc: org-mode-email What about setting ":CATEGORY: PD v. BS" in the top level :PROPERTIES: drawer. Then in the agenda you'd see: PD v BS: My first pleadings -k. On 2016-04-14 at 09:02, laurent.jucquois@posteo.de wrote: > 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. > > My org-file is as follow: > > * Pierre Dupond v. Belgian State > :PROPERTIES: > :Case: Dupond > :Location: Court of XX > :FiscalYear: 13-14 > :CaseNum: 15/RG/139 > :END: > > ** My first pleadings > DEADLINE: <2016-05-15 mon.> > ** Pleading from Belgian State > ** My second pleadings > ** etc. > > When I check my agenda, it doesn't serve me at all to see the general > description "** My first pleadings" if I don't know to which case it > relates. > > So, I'm trying to setup a custom agenda view that would look like this: > > Dupond 15/RG/139 (13-14) : My first pleadings > > 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) > > But this only gives me : > > Dupond : My first pleadings > > I would really appreciate that someone points me into the right > direction. > > Thanks, > > Laurent