From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [Bug] #+call does not respect :colnames argument Date: Fri, 26 Jul 2013 18:54:08 -0600 Message-ID: <87zjt8g6vj.fsf@gmail.com> References: <1e44d3b3697f439e425399908547d946@mail.rickster.com> <87vc3xgqa5.fsf@gmail.com> <20130726205233.GA72349@BigDog.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2soV-0002Vf-MN for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 20:56:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2soP-00029I-SH for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 20:56:51 -0400 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:49352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2soP-000298-Lo for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 20:56:45 -0400 Received: by mail-pa0-f42.google.com with SMTP id lj1so3833802pab.29 for ; Fri, 26 Jul 2013 17:56:44 -0700 (PDT) Received: from bagel (c-174-56-50-60.hsd1.nm.comcast.net. [174.56.50.60]) by mx.google.com with ESMTPSA id nm10sm62659381pbc.28.2013.07.26.17.56.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 26 Jul 2013 17:56:42 -0700 (PDT) In-Reply-To: <20130726205233.GA72349@BigDog.local> (Rick Frankel's message of "Fri, 26 Jul 2013 16:52:33 -0400") 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 Rick Frankel writes: > On Fri, Jul 26, 2013 at 11:53:33AM -0600, Eric Schulte wrote: >> Rick Frankel writes: >> >> > I have debugged why the :colnames argument is not respected as to >> > removing the header from a table var. > >> Thanks for taking the time to find the root of this problem. I believe >> I've fixed this by change the `org-babel-merge-params' function so that >> when the value of a variable is update, then colname-names and >> rowname-names values saved for that variable are removed. >> >> In my local tests the attached patch fixes this issue. If it works for >> you as well then I'll apply it. > > Works for me. Thanx, this will simplify a lot of code (e.g., the > example dot-from-tables that was floating around last week) > > Aside... It's difficult for me to follow the code, so can you explain > the why the different results between: > > #+call: emacs-echo(table=with-hline2) :colnames yes > > #+results: > | B | C | D | > |---+---+---| > | 3 | 4 | 5 | > | 6 | 7 | 8 | > > and > > #+call: emacs-echo(table=with-hline2)[:colnames yes] > > #+results: > | B | C | D | > The later is not valid call line syntax, see [1] for a full description of the call line syntax. In effect what happens in the latter case, is you set :colnames to "yes]". I've just pushed up that patch. Thanks for you help debugging this. > > > thanx again, > rick Footnotes: [1] (info "(org)Evaluating Code Blocks") -- Eric Schulte http://cs.unm.edu/~eschulte