From mboxrd@z Thu Jan 1 00:00:00 1970 From: laurent.jucquois@posteo.de Subject: Re: Several %(expression) in org-agenda-prefix-format Date: Fri, 15 Apr 2016 10:16:36 +0200 Message-ID: References: <14bdd0027a3034e92aae833e31c0e5d3@posteo.de> <87d1prevy1.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyvk-0002pD-Sv for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 04:16:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqyvg-0005sb-SO for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 04:16:44 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyvg-0005rc-Mm for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 04:16:40 -0400 Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id 7C97520B8A for ; Fri, 15 Apr 2016 10:16:39 +0200 (CEST) In-Reply-To: <87d1prevy1.fsf@alphapapa.net> 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: Adam Porter Cc: emacs-orgmode@gnu.org Hi Adam, I messed up my example, I meant to write 'org-entry-get'. Sadly, the problem doesn't come from there. Like Christophe suggested, I guess I'll satisfy myself with a concat expression of all the properties I need, which is not ideal for readability (not all my properties have the same length). Maybe this could be reported as a bug or maybe the documentation should be upgraded if one is only allowed to pass 'org-agenda-prefix-format' one custom %(expression). Anyway, I'm really far far away from being able to understand what's going on under the hood of 'org-agenda-prefix-format' to solve this problem myself. But I hope someone will (or maybe I will when I've finally learned enough lisp)! Cheers, Laurent Am 14.04.2016 23:12 schrieb Adam Porter: > laurent.jucquois@posteo.de writes: > >> 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 > > Hi Laurent, > > I noticed that you're using both `org-get-entry' and `org-entry-get'. > According to the docs, only `org-entry-get' should do what you want, > but > your output seems to indicate the opposite. I'm not sure what to make > of that, but maybe this is a clue to the problem...? > > Please let us know how you fix it. I've been wanting to try something > like that myself.