From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] initialize level in org-agenda-format-item Date: Wed, 26 Sep 2012 11:36:28 +0200 Message-ID: <871uhp5dnn.fsf@bzg.ath.cx> References: <87pq59tabj.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGo2h-0004JQ-7U for emacs-orgmode@gnu.org; Wed, 26 Sep 2012 05:36:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGo2b-0001dL-F3 for emacs-orgmode@gnu.org; Wed, 26 Sep 2012 05:36:31 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:61275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGo2b-0001dH-7d for emacs-orgmode@gnu.org; Wed, 26 Sep 2012 05:36:25 -0400 Received: by wgbdt14 with SMTP id dt14so231787wgb.30 for ; Wed, 26 Sep 2012 02:36:24 -0700 (PDT) In-Reply-To: <87pq59tabj.wl%n142857@gmail.com> (Daniel Clemente's message of "Wed, 26 Sep 2012 11:14:40 +0200") 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: Daniel Clemente Cc: emacs-orgmode@gnu.org Hi Daniel, Daniel Clemente writes: > When I used %l in org-agenda-prefix-format, my agenda failed with: > > Debugger entered--Lisp error: (args-out-of-range 0 0) > get-text-property(0 extra-space nil) > (concat level "" (get-text-property 0 (quote extra-space) level)) > (if (equal level "") "" (concat level "" (get-text-property 0 (quote extra-space) level))) > (format "%s" (if (equal level "") "" (concat level "" (get-text-property 0 (quote extra-space) level)))) > … > > It was due to „level“ being nil. The (if (equal level "")) did not run > because level was nil and not "". Fixed in master. Thanks for reporting this, -- Bastien