From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Bug in :minlevel for INCLUDE Date: Thu, 05 May 2011 18:17:43 -0500 Message-ID: <4DC33017.5060207@sift.info> References: <4DC32813.5090103@sift.info> <7063.1304636608@alphaville.dokosmarshall.org> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI7np-0006Tq-B6 for emacs-orgmode@gnu.org; Thu, 05 May 2011 19:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI7no-0000aG-9H for emacs-orgmode@gnu.org; Thu, 05 May 2011 19:17:49 -0400 Received: from mpls.sift.info ([75.146.46.193]:48224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI7no-0000a4-5p for emacs-orgmode@gnu.org; Thu, 05 May 2011 19:17:48 -0400 In-Reply-To: <7063.1304636608@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: Org Mode On 5/5/11 May 5 -6:03 PM, Nick Dokos wrote: > Robert Goldman wrote: > >> AFAICT there is an off-by-one-error here. I.e., if I tell it that the >> :minlevel is 2, then my included level one headers get level 3, and if I >> tell it that the :minlevel is 1, then they get level 2. >> > > I think that's the desired behavior. That allows text before the first > headline in the included file (level 0) to properly take its place in the > result tree. > >> So it seems like :minlevel is actually being interpreted as a level >> *increment*, rather than a minimum... >> > > I don't really understand your comment: level N in the included file > becomes level :minlevel+N in the result (N = 0, 1, 2, ...). What were you > expecting? I was expecting the standard English usage (always dangerous in a technical context!). The minimum of 1,2,3 is 1. But here the thing we are calling "minimum" for 1,2,3 would be zero. Suggestion: the term :levelinc[rement] would be more indicative of the meaning. I think if you read your explanation, you will see that the thing referred to as a minimum is really an increment... It may be too late to make that change without disruption, so the alternative would be to modify the manual to make the meaning clearer. Best, r