From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-dblock-update regression in case of :maxlevel 0 [9.0.5 (9.0.5-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20170210/)] Date: Mon, 13 Feb 2017 16:46:11 +0100 Message-ID: <871sv2m6v0.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdIpT-0002AF-S5 for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 10:46:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdIpS-0001eg-Kr for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 10:46:15 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:37717) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdIpS-0001eT-Ef for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 10:46:14 -0500 In-Reply-To: (Christoph LANGE's message of "Sun, 12 Feb 2017 20:54:56 +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" To: Christoph LANGE Cc: "emacs-orgmode@gnu.org" Hello, Christoph LANGE writes: > I believe the following fix > > http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=ccf832e8317dbac7d3ac2b7dfbb515b1292a329c > > introduced a regression. When I want to run org-dblock-update on a > clocktable with :maxlevel 0 (I'll be happy to provide an example), it > fails with > > Debugger entered--Lisp error: (wrong-type-argument wholenump -1) > make-string(-1 124) > > in org-clocktable-write-default, I think in > > (make-string (1- (min maxlevel (or ntcol 100))) ?|) > > to be exact, because (1- maxlevel) is -1. I can reproduce the problem. However, I'm not sure to understand the meaning of ":maxlevel 0". Don't you mean ":maxlevel 1"? It sounds like a user error to me. Regards, -- Nicolas Goaziou