From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: %? has no effect for org-agenda-prefix-format Date: Wed, 16 Mar 2016 21:58:27 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agJSk-0002Ch-5x for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 17:58:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agJSe-0000Wm-T6 for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 17:58:42 -0400 Received: from plane.gmane.org ([80.91.229.3]:44884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agJSe-0000VZ-Mx for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 17:58:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1agJSc-0005rW-AZ for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 22:58:34 +0100 Received: from 142.103.74.64 ([142.103.74.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Mar 2016 22:58:34 +0100 Received: from hellerm2 by 142.103.74.64 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Mar 2016 22:58:34 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Excerpt from describe-variable org-agenda-prefix-format: If the first character after `%' is a question mark, the entire field will only be included if the corresponding value applies to the current entry. This is useful for fields which should have fixed width when present, but zero width when absent. For example, "%?-12t" will result in a 12 character time field if a time of the day is specified, but will completely disappear in entries which do not contain a time. This does not work for me (emacs 24.3, Org-mode version 8.2.10 (8.2.10- 41-g42228a-elpa)). Excerpt from agenda view: Project Subtasks INFRA nil : TODO Purchase Fragment Library Excerpt from org file (Not that the task in question has no Property drawer at all): * Other Infrastructure Development :PROPERTIES: :CATEGORY: INFRA :END: ** TODO NMR-based Fragment Screen *** TODO Purchase Fragment Library Here's the definition of org-agenda-prefix-format from my .emacs: ((org-agenda-prefix-format " %-5c %?-4(setq type (org-entry-get (point) \"Type\")): ") There is a similar thread on stackexchange from March 10 on this (http://stackoverflow.com/questions/35910204/org-agenda-prefix-format- does-not-work). Is this a bug? Thanks Markus