From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Schockaert Subject: Re: Several %(expression) in org-agenda-prefix-format Date: Fri, 15 Apr 2016 17:52:57 +0200 Message-ID: <87twj2x412.fsf@artlab.createcnix.lan> References: <14bdd0027a3034e92aae833e31c0e5d3@posteo.de> <87shynbyw0.fsf@artlab.createcnix.lan> <87r3e7q6dh.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar63s-0004rO-Mk for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 11:53:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar63o-00085u-M4 for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 11:53:36 -0400 Received: from smtp3.tech.numericable.fr ([82.216.111.39]:48664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar63o-00085e-F0 for emacs-orgmode@gnu.org; Fri, 15 Apr 2016 11:53:32 -0400 Received: from artlab.createcnix.lan (89-157-3-65.rev.numericable.fr [89.157.3.65]) by smtp3.tech.numericable.fr (Postfix) with ESMTP id 1E58418D4AE for ; Fri, 15 Apr 2016 17:53:31 +0200 (CEST) Received: from artlab.createcnix.lan (localhost.createcnix.lan [127.0.0.1]) by artlab.createcnix.lan (Postfix) with ESMTPS id 4F4825EC16 for ; Fri, 15 Apr 2016 17:52:57 +0200 (CEST) In-reply-to: <87r3e7q6dh.fsf@alphaville.usersys.redhat.com> 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: emacs-orgmode@gnu.org Nick Dokos writes: > laurent.jucquois@posteo.de writes: > >> Hi Christophe, >> >> Thanks for the pointer! >> >> I had already tried this solution but I wasn't entirely satisfied >> because of alignment reasons. >> [...] > Can't you use something like: > > (format "%-40s" (concat ...)) > > ? Laurent, Glad you went further. As Nikos said, for alignment, you can use 'format', and maybe build a wholly formated string=C2=A0: (format "%-10s%-24s%-20s" (concat (org-entry-get "prop1")) (concat ...) ...) in order to get something like=C2=A0: DUPOND 12/RG/569 (10) : My task DURAND 16/1689/A (05; 10-12; 14) : My task I don't know how you want your display to render in the end, but 'format' will allow you quite much flexibility. Regards, Christophe --=20 ---------------> 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 qui= ckly. [Words of Erenthar, the bowman ranger] <---------------<<<<